OpenTelemetry Collector

Add the Splunk AppDynamics configuration to the OpenTelemetry Collector service.
Note: The following snippet is a sample configuration file. See Configure Collector for more details about OpenTelemetry Collector.
# otel-config.yaml
processors:
  batch:
  memory_limiter:
  resource:
    attributes:
      - key: service.namespace
        action: upsert
        value: "xxx"
      - key: appdynamics.controller.host
        value: "xxx"
        action: upsert
      - key: appdynamics.controller.port
        value: xxx
        action: upsert
      - key: telemetry.sdk.name
        value: "xxx"
        action: upsert
      - key: appdynamics.controller.account
        value: "xxx"
        action: upsert

receivers:
  otlp:
    protocols:
      grpc:
      http:
        cors_allowed_origins:
          - http://*
          - https://*

exporters:
  otlphttp:
    endpoint: "https://<your-region>-sls-agent-api.saas.appdynamics.com"
    headers: { "x-api-key": "xxxxxx" }

  logging:
    loglevel: debug

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch, resource]
      exporters: [otlphttp, logging]