Giter Site home page Giter Site logo

Comments (2)

MikeShi42 avatar MikeShi42 commented on June 11, 2024 1

Hi @bldev2473! Thanks for that feedback, I've just drafted up some new documentation to add to our site about the options in general for the init call in the Browser SDK. The tracePropagationTargets should be set to your backend API URL, what it does is that the SDK will attach a traceparent header to any URL matching one of the regexes specified in tracePropagationTargets. This ensures the backend can properly extract and propagate the trace ID, allowing you to link requests between the frontend and backend.

Here's some more details on the init options in general that I'll be adding soon:

Options

  • apiKey - Your HyperDX Ingestion API Key.
  • service - The service name events will show up as in HyperDX.
  • tracePropagationTargets - A list of regex patterns to match against HTTP requests to link frontend and backend traces, it will add an additional traceparent header to all requests matching any of the patterns. This should be set to your backend API domain (ex. api.yoursite.com).
  • consoleCapture - (Optional) Capture all console logs (default false).
  • advancedNetworkCapture - (Optional) Capture full request/response headers and bodies (default false).
  • url - (Optional) The OpenTelemetry collector URL, only needed for self-hosted instances.
  • maskAllInputs - (Optional) Whether to mask all input fields in session replay (default false).
  • maskAllText - (Optional) Whether to mask all text in session replay (default false).

from hyperdx.

bldev2473 avatar bldev2473 commented on June 11, 2024 1

Hi @MikeShi42, thank you for your detailed response. It helped a lot!

from hyperdx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.