open-telemetry / opentelemetry-dotnet-contrib

This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
https://opentelemetry.io
Apache License 2.0
421 stars 251 forks source link

ResourceDetector.Host- implement other resources #1516

Open Kielek opened 6 months ago

Kielek commented 6 months ago

Issue with OpenTelemetry.ResourceDetectors.Host

List of all OpenTelemetry NuGet packages and version that you are using (e.g. OpenTelemetry 1.3.2):

Runtime version (e.g. net462, net48, net6.0, net7.0 etc. You can find this information from the *.csproj file):

Is this a feature request or a bug?

What is the expected behavior?

Implement all possible resources from https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/host.md

What is the actual behavior?

v0.1.0-alpha.1 implements only host.name.

thompson-tomo commented 1 month ago

As a starting point we should implement:

At the same time optin attributes should be explicitly opted in to via boolean options for computed fields & user definable strings for customisable fields