GoogleCloudPlatform / opentelemetry-operations-go

Apache License 2.0
127 stars 99 forks source link

Update OTLP auth example #803

Closed damemi closed 4 months ago

damemi commented 4 months ago

Add x-goog-user-project header and set gcp.project_id (not sure if that needs to be a span attribute or resource attribute, so I'm setting both for now)

Repro steps:

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.73%. Comparing base (babed48) to head (5123ea8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #803 +/- ## ========================================== - Coverage 60.80% 60.73% -0.08% ========================================== Files 56 56 Lines 5649 5649 ========================================== - Hits 3435 3431 -4 - Misses 2066 2070 +4 Partials 148 148 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

damemi commented 4 months ago

Updated this to add an http sample too, going to merge if everything is green