cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

opentelemetry collector config using otlp exporter for traces

hamid
Newcomer_

I am trying to use  opentelemetry otlp exporter (using grpc) to export traces to Dynatrace and here is my config for the exporter

 

exporters:
  otlp/dynatrace:
    endpoint: https://{environmentid}.live.dynatrace.com:443
    headers:
      Authorization: Api-Token <api_token>
    wait_for_ready: false
    sending_queue:
      enabled: false
    tls:
      insecure: false
      insecure_skip_verify: true

 

However, i get timeout error. I tried using https://{environmentid}.live.dynatrace.com/api/v2/otlp/v1/traces:443  endpoint and got host not found error.

Please note that otlp exporter expect a port at the end of the endpoint string (separated by column)

I appreciate if you could share an example config with otlp exporter (not otlphttp exporter) to be used to export traces to Dynatrace. Thank you

3 REPLIES 3

alexander_dt
Dynatrace Helper
Dynatrace Helper

The two error messages you posted would suggest a network issue. Did you verify if the network is working, in particular DNS?

Of course, it could also be a configuration issue, which breaks the hostname (and subsequently DNS resolution). I am not too familiar with the precise syntax of the configuration file and not entirely sure if endpoint is supposed to point to a hostname or a URL.

If it is the latter, I'd assume your configuration is all right (though you said you want to use gRPC, right?). The second URL (with the path) should not be correct, however, as you need to specify the port after the hostname, not after path.

alexander_dt
Dynatrace Helper
Dynatrace Helper

I was just informed that the backend would not support gRPC yet, so you'd need to use HTTP, in which case endpoint takes a proper URL, which should be the base one. Have you tried this already?

endpoint: https://{environmentid}.live.dynatrace.com:443/api/v2/otlp

Hi,
I am setting up AWS Lambda monitoring using opentelemetry by following this doumentation:

https://docs.dynatrace.com/docs/shortlink/aws-lambda-otel-dotnet?_ga=2.54283752.1940541144.171681239...

But this documentation does not cover how to send captured traces from AWS Lambda to Dynatrace endpoint.

Where I am supposed to add Dynatrace endpoint details?

 

Regards

Featured Posts