Skip to content

Conversation

genesor
Copy link
Member

@genesor genesor commented Sep 9, 2025

What does this PR do?

Fixes #3955

During the creation of v1.74.0 the new function ApplyV1Options allowing us to transform v1 StartSpanOptions into v2 was introduced.

Assigning tags manually via cfg.Tags["x"] = "foo" was working in previous v1 because the cfg was already tagged internally by the roundtripper but the cfg in the function in ApplyV1Options uses an empty and untagged StartSpanConfig with a nil map.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running ./scripts/lint.sh locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@genesor genesor requested review from a team as code owners September 9, 2025 14:30
@github-actions github-actions bot added the apm:ecosystem contrib/* related feature requests or bugs label Sep 9, 2025
@genesor genesor force-pushed the ben.db/fix-panic-tag-startspanoption branch from 75c2a20 to 5370c04 Compare September 9, 2025 14:31
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Sep 9, 2025

⚠️ Tests

⚠️ Warnings

🧪 5 Tests failed

TestGeneratedSpan from gopkg.in/DataDog/dd-trace-go.v1/contrib/envoyproxy/go-control-plane (Datadog)
Failed

=== RUN   TestGeneratedSpan
--- FAIL: TestGeneratedSpan (0.03s)
TestGeneratedSpan/request-span from gopkg.in/DataDog/dd-trace-go.v1/contrib/envoyproxy/go-control-plane (Datadog)
Failed

=== RUN   TestGeneratedSpan/request-span
    envoy_test.go:48: 
        	Error Trace:	/home/runner/work/dd-trace-go/dd-trace-go/contrib/envoyproxy/go-control-plane/envoy_test.go:236
        	            				/home/runner/work/dd-trace-go/dd-trace-go/contrib/envoyproxy/go-control-plane/envoy_test.go:48
        	Error:      	Received unexpected error:
        	            	EOF
        	Test:       	TestGeneratedSpan/request-span
2025/09/09 15:06:22 Datadog Tracer v2.2.3 ERROR: external_processing: the body parsing has been wrongly configured. Please disable in your Envoy External Processor filter configuration the body processing mode and enable the allow_mode_override option to let the processor handle the processing mode. (occurred: 09 Sep 25 15:06 UTC)
...
TestGeneratedSpan/span-with-injected-context from gopkg.in/DataDog/dd-trace-go.v1/contrib/envoyproxy/go-control-plane (Datadog)
Failed

=== RUN   TestGeneratedSpan/span-with-injected-context
    envoy_test.go:83: 
        	Error Trace:	/home/runner/work/dd-trace-go/dd-trace-go/contrib/envoyproxy/go-control-plane/envoy_test.go:236
        	            				/home/runner/work/dd-trace-go/dd-trace-go/contrib/envoyproxy/go-control-plane/envoy_test.go:83
        	Error:      	Received unexpected error:
        	            	EOF
        	Test:       	TestGeneratedSpan/span-with-injected-context
2025/09/09 15:06:22 Datadog Tracer v2.2.3 ERROR: external_processing: the body parsing has been wrongly configured. Please disable in your Envoy External Processor filter configuration the body processing mode and enable the allow_mode_override option to let the processor handle the processing mode. (occurred: 09 Sep 25 15:06 UTC)
...
View all

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b3bc3ad | Docs | Was this helpful? Give us feedback!

@genesor genesor merged commit 9071d78 into release-v1.74.x Sep 9, 2025
153 of 171 checks passed
@genesor genesor deleted the ben.db/fix-panic-tag-startspanoption branch September 9, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants