M.H
M.H
CC#
Created by M.H on 6/15/2024 in #help
✅ Open telemetry & asp.net core
Hello guys! I'm trying to setup the open telemetry within my asp.net core project I've took the inital code from offical repository - https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/examples/AspNetCore But i still have some problem:
builder.Services.AddOpenTelemetry()
builder.Services.AddOpenTelemetry()
0>Program.cs(46,1): Error CS1929 : 'IServiceCollection' does not contain a definition for 'AddOpenTelemetry' and the best extension method overload 'OpenTelemetryLoggingExtensions.AddOpenTelemetry(ILoggingBuilder)' requires a receiver of type 'Microsoft.Extensions.Logging.ILoggingBuilder'
0>Program.cs(46,1): Error CS1929 : 'IServiceCollection' does not contain a definition for 'AddOpenTelemetry' and the best extension method overload 'OpenTelemetryLoggingExtensions.AddOpenTelemetry(ILoggingBuilder)' requires a receiver of type 'Microsoft.Extensions.Logging.ILoggingBuilder'
I'm pretty sure that i have problems with versions but i can't figure out which versions i need to install 😦
103 replies