Nicholas Weight
12/10/2024, 9:46 PMapiVersion: <http://opentelemetry.io/v1alpha1|opentelemetry.io/v1alpha1>
kind: Instrumentation
metadata:
name: dotnet-instrumentation
namespace: test
spec:
exporter:
endpoint: ingest.monitoring.internal:80
propagators:
- tracecontext
- baggage
- b3 # You can modify propagators based on your use case
sampler:
type: parentbased_always_on
dotnet:
env:
- name: OTEL_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: ingest.monitoring.internal:80
- name: OTEL_K8S_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: OTEL_K8S_POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: OTEL_EXPORTER_OTLP_INSECURE
value: "true"
- name: OTEL_TRACES_EXPORTER
value: otlp
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.name=$(OTEL_SERVICE_NAME),k8s.pod.ip=$(OTEL_K8S_POD_IP),k8s.pod.uid=$(OTEL_K8S_POD_UID)"
Now when I do this, the applications has all the information, but I am still not seeing anything in signoz.
So the question is, how do I move forward troubleshooting? Is there more info I can provide?
Thanks in advance!
Nick
Side Note: I have tried to use odigos since it automatically sets up instrumentation and pushes using otel but I am not seeing any of the information from it inside signoz and I am not seeing any errors in signozNicholas Weight
12/11/2024, 5:10 PMFROM <http://mcr.microsoft.com/dotnet/sdk:7.0|mcr.microsoft.com/dotnet/sdk:7.0> AS build-env
# install OpenTelemetry .NET Automatic Instrumentation
ARG OTEL_VERSION=1.9.0
ADD <https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/download/v${OTEL_VERSION}/otel-dotnet-auto-install.sh> otel-dotnet-auto-install.sh
RUN apt-get update && apt-get install -y unzip && \
OTEL_DOTNET_AUTO_HOME="/otel-dotnet-auto" sh otel-dotnet-auto-install.sh
WORKDIR /App
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o out
# Build runtime image
FROM <http://mcr.microsoft.com/dotnet/aspnet:7.0|mcr.microsoft.com/dotnet/aspnet:7.0>
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "my-app.dll"]
nitya-signoz
12/12/2024, 5:06 AMNicholas Weight
12/12/2024, 2:15 PMNicholas Weight
12/12/2024, 2:19 PMhttp://
in front of the endpoint.
@Yuvraj Singh, let me know what you need and I can get started on an outline.Nicholas Weight
12/12/2024, 2:22 PMnitya-signoz
12/12/2024, 2:29 PMNicholas Weight
12/12/2024, 7:28 PMNicholas Weight
12/12/2024, 7:29 PMNicholas Weight
12/12/2024, 7:40 PMGo to Related Logs
Nicholas Weight
12/13/2024, 5:19 PMYuvraj Singh
12/16/2024, 8:54 AM