-
Notifications
You must be signed in to change notification settings - Fork 9
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
parametric: remove http_headers from otel start span creation #3478
base: main
Are you sure you want to change the base?
Conversation
ced27a6
to
0e6738c
Compare
0e6738c
to
1bdbd9b
Compare
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.
Minor changes requested. Anyway, this PR requires the review of other codeowners.
with test_library.otel_start_span("otel.span") as otel_span: | ||
current_span = test_library.current_span() | ||
with test_library.start_span("dd_root") as dd_span: | ||
pass |
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.
is this code useful?
@@ -43,20 +43,3 @@ def test_otel_start_span_with_w3c(self, test_agent, test_library): | |||
assert root_span["resource"] == "operation" | |||
assert root_span["meta"]["start_attr_key"] == "start_attr_val" | |||
assert root_span["duration"] == duration_ns | |||
|
|||
@irrelevant(context.library == "cpp", reason="library does not implement OpenTelemetry") | |||
def test_otel_span_with_w3c_headers(self, test_agent, test_library): |
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.
Could you review the manifest files? For example there is an entry for "Test_Otel_Span_With_W3c" in python.yml
Motivation
http_headers
parameter from the/trace/otel/start_span
endpoint. The OpenTelemetry Start Span API does not support initializing spans from http headers.Changes
http_headers
fromAPMLibraryClient.otel_trace_start_span
http_headers
fromutils.parametric._library.Link
. Creating otel spanlinks fromhttp_headers
is also not supported by the OpenTelemetry Start Span API.http_headers
start_span argument all parameters parametric apps.Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present