TraceContext.Service.set: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 3810-3818 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=3810&end_line=3818 import Base # Add or update an entry of the state that the service's operation sends, # such as this participant's own (see OutgoingContext.set). A service # without an operation is unchanged: it sends no state of its own. def Service.set(service: Service, key: StateKey, value: StateValue) -> Service: match service: case Operating{origin, outgoing, received}: Operating{origin, OutgoingContext.set(outgoing, key, value), received} case Untraced{error, received}: Untraced{error, received} Uses (4): https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=OutgoingContext.set https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Service https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=StateKey https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=StateValue