Skip to content

dont emit warnings by default#156

Merged
brettmc merged 1 commit intoopen-telemetry:mainfrom
brettmc:display_warnings
Jan 20, 2025
Merged

dont emit warnings by default#156
brettmc merged 1 commit intoopen-telemetry:mainfrom
brettmc:display_warnings

Conversation

@brettmc
Copy link
Contributor

@brettmc brettmc commented Jan 15, 2025

adds a new ini entry, opentelemetry.display_warnings, default=off, to control whether warnings are emitted.

Closes: open-telemetry/opentelemetry-php#1476

adds a new ini entry, opentelemetry.display_warnings, default=off, to control
whether warnings are emitted.
@brettmc brettmc requested a review from a team as a code owner January 15, 2025 01:16
@brettmc brettmc merged commit d900f8f into open-telemetry:main Jan 20, 2025
21 checks passed
@andypost
Copy link
Contributor

andypost commented Jan 21, 2025

Building it for Alpinelinux faced that s390x arch failed new test

TEST 66/67 [tests/with_span/disable.phpt]
========DIFF========
- Warning: %s: OpenTelemetry: WithSpan attribute found but attribute hooks disabled in Unknown on line %d
     string(4) "test"
========DONE========
FAIL Check if attribute hooks can be disabled by config [tests/with_span/disable.phpt] 

PS reproducible in both edge and 3.21 (stable) branches

andypost added a commit to andypost/opentelemetry-php-instrumentation that referenced this pull request Jan 21, 2025
brettmc pushed a commit that referenced this pull request Jan 21, 2025
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.

Warning: ClassName::method(): OpenTelemetry: WithSpan attribute found but attribute hooks disabled in Unknown on line 0

4 participants