Rick Buitrago
12/16/2024, 8:25 AMno-code autoinstrumentation but it seems like it's not connecting to local signoz. Using libraries is not desirable at this moment, as it would imply a general upgrade of dependencies. What else can I try?Srikanth Chekuri
12/16/2024, 2:45 PMRick Buitrago
12/16/2024, 2:49 PMRick Buitrago
12/16/2024, 2:50 PMI set up the auto instrumentation (no-code) script
RUN curl --fail -Lo /tmp/otel-dotnet-auto-install.sh \
<https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/latest/download/otel-dotnet-auto-install.sh>Rick Buitrago
12/16/2024, 2:52 PMset up the ENV variables in the container
COPY --from=build /tmp/otel-dotnet-auto-install.sh /tmp/otel-dotnet-auto-install.sh
RUN apt-get update && apt-get -y install --no-install-recommends unzip \
&& apt-get -y install --no-install-recommends curl
RUN sh /tmp/otel-dotnet-auto-install.sh
RUN chmod +x $HOME/.otel-dotnet-auto/instrument.sh
ENV OTEL_SERVICE_NAME=my-service
ENV OTEL_EXPORTER_OTLP_PROTOCOL=grpc
ENV OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
RUN . $HOME/.otel-dotnet-auto/instrument.shSrikanth Chekuri
12/16/2024, 2:53 PMRick Buitrago
12/16/2024, 2:57 PMRick Buitrago
12/16/2024, 2:57 PMRick Buitrago
12/16/2024, 4:22 PMtroubleshoot checkEndpoint works as well. But the service does not appear yet in the collector. At least networking is no longer an issue.Rick Buitrago
12/16/2024, 5:35 PM1.6.0 (Current is 1.10.0 ). builder.Services.ConfigureOpenTelemetryTracerProviderRick Buitrago
12/16/2024, 6:14 PMOpenTelemetry.Extensions.Hosting and OpenTelemetry.Instrumentation.AspNetCore. Console exporter finally worked!Rick Buitrago
12/17/2024, 12:14 PMOpenTelemetry.Exporter.OpenTelemetryProtocol and little code to configure endpoint and protocol. In the end, I was able to connect to locally hosted signoz collector. Success!SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by