MCPcopy Index your code
hub / github.com/coder/coder / addMetadata

Method addMetadata

coderd/tracing/drpc.go:50–54  ·  view source on GitHub ↗

addMetadata propagates the headers into a map that we inject into drpc metadata so they are sent across the wire for the server to get.

(ctx context.Context)

Source from the content-addressed store, hash-verified

48// addMetadata propagates the headers into a map that we inject into drpc metadata so they are
49// sent across the wire for the server to get.
50func (*DRPCConn) addMetadata(ctx context.Context) context.Context {
51 metadata := make(map[string]string)
52 otel.GetTextMapPropagator().Inject(ctx, propagation.MapCarrier(metadata))
53 return drpcmetadata.AddPairs(ctx, metadata)
54}

Callers 2

InvokeMethod · 0.95
NewStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected