Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
opik
opik
  • Opik
  • track
  • configure
  • opik_context
    • get_current_span_data
    • get_current_trace_data
    • update_current_span
    • update_current_trace
    • get_distributed_trace_headers

Integrations

  • Anthropic
    • track_anthropic
  • Bedrock
    • track_bedrock
  • CrewAI
    • track_crewai
  • DSPy
    • OpikCallback
  • Guardrails AI
    • track_guardrails
  • Haystack
    • OpikConnector
  • langchain
    • OpikTracer
  • llama_index
    • LlamaIndexCallbackHandler
  • openai
    • track_openai
  • ADK
    • OpikTracer

Evaluation

  • Dataset
  • evaluate
  • evaluate_prompt
  • evaluate_experiment
  • metrics
    • Equals
    • RegexMatch
    • Contains
    • IsJson
    • LevenshteinRatio
    • Hallucination
    • GEval
    • Moderation
    • AnswerRelevance
    • ContextPrecision
    • ContextRecall
    • BaseMetric

Prompt management

  • Prompt

Guardrails

  • Guardrail
  • Topic guardrail
  • PII guardrail
  • ValidationResponse

Testing

  • llm_unit

Objects

  • Trace
  • TraceData
  • TracePublic
  • Span
  • SpanData
  • SpanPublic
  • Attachment
  • FeedbackScoreDict
  • Experiment
  • ExperimentItemContent
  • ExperimentItemReferences
  • Prompt
  • OpikBaseModel
  • LiteLLMChatModel
  • DistributedTraceHeadersDict

Command Line Interface

  • CLI Reference

Documentation Guides

  • Opik Documentation
Back to top
View this page

DistributedTraceHeadersDict¶

class opik.types.DistributedTraceHeadersDict¶

Bases: TypedDict

Contains headers for distributed tracing, returned by the opik.opik_context.get_distributed_trace_headers() function.

opik_trace_id: str¶
opik_parent_span_id: str¶
Next
CLI Reference
Previous
LiteLLMChatModel
Copyright © Comet ML
Made with Sphinx and @pradyunsg's Furo
On this page
  • DistributedTraceHeadersDict
    • DistributedTraceHeadersDict
      • DistributedTraceHeadersDict.opik_trace_id
      • DistributedTraceHeadersDict.opik_parent_span_id