# opentelemetry collector config using otlp exporter for traces

**URL:** <https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456>\
**Category:** OpenTelemetry\
**Tags:** distributed-traces-classic, opentelemetry\
**Created:** [February 15, 2023, 2:14pm UTC](https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456 "2023-02-15T14:14:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamid](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hamid](https://community.dynatrace.com/u/hamid)\
**Post date:** [February 15, 2023, 2:14pm UTC](https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456/1 "2023-02-15T14:14:10Z")

</div>

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

```markup
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&nbsp;https://{environmentid}.live.dynatrace.com/api/v2/otlp/v1/traces:443&nbsp; 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

---

<div class="post-metadata">

**Author:** ![alexander\_dt](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alexander\_dt](https://community.dynatrace.com/u/alexander_dt)\
**Post date:** [February 16, 2023, 7:24am UTC](https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456/2 "2023-02-16T07:24:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![alexander\_dt](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alexander\_dt](https://community.dynatrace.com/u/alexander_dt)\
**Post date:** [February 16, 2023, 9:13am UTC](https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456/3 "2023-02-16T09:13:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AdilSaleem](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@AdilSaleem](https://community.dynatrace.com/u/AdilSaleem)\
**Post date:** [May 27, 2024, 12:24pm UTC](https://community.dynatrace.com/t/opentelemetry-collector-config-using-otlp-exporter-for-traces/38456/4 "2024-05-27T12:24:27Z")

</div>

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

> **[Trace .NET Lambda functions](https://docs.dynatrace.com/docs/ingest-from/amazon-web-services-classic/integrate-into-aws/aws-lambda-integration/aws-lambda-classic/aws-lambda-otel-integration)**
>
> Trace AWS Lambda functions using a .NET runtime

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
