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

psr3: handle non-string attribute keys #297

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Oct 2, 2024

non-string attribute keys cause an error, and stop log messages from being exported. cast the numeric keys to a string to ensure they make it through alive. update tests, skipping cake because it does weird stuff when presented with a numeric key which completely changes the structure of the incoming context.

Closes: open-telemetry/opentelemetry-php#1374

non-string attribute keys cause an error, and stop log messages from being exported. cast the numeric keys
to a string to ensure they make it through alive. update tests, skipping cake because it does weird stuff
when presented with a numeric key which completely changes the structure of the incoming context
@brettmc brettmc requested a review from a team as a code owner October 2, 2024 02:51
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.23%. Comparing base (3dd4f06) to head (d614650).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...c/Instrumentation/Psr3/src/Psr3Instrumentation.php 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #297      +/-   ##
============================================
- Coverage     82.68%   82.23%   -0.46%     
- Complexity      949      973      +24     
============================================
  Files            89       91       +2     
  Lines          3807     3885      +78     
============================================
+ Hits           3148     3195      +47     
- Misses          659      690      +31     
Flag Coverage Δ
Aws 85.75% <ø> (ø)
Context/Swoole 0.00% <ø> (ø)
Instrumentation/CodeIgniter 73.94% <ø> (ø)
Instrumentation/ExtAmqp 89.58% <ø> (ø)
Instrumentation/Guzzle 69.73% <ø> (ø)
Instrumentation/HttpAsyncClient 81.33% <ø> (ø)
Instrumentation/IO 70.90% <ø> (ø)
Instrumentation/MongoDB 77.33% <ø> (ø)
Instrumentation/OpenAIPHP 86.82% <ø> (ø)
Instrumentation/PDO 89.56% <ø> (ø)
Instrumentation/Psr14 78.12% <ø> (ø)
Instrumentation/Psr15 93.50% <ø> (ø)
Instrumentation/Psr18 82.08% <ø> (ø)
Instrumentation/Psr3 60.25% <66.66%> (?)
Instrumentation/Slim 86.95% <ø> (ø)
Instrumentation/Symfony 89.03% <ø> (ø)
Instrumentation/Yii 77.77% <ø> (ø)
Logs/Monolog 100.00% <ø> (ø)
Propagation/ServerTiming 100.00% <ø> (ø)
Propagation/TraceResponse 100.00% <ø> (ø)
ResourceDetectors/Container 93.02% <ø> (ø)
Sampler/RuleBased 32.14% <ø> (ø)
Shims/OpenTracing 92.99% <ø> (ø)
Symfony 88.20% <ø> (ø)

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

Files with missing lines Coverage Δ
src/Instrumentation/Psr3/src/Formatter.php 100.00% <100.00%> (ø)
...c/Instrumentation/Psr3/src/Psr3Instrumentation.php 48.33% <0.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 3dd4f06...d614650. Read the comment docs.

Copy link
Collaborator

@bobstrecansky bobstrecansky left a comment

Choose a reason for hiding this comment

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

I noticed that we had a couple failures here related to PHPCS and Phan in this PR. If those are expected, feel free to merge at will.

@brettmc brettmc merged commit 4e8d9bd into open-telemetry:main Oct 2, 2024
98 of 120 checks passed
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.

Missing logs from opentelemetry-auto-psr3
4 participants