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

SDK: environment-aware TelemetryResource #615

Closed
iRevive opened this issue Apr 20, 2024 · 2 comments
Closed

SDK: environment-aware TelemetryResource #615

iRevive opened this issue Apr 20, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed sdk module Features and improvements to the sdk module

Comments

@iRevive
Copy link
Contributor

iRevive commented Apr 20, 2024

OpenTelemetry Java can detect a large variety of environments (e.g. GCP, AWS ECS, etc) and add additional
environment-specific attributes to the TelemetryResource. For example, when an application runs in the container, the container.id attribute can be added to the telemetry resource.

We can implement the following:
a) Common: Container, Host, OS, Process
b) Google Cloud: GCP
c) AWS: Beanstalk, EC2, ECS, EKS, Lambda

@iRevive iRevive added help wanted Extra attention is needed sdk module Features and improvements to the sdk module labels Apr 20, 2024
@iRevive iRevive changed the title Trace SDK: environment-aware TelemetryResource configurer SDK: environment-aware TelemetryResource configurer Apr 20, 2024
@iRevive iRevive changed the title SDK: environment-aware TelemetryResource configurer SDK: environment-aware TelemetryResource Apr 20, 2024
@iRevive
Copy link
Contributor Author

iRevive commented Aug 6, 2024

https://opentelemetry.io/docs/specs/otel/resource/sdk/

Custom resource detectors related to generic platforms (e.g. Docker, Kubernetes) or vendor specific environments (e.g. EKS, AKS, GKE) MUST be implemented as packages separate from the SDK.

@iRevive
Copy link
Contributor Author

iRevive commented Aug 30, 2024

We have Host, OS, Process, and ProcessRuntime detectors in the sdk-common module. AWS and GCP belong to separate modules.

@iRevive iRevive closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed sdk module Features and improvements to the sdk module
Projects
None yet
Development

No branches or pull requests

1 participant