Skip to content

Commit 40751d7

Browse files
Information about collecting traces (#4992)
* Information about collecting traces * Updates to the sub-section name and content
1 parent 2f49a2d commit 40751d7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/send-data/kubernetes/troubleshoot-collection.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,33 @@ Then, look at the Sumo Logic Mock logs:
696696
2024-02-13T14:19:56.412Z DEBUG [sumologic_mock::router::otlp] Span => name: ancestor-7, span_id: 34b7b7f27d6a9d86, parent_span_id: 2ef9759def53f709, trace_id: f7563cc4ef721e1d14974eea71e20b55
697697
```
698698

699+
### Auto-instrumentation (tracing)
700+
701+
The environment variables injected into a pod by Java auto-instrumentation are shown below.
702+
703+
```yaml
704+
Environment:
705+
OTEL_NODE_IP: (v1:status.hostIP)
706+
OTEL_POD_IP: (v1:status.podIP)
707+
OTEL_METRICS_EXPORTER: otlp
708+
OTEL_TRACES_EXPORTER: otlp
709+
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
710+
OTEL_EXPORTER_OTLP_ENDPOINT: http://sumo-sumologic-otelagent.observability:4318
711+
JAVA_TOOL_OPTIONS: -javaagent:/otel-auto-instrumentation-java/javaagent.jar
712+
OTEL_APPLICATION_NAMESPACE_NAME: default
713+
OTEL_SERVICE_NAME: java-app
714+
OTEL_RESOURCE_ATTRIBUTES_POD_NAME: java-app-58cdff4f7b-2zv5q (v1:metadata.name)
715+
OTEL_RESOURCE_ATTRIBUTES_NODE_NAME: (v1:spec.nodeName)
716+
OTEL_PROPAGATORS: tracecontext,baggage
717+
OTEL_RESOURCE_ATTRIBUTES: application=default,k8s.container.name=javaapp,k8s.deployment.name=java-app,k8s.namespace.name=default,k8s.node.name=$(OTEL_RESOURCE_ATTRIBUTES_NODE_NAME),k8s.pod.name=$(OTEL_RESOURCE_ATTRIBUTES_POD_NAME),k8s.replicaset.name=java-app-58cdff4f7b,service.instance.id=default.$(OTEL_RESOURCE_ATTRIBUTES_POD_NAME).javaapp,service.version=main
718+
```
719+
720+
:::note
721+
Ensure that the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable is set to `http://sumo-sumologic-otelagent.observability:4318` to allow proper communication with the OpenTelemetry Collector.
722+
723+
Where `sumo` is the release name and `observability` is the release namespace.
724+
:::
725+
699726
## Collecting events
700727

701728
### Check events body

0 commit comments

Comments
 (0)