Skip to content

Default host behavior for OpenTelemetryBuilder With* extensions #4985

@CodeBlanch

Description

@CodeBlanch

Related to #4896

See: #4958 (comment)

Currently calling WithMetrics or WithLogging does NOT enable integration with the hosting pipeline (ILoggerFactory or IMetricsListener).

Based on discussions with @noahfalk & @samsp-msft it sounds like we want to enable those by default perhaps giving users a way to opt-out. Opening this issue to track that effort.

Updates...

Metrics: #4958 changes WithMetrics to register the IMetricsListener
Logging: #5072 changes WithLogging to perform services.AddLogging(builder => builder.UseOpenTelemetry())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions