by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Romil Punetha
    @romilpunetha
    Any ideas when does open-telemetry/opentelemetry-js#965 make it through? Im having some trouble with jaeger agent as daemonset. My traces seem to be broken...
    1 reply
    Kripa
    @Kripa65345158_twitter
    Let me know how to implement openTelemetry in react js
    Kripa
    @Kripa65345158_twitter
    please reply
    Naseem
    @naseemkullah
    @Kripa I'm guessing use the web plugin I think (thats all i know) : https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-web
    Hello, where can I find defaults, for example for metrics in their type definition for example https://github.com/open-telemetry/opentelemetry-js/blob/f978377f2f324fa0b52c4964caf9d8c810821123/packages/opentelemetry-metrics/src/types.ts#L44 i suppose it defaults to true but where/how to check this?
    Jonathan Whitaker
    @jon-whit
    Does anyone have any good examples of trace propagation? I see a lot of super basic examples where a new span is created and child spans are created off of the parent span, but I haven't yet come across any good examples of trace propagation using the nodejs library of opentelemetry.
    3 replies
    I'm coming from the Python client variant of OpenTelemetry, and there were ways of extracting and injecting span context using get_span_from_context and set_span_in_context, but I don't see the equivalent methods in the node api.
    Adam Jacob
    @adamhjk
    @jon-whit I was just coming to ask that
    I'm trying to inject the trace context into the Apollo GraphQL client, and it is.. not coming easily :)
    5 replies
    Adam Jacob
    @adamhjk
    so yeah - is there an example of taking the context of a current span, and using it to create the trace headers I can inject into apollo client? It doesn't need to be an apollo example.. but everything I can find seems to generate an empty headers object every time
    Adam Jacob
    @adamhjk
    all the examples seem busted too - it obviously works somehow? because I see the plugins doing it. but I can't seem to actually get anything other than a no-op processor
    would love a pointer in the right direction
    Whoweez
    @Whoweez

    Hi everyone, great project. I am struggling though with tracing beyond an await call:

    tracer.getCurrentSpan().addEvent('starting await');
    await function test(){
    return true
    }
    tracer.getCurrentSpan().addEvent('finished first await');

    Running without await works perfectly fine, but adding it results in an undefined span: "Cannot read property 'addEvent' of undefined"

    Any assistance would be appreciated.
    Cheers.

    Romil Punetha
    @romilpunetha

    Any idea why these traces would be broken? Using expressjs, otel 0.8.1

    Screenshot 2020-05-20 at 9.31.22 PM.png

    Adam Jacob
    @adamhjk
    @romilpunetha hard to say without a bunch more context
    Adam Jacob
    @adamhjk
    does anyone have an example of trace propagation at all?
    it looks completely magical from here - I see the functions, but I see no way to actually tell the system that I want it to propagate via HTTP headers
    instead I get a NOOP version
    which.. doesn't seem helpful?
    if I use the "user-interaction" plugin, I sometimes get the parent of a span set to that
    and then I get headers!
    but if I remove that plugin.. no dice
    and I have no idea what that plugin is doing
    (pretty sure this channel is full of people who need help, but not folks who actually know whats up :)
    (which is totally fine)
    Adam Jacob
    @adamhjk
    @jon-whit okay, I think I have it
    for reasons I do not quite understand, but I think have to do with how you make sure you are in the right context across async call sites
    you need to "enter" the context of the span you want to propagate
    and then things just work by magic
    Jonathan Whitaker
    @jon-whit

    @adamhjk do you have an example Gist or something you could demonstrate?

    Not sure I'm following.

    Adam Jacob
    @adamhjk
    tracer.withSpan(span, () => { tracer.startSpan("foo"); })
    I'll post a full example
    once I'm sure it works
    but I'm <.> close, I think
    Adam Jacob
    @adamhjk
    (just want to make sure I have an example I can share)
    Kripa
    @Kripa65345158_twitter
    @adamhjk I hve try out OpenTelemetry in react with this link https://github.com/open-telemetry/opentelemetry-js/tree/master/examples/tracer-web, and i have got ConsoleSpanExporter.js?8e47:63 {traceId: "d7e1699f7c318a7ee20d81fa5efb5fb9", parentId: "5a15a3483a2bbbae", name: "documentFetch", id: "64d9f95beb94be5a", kind: 0, …} like this.Let me know to show it in observility tool like jaeger ..how can i implement further?
    image.png
    Adam Jacob
    @adamhjk
    it looks like you need to be running the opentelemetry collector, and you need to enable the otlp reciever
    then the collector can have the jaeger exporter enabled
    and it will forward for you
    so it goes "browser" -> "otlp" -> "jaeger"
    Daniel Dyla
    @dyladan
    Yes that is currently the only supported method to get browser traces
    Adam Jacob
    @adamhjk
    it's a little undocumented (in that the otlp receiver isn't really listed at all in the examples)
    once I get this all working, I'm going to send a PR to the examples
    1 reply
    so there is an end-to-end example of going from the browser to a backend service with propagation done manually
    trough the collector
    @Kripa65345158_twitter ^^ in case you missed it
    Amir Blum
    @BlumAmir
    Does anyone know or working on a plugin for kafka?
    2 replies
    Ted Young
    @tedsuo
    Does the collector exporter currently handle retries and throttling?
    4 replies