Sitelet https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/641
Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Make configuration of TelemetryChannel easy #641

Description

TelemetryChannel is not configured via DI, hence it cannot be retrieved from DI by user.

Proposal is to add channel to DI just like other modules and initializers for consistency, if not already added by user.

The following line is all whats needed by user to control TelemetryChannel.
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel() {MaxTelemetryBufferCapacity = 19898 });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions