ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#โ€ข2y agoโ€ข
102 replies
M.H

โœ… 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 ๐Ÿ˜ฆ
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

โ” ASP.NET to .net Core
C#CC# / help
3y ago
ASP.NET CORE MVC VS ASP.NET CORE WEB API
C#CC# / help
17mo ago
Learning ASP.Net Core
C#CC# / help
8mo ago
Next page