Description
I just saw the release information for this new OpenTelemetry.Extensions.Enrichment
package today and it seems super useful for some use cases that we have.
I went to check the main README.md
on the project to learn more about how it works, and one thing that immediately jumped to me as lacking was information about when/how the TraceEnricher
class is created. Is a single instance of the enricher created per application (singleton), is it scoped, or is it created for each individual Activity
?
This is important to be able to know the types of dependencies we can inject in the implementations. I would like to be able to inject things that are naturally scoped, for instance.
Can the docs be updated to add detail about the lifetime of the TraceEnricher
instances when DI is used?