inject
fun inject(properties: <Error class: unknown class>, context: <Error class: unknown class> = Context.current()): <Error class: unknown class>
Injects trace context into message properties headers. Creates or updates the headers map with traceparent and tracestate.
Return
Updated properties with trace context in headers.
Parameters
properties
The message properties to inject into.
context
The OpenTelemetry context containing the span to propagate.