For settings up SumoLogic OpenTelemetry for a .NET Framework 4.7.2 application, I have followed the below steps but it does not send any Telemetry data via the collector.
As per this documentation,
- We installed Sumo Logic OpenTelemetry Collector (https://github.com/SumoLogic/sumologic-otel-collector/releases/tag/v0.76.1-sumo-0) which is their next-generation collector, built on OpenTelemetry, that provides a single unified agent to send logs, metrics, traces, and metadata for Observability to Sumo Logic.
- Collector works properly and it was able to record the Host (server) related data to SumoLogic. It is optional but we tested it to see if the collector works.
- Now, we need to enable Application traces to get application performance monitoring. In order to do that, we followed the documentation (https://help.sumologic.com/docs/apm/traces/get-started-transaction-tracing/opentelemetry- instrumentation/net/). This documentation says that we need OpenTelemetry Collector (https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/v0.7.0). Do we need both SumoLogic Telemetry Collector and OpenTelemetry collector?
- One of the requirements for OpenTelemetry to work with .NET Framework application is to reference OpenTelemetry.Instrumentation.AspNet package. This is a pre-release version.
Questions:
- Do we have to rely on the pre-release version of nuget package?
- Does SumoLogic APM work with .NET Framework application? Any test .NET framework application with SumoLogic integration in GitHub repo?
- When we uninstall the telemetry collector, all the websites in IIS are breaking with the attached error. We checked the IIS for any additional module configuration by directing accessing the IIS config (applicationHost.config) and we do not see any Telemetry related configuration but still IS failed to load any sites. We had to reinstall the IIS to fix it.
To establish E2E ASP.NET instrumentation, you typically need few things:
Based on this, I can try to answer your questions.
There is no other option, for now, to instrument ASP.NET applications without this package. The main reason why this package is unstable is lack of stable version for OpenTelemetry Semantic Convention (tags can be changed in the future). See this repository for details.
Both OpenTelemetry.Instrumentation.AspNet and OpenTelemetry .NET Automatic Instrumentation are open-sourced, and I do not recall any important issue related to this functionality. Depending on which version you choose, you should report a new issue under one of the following repositories OpenTelemetry .NET Automatic Instrumentation or OpenTelemetry.Instrumentation.AspNet. Please follow the GH issue patters. It should allow to easier reproduce an issue and help your solution.
OpenTelemetry collector or OpenTelemetry .NET Automatic Instrumentation? In both cases, more data are required to try to help you. Logs/information what kind of issue you have, etc.