java-instrumentation-kafka.yaml 932 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: opentelemetry.io/v1alpha1
  2. kind: Instrumentation
  3. metadata:
  4. name: cecf-instrumentation
  5. namespace: obs-operator
  6. spec:
  7. propagators:
  8. - tracecontext
  9. - baggage
  10. java:
  11. image: reg.cestong.com.cn/cecf/autoinstrument-java-ext:v2.5.0
  12. env:
  13. - name: OTEL_TRACES_EXPORTER
  14. value: none
  15. - name: OTEL_METRICS_EXPORTER
  16. value: none
  17. - name: OTEL_LOGS_EXPORTER
  18. value: none
  19. - name: OTEL_TRACES_EXT_EXPORTER
  20. value: kafka
  21. - name: OTEL_TRACES_EXT_ID_GENERATOR
  22. value: tsTraceId
  23. - name: OTEL_TRACES_EXT_KAFKA_BATCH_SIZE
  24. value: "16384"
  25. - name: OTEL_TRACES_EXT_KAFKA_BROKERS
  26. value: "kafka.observe.svc.cluster.local:9092"
  27. - name: OTEL_TRACES_EXT_KAFKA_EXECUTOR_SIZE
  28. value: "2"
  29. - name: OTEL_TRACES_EXT_KAFKA_TIMEOUT_SECONDS
  30. value: "1"
  31. - name: OTEL_TRACES_EXT_KAFKA_TOPIC
  32. value: otel_agent