Skip to content

Conversation

@siketyan
Copy link
Contributor

@siketyan siketyan commented Aug 12, 2023

This pull request continues #170.

Replaces #170

@siketyan siketyan requested a review from a team August 12, 2023 09:47
@codecov
Copy link

codecov bot commented Aug 12, 2023

Codecov Report

Merging #185 (03a47ae) into main (5c12efb) will decrease coverage by 0.11%.
Report is 1 commits behind head on main.
The diff coverage is 23.07%.

❗ Current head 03a47ae differs from pull request most recent head 87e0de1. Consider uploading reports for the commit 87e0de1 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #185      +/-   ##
============================================
- Coverage     34.83%   34.73%   -0.11%     
- Complexity      791      814      +23     
============================================
  Files            70       71       +1     
  Lines          3017     3078      +61     
============================================
+ Hits           1051     1069      +18     
- Misses         1966     2009      +43     
Flag Coverage Δ
7.4 46.18% <ø> (ø)
8.0 34.79% <23.07%> (-0.12%) ⬇️
8.1 34.82% <23.07%> (-0.12%) ⬇️
8.2 34.67% <23.07%> (-0.11%) ⬇️

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

Files Changed Coverage Δ
...rumentation/Laravel/src/LaravelInstrumentation.php 0.00% <0.00%> (ø)
...c/Instrumentation/Psr3/src/Psr3Instrumentation.php 0.00% <0.00%> (ø)
src/Instrumentation/Psr3/src/Formatter.php 100.00% <100.00%> (ø)

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 33b3624...87e0de1. Read the comment docs.

@brettmc
Copy link
Contributor

brettmc commented Aug 13, 2023

LGTM, thanks @siketyan for finishing off this work. Can you confirm that you've tested it against Laravel 6.x and it worked as expected?

@siketyan
Copy link
Contributor Author

siketyan commented Aug 13, 2023

@brettmc I've confirmed that works as expected.

image

composer.json:

{
    ...snip,
    "repositories": [
        {
            "type": "path",
            "url": "../../github.com/yumemi-inc/opentelemetry-php-contrib/src/Instrumentation/Laravel"
        }
    ],
    "require": {
        "php": "^7.2.5|^8.0",
        "fideloper/proxy": "^4.4",
        "laravel/framework": "^6.20.26",
        "laravel/tinker": "^2.5",
        "open-telemetry/exporter-otlp": "^1.0@beta",
        "open-telemetry/opentelemetry": "^1.0@beta",
        "open-telemetry/opentelemetry-auto-laravel": "dev-bug-fix-laravel-request-host",
        "open-telemetry/sdk": "^1.0@beta",
        "open-telemetry/transport-grpc": "^1.0@beta"
    },
    ...snip
}

command line:

OTEL_PHP_AUTOLOAD_ENABLED=true \
OTEL_SERVICE_NAME=otel-laravel-app \
OTEL_TRACES_EXPORTER=otlp \
OTEL_EXPORTER_OTLP_PROTOCOL=grpc \
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 \
OTEL_PROPAGATORS=baggage,tracecontext \
php artisan serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants