Skip to content
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

Add support for the tracecontext standard #16

Merged
merged 20 commits into from
Dec 13, 2023

Conversation

bram123
Copy link
Member

@bram123 bram123 commented Dec 10, 2023

  • new traceMode config option to switch between traceid and tracecontext
    • supporting both options at the same time is out of scope for this PR, might be possible in the future
    • Need to think about what happens when X-TraceId header is in the request with a value that's not valid for traceContext standard, but app is doing ajax calls with traceparent headers.

- new traceMode config option to switch between traceid and tracecontext
-- supporting both options at the same time is out of scope for this PR, might be possible in the future
-- Need to think about what happens when X-TraceId header is in the request with a value that's not valid for traceContext standard, but app is doing ajax calls with traceparent headers.
# Conflicts:
#	README.md
#	phpmd.baseline.xml
#	phpstan-baseline.neon
#	src/DependencyInjection/Compiler/HttpClientTraceIdPass.php
#	src/DependencyInjection/SymfonyTraceExtension.php
#	src/EventSubscriber/CommandSubscriber.php
#	src/EventSubscriber/MessageBusSubscriber.php
#	src/EventSubscriber/TraceIdSubscriber.php
#	src/Generator/TraceId/RamseyUuid4Generator.php
#	src/Generator/TraceId/SymfonyUuid4Generator.php
#	src/Generator/TraceId/TraceIdGeneratorInterface.php
#	src/Http/TraceIdAwareHttpClient.php
#	src/Monolog/TraceIdProcessor.php
#	src/Twig/TraceIdExtension.php
#	tests/Functional/App/Service/TestIdStorage.php
#	tests/Functional/App/TestKernel.php
#	tests/Functional/App/config/config.yml
#	tests/Functional/ApplicationTest.php
#	tests/Functional/HttpClientTest.php
#	tests/Functional/MessengerTest.php
#	tests/Functional/RequestHandleTest.php
#	tests/Unit/EventSubscriber/CommandSubscriberTest.php
#	tests/Unit/EventSubscriber/MessageBusSubscriberTest.php
#	tests/Unit/EventSubscriber/TraceIdSubscriberTest.php
#	tests/Unit/Generator/TraceId/RamseyUuid4GeneratorTest.php
#	tests/Unit/Generator/TraceId/SymfonyUuid4GeneratorTest.php
#	tests/Unit/Http/TraceIdAwareHttpClientTest.php
#	tests/Unit/Monolog/TraceIdProcessorTest.php
#	tests/Unit/TraceStorageTest.php
#	tests/Unit/Twig/TraceIdExtensionTest.php
…arate Trace Service classes

- split TraceContextService parse logic into separate Parse class
MessageBusSubscriber now passes the full TraceContext object to the TraceStamp
- clones original TraceContext, fills parentTransactionId in cloned trace
Update baseline
@bram123 bram123 marked this pull request as ready for review December 12, 2023 10:00
README.md Show resolved Hide resolved
@bram123 bram123 merged commit 230669c into 123inkt:master Dec 13, 2023
14 checks passed
@bram123 bram123 deleted the add_tracecontext branch December 13, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants