Skip to content

Full OpenTelemetry Support for Lambda Extension #722

@naftulikay

Description

@naftulikay

I filed recently #715 and @duncanista advised me to create an issue here to track a feature request.

Background

I've been working on a project for quite some time which will run as an AWS Lambda function serving HTTP requests via API Gateway, asynchronous queue jobs via SQS, scheduled jobs (i.e. cron) with EventBridge Scheduler, and a handful of other services. My application is written in Rust, so since there is no native Datadog crate yet, I was planning on using Datadog's OpenTelemetry support to send my logs, metrics, and traces to Datadog. I've done this before with a non-Lambda Rust application in Kubernetes and it works great.

I'm aware that I can configure Datadog in AWS to pull logs from CloudWatch, but as far as I can tell, there is no Rust crate available that can emit logs in OpenTelemetry JSON format, and I'm not sure if there's even a standard for this whatsoever. opentelemetry_stdout emits debug-formatted telemetry which is neither really machine-parseable nor human-readable.

@duncanista advised me that this newer Lambda extension supports OTEL traces but does not yet support logging and metrics, so I'm adding this issue as a feature request.

Feature Request

Adding support for the full suite of OpenTelemetry data (logs, traces, and metrics) would enable me (and others) to send all telemetry to Datadog through the OpenTelemetry standard, regardless of which programming language is being used.

As for the actual wire format, I'm agnostic as to whether to send telemetry over HTTP or gRPC, Rust can do either just fine.

In summary, I'm asking for support for this extension to be added for full OpenTelemetry support in terms of logging, tracing, and metrics, and I'm hoping this won't be too difficult to add, as the Datadog Agent itself supports everything I need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestversion/nextIssues related to DD_EXTENSION_VERSION: next

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions