Skip to content

gRPC instrumentation - how to add extra context data to spans? #1112

@alertedsnake

Description

@alertedsnake

For the gRPC instrumentation plugin, I'm looking to add extra data to spans - in my case I have some metadata information (request ID, user, etc.) available in the request or request context that I'd like to get into the trace somehow.

With OpenTracing, you can provide a SpanDecorator (see code here to the library which allows adding extra information onto a span for a given RPC. Is there a standard way to do that with this library as well?

If not, is it something that might be added in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    instrumentationRelated to the instrumentation of third party libraries or frameworks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions