Send traces/metrics using OTLP from .net 4.8 apps to the dashboard? #4842
Replies: 1 comment 23 replies
-
I have a service in development, running on .NET Framework on Windows 10 and exporting telemetry over OTLP to .NET Aspire dashboard version 8.0.0 on Wireshark shows the protocol is some sort of GRPC over HTTP/2 over TCP over IPv6 (
This service references the OpenTelemetry.Exporter.OpenTelemetryProtocol 1.8.1 package (not yet upgraded to 1.9.0). On net462, that package depends on "Grpc (>= 2.44.0 && < 3.0.0)" and thus the gRPC C# core-library, which will be deprecated some time after October 2024, rather than the Grpc.Net.Client package. Related: open-telemetry/opentelemetry-dotnet#4613. Might you have an authentication problem? I haven't bothered to secure the OTLP endpoint, because it's on localhost and used only for development so far. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I am currently trying to start migrating a .net 4.8 MVC app and some windows service to .new core.
There is a quite good doc on hosting the new asp.net core version alongside to the legacy MVC app and migrate endpoints incrementally.
Now, I would like to use Aspire to
Using aspire to launch my console app (aka "windows service") and the Aspnet MVC app does work fine.
However, the dashboard shows no data.
I added the opentelemetry stuff
Note: The console app looks similar but does not have the
AspNetInstrumentation()
Now, use the configurationbuilder stuff to get environment variables into my
ConfigurationManager.AppSettings
so aspire can forward all relevant configuration options to my service/web app (e.g.OTEL_EXPORTER_OTLP_ENDPOINT
) and this works as I do get all the variables that are defined.Unfortunately, I still do not see any logs/traces/metrics in the Aspire Dashboard.
My guess is:
Am I right?
If so, are there any plans to somehow support .net 4.8 by implementing any of the other protocols (http/protobuf, http/json) in the Aspire Dashboard?
Beta Was this translation helpful? Give feedback.
All reactions