Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resource type to Tracing API #39

Open
Tracked by #32
slashmo opened this issue Jan 26, 2021 · 4 comments
Open
Tracked by #32

Add Resource type to Tracing API #39

slashmo opened this issue Jan 26, 2021 · 4 comments
Labels
1 - triaged Task makes sense, is well defined, and is ready to be worked on t:otel-spec Open Telemetry spec related
Milestone

Comments

@slashmo
Copy link
Collaborator

slashmo commented Jan 26, 2021

OpenTelemetry defines a Resource as part of its spec: https://github.com/open-telemetry/opentelemetry-specification/blob/v0.7.0/specification/resource/sdk.md

Resource captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.

A resource is passed along when sending spans to the Otel collector.

Resources also have attributes with semantic conventions similar to spans: https://github.com/open-telemetry/opentelemetry-specification/blob/v0.7.0/specification/resource/semantic_conventions/README.md

It might be a good idea to expose the resource API as well as part of the Tracing library, but as the resources (e.g. which cloud provider the app is running on or whether it's running in a Docker container) are usually unknown to frameworks and instead known by the application developer, this API could also live in a specific tracer implementation.

@slashmo slashmo added the 0 - new Not sure yet if task is valid / going to be worked on label Jan 26, 2021
@slashmo slashmo added this to the 0.2.0 milestone Jan 26, 2021
@slashmo slashmo added the t:otel-spec Open Telemetry spec related label Aug 11, 2021
@ktoso ktoso modified the milestones: 0.2.0, 0.3.0 Oct 5, 2021
@ktoso ktoso modified the milestones: 0.3.0, 1.0.0 Aug 19, 2022
@ktoso ktoso modified the milestones: 1.0.0, 1.x Feb 24, 2023
@ktoso
Copy link
Member

ktoso commented Feb 24, 2023

I'm leaving this as something we can add later, trying to figure out how to make a 1.0 soon

@ktoso ktoso added 1 - triaged Task makes sense, is well defined, and is ready to be worked on and removed 0 - new Not sure yet if task is valid / going to be worked on labels Feb 24, 2023
@ktoso ktoso modified the milestones: 1.x, 1.1.x May 31, 2023
@wibed
Copy link

wibed commented Nov 28, 2023

selfish bump

@slashmo
Copy link
Collaborator Author

slashmo commented Nov 28, 2023

@wibed Thanks for the bump 🙏 Do you have a particular use case in mind for having the concept of resources in the library?

@wibed
Copy link

wibed commented Nov 28, 2023

id like to use resources as a cheap key:value store.
new to the whole tracing situation i am not sure which solution is better suited though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - triaged Task makes sense, is well defined, and is ready to be worked on t:otel-spec Open Telemetry spec related
Projects
None yet
Development

No branches or pull requests

3 participants