Skip to content

Missing TraceEnricher instance scope information in OpenTelemetry.Extensions.Enrichment documentation #2551

Open
@julealgon

Description

@julealgon

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?

@evgenyfedorov2

Metadata

Metadata

Labels

comp:extensions.enrichmentThings related to OpenTelemetry.Extensions.Enrichment

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions