-
Notifications
You must be signed in to change notification settings - Fork 773
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
set TraceState
field in OTLP Exporter
#4331
Conversation
TraceState
field in OTLP Exporter
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4331 +/- ##
==========================================
- Coverage 84.67% 84.64% -0.04%
==========================================
Files 298 298
Lines 11936 11937 +1
==========================================
- Hits 10107 10104 -3
- Misses 1829 1833 +4
|
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpTraceExporterTests.cs
Outdated
Show resolved
Hide resolved
[Theory] | ||
[InlineData(true)] | ||
[InlineData(false)] | ||
public void ToOtlpSpanTraceStateTest(bool traceStateWasSet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have existing tests for checking other things from activity context? like spanid,traceid etc? we could just modify it instead of adding dedicated tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add traceState assertions to ToOtlpSpanTest
.
Personally, I prefer to keep unit tests small.
Fixes #4010
Changes
Please provide a brief description of the changes here.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes