Skip to content

Suggestion: Add missing OTLP config steps for Rust instrumentation #28

@Snamnik

Description

@Snamnik

We've successfully instrumented our Rust service using the official Datadog article on monitoring Rust with OpenTelemetry. However, it took us several hours to identify two important configuration steps that are not mentioned in the article, and we believe including them would help others avoid confusion:


1. Enable OTLP Logs in the Datadog Agent

To ensure the Agent accepts logs over OTLP, the following environment variable must be set in the Agent configuration (as described here):

- name: DD_OTLP_CONFIG_LOGS_ENABLED
  value: "true"

2. Configure OTLP Ingestion Mode (HTTP or gRPC)

To support either HTTP or gRPC ingestion for OTLP data, it's important to follow the configuration guide found in this Datadog doc.

otlp_config:
  receiver:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

It would be very helpful if these points could be added to the original article to make the Rust instrumentation process more seamless for future readers.

Thanks for the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions