Not getting trace for all java and node js microservices #2555
Labels
area:auto-instrumentation
Issues for auto-instrumentation
auto-instrumentation:java
auto-instrumentation:nodejs
bug
Something isn't working
Describe the bug
Not getting trace for all java and node js microservices
Steps to reproduce
i am patching the java services as below:
kubectl patch deploy/role1 -p '{"spec": {"template": {"metadata": {"annotations": {"instrumentation.opentelemetry.io/inject-java": "true"}}}}}'
kubectl patch deploy/role1 -p '{"spec": {"template": {"metadata": {"annotations": {"sidecar.opentelemetry.io/inject": "true"}}}}}'
Same way I have patched another java service. for one service i am getting complete traces as well as I can see that service in AWS Opensearch > [Observability]>[Trace analytics]>[Services]. But for another service neither the service name or trace is populated in opensearch dashboard.
What did you expect to see?
I want to see all the services which has been patched like above mentioned steps.
What did you see instead?
another service neither the service name or trace is populated in opensearch dashboard.
What version did you use?
image: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator:0.90.0 - manager
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1 - rbac
What config did you use?
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
name: auto-instrumentation
spec:
exporter:
endpoint: "http://observability-collector.aws-otel-eks.svc.cluster.local:4317/"
propagators:
sampler:
type: parentbased_traceidratio
argument: "0.25"
java:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java:latest
nodejs:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-nodejs:latest
python:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:latest
Environment
AWS EKS 1.27
Additional context
NodeJS:
kubectl patch deploy/management -p '{"spec": {"template": {"metadata": {"annotations": {"instrumentation.opentelemetry.io/inject-nodejs": "true"}}}}}'
kubectl patch deploy/management -p '{"spec": {"template": {"metadata": {"annotations": {"sidecar.opentelemetry.io/inject": "true"}}}}}'
The text was updated successfully, but these errors were encountered: