Skip to content

Conversation

@abhisheksurve45
Copy link
Contributor

Fixes open-telemetry/opentelemetry-php#1045

First checks if $request->host() (introduced in Illuminate Request 9.x ) method exists, if yes then calls it to get the host name else fall back to $request->getHost() method else returns null

@abhisheksurve45 abhisheksurve45 requested a review from a team June 26, 2023 06:58
@welcome
Copy link

welcome bot commented Jun 26, 2023

Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 26, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #170 (ada0628) into main (ce970de) will decrease coverage by 34.50%.
The diff coverage is n/a.

❗ Current head ada0628 differs from pull request most recent head bd68f14. Consider uploading reports for the commit bd68f14 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #170       +/-   ##
============================================
- Coverage     40.76%   6.26%   -34.50%     
+ Complexity      313     199      -114     
============================================
  Files            28      20        -8     
  Lines           969     766      -203     
============================================
- Hits            395      48      -347     
- Misses          574     718      +144     
Flag Coverage Δ
7.4 17.64% <ø> (-39.52%) ⬇️
8.0 8.43% <ø> (-32.27%) ⬇️
8.1 8.43% <ø> (-32.37%) ⬇️
8.2 6.27% <ø> (-34.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 20 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce970de...bd68f14. Read the comment docs.

@brettmc
Copy link
Contributor

brettmc commented Jun 26, 2023

Hi @abhisheksurve45 thanks for your contribution. This looks ok to me. Could you please also update composer.json to set appropriate restrictions on the laravel/framework version?

@abhisheksurve45
Copy link
Contributor Author

Hi @abhisheksurve45 thanks for your contribution. This looks ok to me. Could you please also update composer.json to set appropriate restrictions on the laravel/framework version?

@brettmc Added the same.

@brettmc
Copy link
Contributor

brettmc commented Jun 27, 2023

@abhisheksurve45 confirming that you tested it against Laravel v6 and it worked (or at least didn't obviously fail!)

@abhisheksurve45
Copy link
Contributor Author

@abhisheksurve45 confirming that you tested it against Laravel v6 and it worked (or at least didn't obviously fail!)

Yes, have tested with Laravel ^6.0 @brettmc

@brettmc
Copy link
Contributor

brettmc commented Jun 27, 2023

@abhisheksurve45 can you look into why the build is failing? It looks like it is trying to only install ^6, and cannot resolve dependencies. It should preferentially install v10 (latest stable)

@bobstrecansky
Copy link
Contributor

@abhisheksurve45 - are you blocked on this PR?

@stale
Copy link

stale bot commented Aug 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 12, 2023
@siketyan siketyan mentioned this pull request Aug 12, 2023
@brettmc
Copy link
Contributor

brettmc commented Aug 13, 2023

Closing, superceded by #185

@brettmc brettmc closed this Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto opentelemetry configuration not working for laravel and php 8.x

3 participants