Open
Conversation
f6d8e20 to
07720f7
Compare
Contributor
slinkydeveloper
left a comment
There was a problem hiding this comment.
sounds good, i would put the key snippet in the docs
|
|
||
| The Restate server propagates W3C trace context to handlers via HTTP headers. In the TypeScript SDK, you need to manually extract this from `ctx.request().attemptHeaders`: | ||
|
|
||
| ```typescript |
Contributor
There was a problem hiding this comment.
it would be nice to get this exact snippet in the docs
| console.log(`View in Jaeger: http://localhost:16686/trace/${traceId}`); | ||
| console.log(""); | ||
|
|
||
| const response = await fetch(`${RESTATE_INGRESS}/Greeter/greet`, { |
Contributor
There was a problem hiding this comment.
intersting, otel doesn't have any form of agent/autoinstrumentation in node like they have in java/go and co?!
07720f7 to
a423407
Compare
- Use TextMapGetter in extractTraceContext so all propagator formats (W3C, B3, Jaeger) work without hardcoding header names - Explain in README why Node.js auto-instrumentation can't substitute for manual extraction: Restate wraps the HTTP transport layer and handlers replay, so one span per logical invocation requires extracting from ctx.request().attemptHeaders - Remove committed screenshot (trace.png); add *.png to .gitignore
a423407 to
42f8fef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.