-
Notifications
You must be signed in to change notification settings - Fork 171
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 Propagation interface #496
Comments
That is actually something desirable! This library does not have interfaces for propagation so it would be great to start one. Notice that currently, all the HTTP server instrumentation includes a function called IMHO the easiest is to deprecate that For client it is easier, that piece is already abstracted under Are you up to give a stab on this? Thoughts @adriancole @anuraaga |
Yeah, i'm going to try 😅😁!!!! When i have something i'll open a PR and wait the feedback. Thanks as always!!! |
Interop is the name of the game, very happy to hear about adding support for more propagations. Not familiar enough with the js codebase but b) feels a bit nicer if it's practical. But don't feel too strongly either way. |
@asanluis do you need any further help on this one? |
@jcchavezs, not enough time 😞, just waiting to have a little of free time to work in this!!😉 |
@jcchavezs Hi, I've not forgotten 😥 but now i have a little of free time, and i want to ask, if you guys like this approach
the extractor would be the actual _createIdFromHeaders of the HttpServer class, and the injector would be the actual Request.addZipkinHeaders. |
Hi guys, i finally made a different approach, i add the propagation into the tracer 😢 , not the best implementation, but i think is the best way to easily add the baggage feature. i'll wait your feedback guys, Thanks for all!! changes branch-master |
Awesome. I will check it out.
ons. 15. jul. 2020, 21:15 skrev asanluis <notifications@github.com>:
… @jcchavezs <https://github.com/jcchavezs> Hi, I've not forgotten 😥 but
now i have a little of free time, and i want to ask, if you guys like this
approach
namespace propagation { interface Propagation { extractor<T>(readHeader:
<T> (header: string) => option.IOption<T>): TraceId; injector(req: {
headers?: any }, traceId: TraceId): ZipkinHeader; } class B3Propagation
implements Propagation { extractor<T>(readHeader: <T> (header: string) =>
option.IOption<T>): TraceId; injector(req: { headers?: any }, traceId:
TraceId): ZipkinHeader; } }
the extractor would be the actual _createIdFromHeaders of the HttpServer
class, and the injector would be the actual Request.addZipkinHeaders
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#496 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYARFGUFNLL4XAK2765TR3X55XANCNFSM4MOIE2BQ>
.
|
Hi @asanluis thanks for bringing it up. I think the approach is correct, I'd encourage you to open a PR with the changes so I can give you some feedback! |
I finally made the PR, i have to work in the grpc client 😞 Edit i add a comment: |
@jcchavezs have you had time to review it? |
Hi @asanluis I am sorry I did not come back to you earlier. Crazy days and a job switch in the middle. I am looking at it today and in general will have more time to spend on this. Stay tuned. |
Hi @jcchavezs thanks for the feedback 😄, I like the Java approach of Getter and Setter in the injectors/extractor methods i added here, now im working in the implementation. What about if i change the implementation and decouple the propagation from the tracer, and maybe put it in the instrumentation? |
Hi guys, i was thinking to add the Propagation interface like (https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/propagation/Propagation.java), to support other propagation headers like f.e x-amzn-trace-id or b3 simple 😄.
The text was updated successfully, but these errors were encountered: