# The distributed_headers dict can be obtained in the "parent" service via `opik_context.get_distributed_trace_headers()`
distributed_headers = DistributedTraceHeadersDict(
    opik_trace_id="trace-id-from-upstream",
    opik_parent_span_id="parent-span-id-from-upstream"
)

opik_tracer = OpikTracer(distributed_headers=distributed_headers)