Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Set g.co/agent span attribute for Stackdriver exporter based library/version of node #525

@draffensperger

Description

@draffensperger

Currently when we convert from a data.TraceData structure to go.opencensus.io/trace.Span structures to send to actual exports in exporterwrapper.go, none of the properties from Node are used. See the Node proto for the agent.

At least for the Stackdriver exporter, we should follow the practice of the other Stackdriver exporters and write the g.co/agent attribute based on the Node.LibraryInfo that has the language and version info for the library that wrote the spans to the agent. That would allow users to understand
what library produced the spans in a particular trace in case it needs to be upgraded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions