✅ 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:
I'm pretty sure that i have problems with versions but i can't figure out which versions i need to install 😦
46 Replies
The code line above (AddOpenTelemetry) in the original repo is here - https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/examples/AspNetCore/Program.cs#L36
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
What do you mean 'you have in mind'?
I dont understand you well 😦
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I'm just trying follow the officialexample from this repo https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/examples/AspNetCore
GitHub
opentelemetry-dotnet/examples/AspNetCore at main · open-telemetry/o...
The OpenTelemetry .NET Client. Contribute to open-telemetry/opentelemetry-dotnet development by creating an account on GitHub.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
>I mean "what are you guessing is the issue behind this error"
Aww, ok
As i mentioned before, i guess, there are problems with versions
For the true, i had the same problems but with another project (even language) and it was really painful
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Here's a cool story... I'm a newbie in .NET, so I can only guess how it works
I've installed the latest versions
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
This is my csproj for now)
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
>or did you just took all the latest
yea, you're right
There isn't a single version that's the same for all of them.
If i'm not mistaken))
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
oh my...interesting one
Thank you for your advice
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I have just started a fresh project, which I created just an hour ago.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
About versions - they are using the latest one... probably because of
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I'm 99% sure you're missing a nugetNah, Rider has done this for me
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
BlazeBin - wtbwntkxfehv
A tool for sharing your source code with the world!
yea, it's the webapi
or web..i'm not sure here sorry
if there is any difference between web and web api
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
oh my fucking goodnes
really..
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
that's why i hate these fucking extensions
with fucking magic
i will try now
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
oh my..
you're right
it's fine now
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Seriously... why did they decide to do it with magic over extension 😦
I prefer to manually create an instance and provide it... darn))
Thank you so much!
I'll remember how to solve...just looking definition of the functions...it's good one)
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Ok, ok, I got it. That's helpful information
i see
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
:HmmCouncilRTX3:
It looks so simple... I feel dumb about my previous problem ))
Thank you for the information
Very helpful!
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
:kekw:
I had the problem with the versions in Go, as I mentioned before. There's no magic like that, so... By the way, it was an interesting experience. I see, OpenTelemetry (especially Google, I believe) doesn't need to do any open-source projects ))
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I'm not a big fan of Go, but you're wrong here. You can use the version that you need. They pull it from GitHub, but you're able to use tags, commits, etc.
And of course, there is a frozen mechanism for this.
By the way, the problem was not with that. OpenTelemetry has a lot of different projects that you usually need to use together, and I couldn't combine them because of different versions and compile errors due to differing function signatures. Quite frustrating, really.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered