def RemoteContext.from_ids
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
601# Build the sender's context from its parts, as an OpenTelemetry SDK does for
602# a link or for a propagator of another format: its trace ID, its span ID and
603# its sampled indication, kept as they are. It is total, since the IDs are
604# valid by construction, and its random-trace-id bit is the trace ID's own
605# assertion: none for a parsed ID, unless TraceId.assert_random adds it (law
606# remote_from_ids). The result is still a received context, which a child
607# continues: it cannot be sent as this participant's operation
608# (tests/reject/remote_as_local.bend).
609def RemoteContext.from_ids(trace_id: TraceId, span_id: SpanId, sampled: Bool) -> RemoteContext:
610 RemoteContext{trace_id, span_id, sampled}
Uses (4)
Used by (0)
No other definition uses this definition.