Skip to content

Get parent context

Source code in event_sourcery_otel/_context.py
@singledispatch
def get_parent_context(event_context: object) -> OtelContext:
    raise TypeError(f"Unsupported event context type: {type(event_context)!r}")