open-telemetry / opentelemetry-specification

Specifications for OpenTelemetry
https://opentelemetry.io
Apache License 2.0
3.64k stars 871 forks source link

Semantic conventions for Dependency Injection #813

Open ENikS opened 3 years ago

ENikS commented 3 years ago

I am working on a new version of Unity Container and considering adding support for open telemetry.

I been looking for DI or IOC semantic conventions but could not find anything on the subject. I would appreciate if someone could point me to a right place, or if these do not exist, I would like to start a discussion about creating them.

Oberon00 commented 3 years ago

What kind of events/spans/metrics would you like to report? There are no semantic conventions for DI yet.

ENikS commented 3 years ago

Are there guidelines for these? I’ve got to think about how to answer your question, still learning about the whole concept

Oberon00 commented 3 years ago

The guidelines are currently under discussion in #807. Even though some things may still change, I think the text in that PR may already be helpful.

ENikS commented 3 years ago

@davidfowl

Do you know if Microsoft has done anything to standardize DI trace in net5?

ENikS commented 3 years ago

I've been trying to work with Microsoft team on performance issues with the Activity API. It appears the whole implementation might not be suitable for Dependency Injection instrumentation.

For more info see dotnet/runtime#40988