Skip to content

Add opentelemetry tracing to server calls #281

Description

@patkujawa-wf

Is your feature request related to a problem? Please describe.
We use the https://github.com/launchdarkly/ld-relay and https://github.com/launchdarkly/js-client-sdk (wrapped in Dart interop APIs) and would like to get a sense of how long server requests take, from a client perspective. Since those requests originate in the JS code, we can't easily instrument them ourselves.

Describe the solution you'd like
Since https://opentelemetry.io/ is the de facto standard for tracing, it would be great if the JS SDK used its API to instrument the server calls made and provided a hook for us to pass in a tracer provider from the otel SDK.

Describe alternatives you've considered
Capturing network requests (e.g. via service workers) and instrumenting there.

Additional context
Happy to consider alternatives, or maybe there's something I'm missing that already provides this info?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions