Vue Storefront is now Alokai! Learn More
Dynatrace exporter

Dynatrace exporter

Dynatrace receives both traces and metrics from the Alokai collector via its OTLP ingest API. Traces appear in Distributed Traces and Services; metrics appear in Metrics and can be used in dashboards and alerting.

What you need

  • OTLP endpoint — your environment's ingest URL. For Dynatrace SaaS:
    https://<your-environment-id>.live.dynatrace.com/api/v2/otlp
    

    Find your environment ID in the URL of your Dynatrace instance (e.g. https://abc12345.live.dynatrace.com → ID is abc12345).
  • API token — see Creating an API token below.

Creating an API token

Dynatrace API tokens are scope-based — grant only the scopes needed for the signals you intend to export.

  1. In Dynatrace, go to Settings → Access Tokens (or search for Access Tokens in the top navigation).
  2. Click Generate new token.
  3. Enter a name — e.g. alokai-cloud-otel.
  4. Add the required scopes:
    SignalScope to enable
    TracesopenTelemetryTrace.ingest
    Metricsmetrics.ingest
  5. Click Generate token.
  6. Copy the token immediately — it is only displayed once.

Token names in Dynatrace are not required to be unique. Use a descriptive name so you can identify and revoke it later if needed.

Configuring in the Console

In the Console, navigate to your instance's observability settings and enable the Dynatrace integration. You will be asked to provide:

  1. OTLP endpoint
  2. API token
  3. Which signals to enable: Traces, Metrics, or both

The collector is deployed automatically once you save.

Finding your data in Dynatrace

Traces appear in Distributed Traces. If service.name is set on your application, Dynatrace automatically creates a service entity and associates traces with it under Services.

Metrics appear in Metrics Browser. Custom metrics emitted by your application are ingested under their original OTel metric names.

Service naming

Dynatrace uses the service.name OTel resource attribute to identify and group services. Set it via OTEL_SERVICE_NAME on your application:

OTEL_SERVICE_NAME=storefront
OTEL_RESOURCE_ATTRIBUTES=deployment.environment=production,service.version=1.4.2

Reference