open-telemetry / opentelemetry-erlang-contrib

OpenTelemetry instrumentation for Erlang & Elixir
https://opentelemetry.io
Apache License 2.0
166 stars 118 forks source link

Resource Detector: Kubernetes #100

Open tsloughter opened 2 years ago

RichardChukwu commented 1 month ago

Can you give more details on this issue please @tsloughter

tsloughter commented 1 month ago

@RichardChukwu a k8s resource detector implement a behaviour (https://github.com/open-telemetry/opentelemetry-erlang/blob/main/apps/opentelemetry/src/otel_resource_detector.erl#L42-L44) and fill in the semantic conventions from here:

https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md

https://github.com/open-telemetry/opentelemetry-erlang/blob/e5c316e097e82b7b513406fa84a48300d0dc9226/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl