• Preparing search index...
  • The search index is not available
OpenTelemetry SDK
  • OpenTelemetry SDK
  • @opentelemetry/core
  • parseTraceParent

Function parseTraceParent

  • parseTraceParent(traceParent: string): null | SpanContext

    Parses information from the [traceparent] span tag and converts it into SpanContext

    Parameters

    • traceParent: string

      A meta property that comes from server. It should be dynamically generated server side to have the server's request trace Id, a parent span Id that was set on the server's request span, and the trace flags to indicate the server's sampling decision (01 = sampled, 00 = not sampled). for example: '{version}-{traceId}-{spanId}-{sampleDecision}' For more information see https://www.w3.org/TR/trace-context/

    Returns null | SpanContext

    • Defined in packages/opentelemetry-core/src/trace/W3CTraceContextPropagator.ts:52

Settings

Member Visibility
OpenTelemetry SDK
  • Loading...

Generated using TypeDoc