Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sdk-config 0.3 support for key/value headers and attributes #1428

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Nov 7, 2024

  • headers and attributes are now arrays with key and value elements
  • headers can optionally contain a headers_list element which supports a lower-priority CSV of key/value entries
  • attributes can optionally contain an attributes_list element which supports a lower-priority CSV of key/value entries

Related: #1423

- headers and attributes are now arrays with `key` and `value` elements
- headers can optionally contain a `headers_list` element which supports a lower-priority CSV of key/value entries
- attributes can optionally contain an `attributes_list` element which supports a lower-priority CSV of key/value entries
@brettmc brettmc requested a review from a team as a code owner November 7, 2024 12:55
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 73.26%. Comparing base (8857b0c) to head (35216e7).

Files with missing lines Patch % Lines
.../Config/SDK/ComponentProvider/OpenTelemetrySdk.php 0.00% 13 Missing ⚠️
...K/ComponentProvider/Logs/LogRecordExporterOtlp.php 0.00% 9 Missing ⚠️
...K/ComponentProvider/Metrics/MetricExporterOtlp.php 0.00% 9 Missing ⚠️
...g/SDK/ComponentProvider/Trace/SpanExporterOtlp.php 0.00% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1428      +/-   ##
============================================
- Coverage     73.59%   73.26%   -0.34%     
  Complexity     2685     2685              
============================================
  Files           387      387              
  Lines          7977     8009      +32     
============================================
- Hits           5871     5868       -3     
- Misses         2106     2141      +35     
Flag Coverage Δ
8.1 72.96% <0.00%> (-0.27%) ⬇️
8.2 73.16% <0.00%> (-0.40%) ⬇️
8.3 73.21% <0.00%> (-0.29%) ⬇️
8.4 73.21% <0.00%> (-0.29%) ⬇️

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

Files with missing lines Coverage Δ
...K/ComponentProvider/Logs/LogRecordExporterOtlp.php 0.00% <0.00%> (ø)
...K/ComponentProvider/Metrics/MetricExporterOtlp.php 0.00% <0.00%> (ø)
...g/SDK/ComponentProvider/Trace/SpanExporterOtlp.php 0.00% <0.00%> (ø)
.../Config/SDK/ComponentProvider/OpenTelemetrySdk.php 0.00% <0.00%> (ø)

... and 4 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 8857b0c...35216e7. Read the comment docs.

Copy link
Contributor

@ChrisLightfootWild ChrisLightfootWild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's minor, but could we keep consistency and convert the snake-cased variables? 👼

@brettmc
Copy link
Collaborator Author

brettmc commented Nov 18, 2024

@open-telemetry/php-approvers I think this is ready for review now.

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