-
Notifications
You must be signed in to change notification settings - Fork 197
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
feat: implement trace_continuation_strategy #1270
Conversation
Add ELASTIC_APM_TRACE_CONTINUATION_STRATEGY variable to change the continuation strategy. (Default to 'continue') Add test to verify trace ids are different and span links are populated properly.
🌐 Coverage report
|
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.
Looks great, just a couple of comments on the tests.
Can you please also add a subtest to TestTracerCentralConfigUpdate
in config_test.go?
parseContinuationStrategy was not actually parsing the value, update the method to reflect that.
migrate test to a subtests with coverage for all the different strategies. The special case (restart_external + missing header) is also tested.
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.
Thanks, the new test looks great. ICYMI:
Can you please also add a subtest to TestTracerCentralConfigUpdate in config_test.go?
Then this will be good to merge.
Thank you for the feedback! 🙇 I added the config test and pushed a few changes 🏓 |
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.
LGTM!
Add ELASTIC_APM_TRACE_CONTINUATION_STRATEGY variable to change the
continuation strategy. (Default to 'continue')
Add test to verify trace ids are different and span links are
populated properly.
Closes #1221