Closed danielodievich closed 1 year ago
I realized that I may have chosen the wrong repository to file this issue. If maintainers agree, please accept my apologies and close this issue here. Meanwhile, I have made a copy of it in https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/2588.
Summary
I have a large legacy ASP.NET Web Forms .NET 4.7 Framework application that I would like to instrument. In anticipation of this, I decided to revisit the Autoinstrumentation to see how well it works with the older style apps running on .NET 4.7 under IIS. The Autoinstrumentation works to send metrics, but fails to send traces with a repeated error in the logs.
Test Applications
I created 3 test applications using .NET 4.7.2 framework (
net472
):I am hosing them in IIS:
Configuration of Autoinjection
I got binaries locally https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/tag/v0.7.0.
I added
OTEL_LOG_LEVEL
=debug
per https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/docs/config.md#internal-logs to the variables set up byOpenTelemetry.DotNet.Auto.psm1
before configuring anything.I then ran the install from the local archive:
The binaries are properly unpacked to
C:\Program Files\OpenTelemetry .NET AutoInstrumentation
and I can I can see the variables set up in theW3SVC
service:OtelCol setup
I got otelcol from https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.78.0.
I configured it with this
otel-collector-config.yaml
:I started otelcol:
Running the test Applications
When I invoke the applications, I can see the OpenTelemetry Autoingestion kick in (the agent asseblies show up in in the list of loaded dlls in the w3wp) and the logs in
C:\ProgramData\OpenTelemetry .NET AutoInstrumentation\logs
begin populating.Metrics are Flowing great
I see this in logs and immediately start seeing metrics sent to my service by otelcol:
Traces are Not working
However, I am not seeing any traces. Instead, each of my applications is showing this message in the logs every 60 seconds:
OtelCol zpages
In the http://localhost:55679/debug/tracez, I am seeing only
/v1/metrics
andexporter/prometheusremotewrite/metrics
. I am not seeing theexporter/otlphttp/traces
oropentelemetry.proto.collector.trace.v1.TraceService/Export
which I see from some other autoinstrumentation of a Python app elsewhere in another environment.Logs
The logs are otel-dotnet-auto-logs.zip
Apps
HelloWorld.zip WebApplicationForOTEL.zip WebApplicationForOTEL2.zip
Expected Behavior
I'd really like Traces to automagically appear, like they are expected to.