Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Consider adding constants for standard tags #235

Open
julienvey opened this issue Nov 2, 2020 · 0 comments
Open

Consider adding constants for standard tags #235

julienvey opened this issue Nov 2, 2020 · 0 comments

Comments

@julienvey
Copy link

julienvey commented Nov 2, 2020

Use Case

I think the opentracing-go should expose constants for standard opentracing tags, in the same way as the http package exposes constants for status codes. This would be for discoverability, it will also help people new to opentracing, and would also serve as documentation for standard tags.

Proposal

Add constants such as TagComponent = "component" in opentracing package, and update the README/doc to make use of these constants

The link to the opentracing semantic conventions https://github.com/opentracing/specification/blob/master/semantic_conventions.md#standard-span-tags-and-log-fields

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant