Skip to content

Application Insights Telemetry failing to initialize #4391

@dsarfati

Description

@dsarfati

I'm trying to add the Application Insights Telemetry to our 2.0 app and im getting the following exception

System.InvalidOperationException: Unable to resolve service for type 'System.String' while attempting to activate 'Orleans.TelemetryConsumers.AI.AITelemetryConsumer'.

Looking at the code it looks like the only constructor on the AITelemetryConsumer takes a string, causing the exception. Simply adding a DI compatible constructor should fix the issue. I'll submit a PR if this makes sense.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions