-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
fix: datadog tracer scope #895
Conversation
b3c7688
to
bdbb137
Compare
bdbb137
to
ed4442b
Compare
@icebob This is now ready for review when you have some time. |
@@ -736,6 +738,7 @@ class Transit { | |||
level: ctx.level, | |||
tracing: ctx.tracing, | |||
parentID: ctx.parentID, | |||
traceID: ctx.traceID, |
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.
It's a breaking change in the protocol, so it can be merged only in 0.15 or it can't work with schema-based serializers.
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 don't need it to work with schema-based serializers at the moment. Will the serializer implementations safely ignore the new property if they don't support it? The tracing middleware handles an undefined traceID
in the context.
please merge changes from the master, some test is not up-to-date. |
835e688
to
1745336
Compare
1745336
to
9efeed3
Compare
This branch was already rebased onto I believe the failing test is either an incorrect implementation in |
It's an old module, it is not used in the library anymore. But somehow this PR affects the |
I looked into this a bit more. The failure might not occur on a development machine by running The tests on the moleculer/test/integration/async-storage.spec.js Lines 15 to 26 in c25f647
However, this PR adds tests for dd-trace's various scope implementations, which enable promise execution tracking for the process. In that case, the async-storage test fails because the Regardless, I've pushed a change that cleans up the hooks used in dd-trace and restores the previous passing behavior for the async-storage test. |
@ngraef I see, I don't forget it, but I'm hesitating because it contains a lot of changes affecting the tracer, context, and the communication protocol. I don't feel it can be merged into the 0.14, instead on the next 0.15. |
what do you think about it? DataDog/dd-trace-js#1598 |
📝 Description
🎯 Relevant issues
Resolves #690
Resolves #889
💎 Type of change
🚦 How Has This Been Tested?
A simple call through moleculer-web to a remote action that makes some HTTP calls and interacts with a postgres database
A call that includes some nested remote action calls, one of which calls redis and returns an error
The same call as the previous example, but with a remote service subscribing to an event it emits
The initial call to a lazy-loaded module with a bunch of fs reads needed to require the library
An action handler with some custom spans via
ctx.startSpan
🏁 Checklist: