Skip to content

Conversation

@lym953
Copy link
Contributor

@lym953 lym953 commented Jan 7, 2026

Motivation

A customer reported that their Lambda is behind a proxy, and the Rust-based extension encounters an error when sending logs and metrics to Datadog via the proxy.

What does this PR do?

Previous PRs in datadog-lambda-extension repo fixed this for traces/stats (DataDog/datadog-lambda-extension#961) and logs/proxy (DataDog/datadog-lambda-extension#979). This PR fixes this issue for dogstatsd metrics.

Additional Notes

Describe how to test/QA your changes

Steps

See DataDog/datadog-lambda-extension#979

Result

Before:
Metrics flushing failed:

DD_EXTENSION | DEBUG | Flushing 0 series and 1 distributions
DD_EXTENSION | DEBUG | Sending distributions: SketchPayload { ... }
DD_EXTENSION | DEBUG | Request to https://api.datadoghq.com/api/beta/sketches took 144ms
DD_EXTENSION | ERROR | Error shipping data: None Failed to send request after 3 attempts
DD_EXTENSION | ERROR | Failed to flush some metrics due to shipping errors: 0 series and 1 sketches

After:
Metrics flushing succeeded:

DD_EXTENSION | DEBUG | Flushing 0 series and 1 distributions
DD_EXTENSION | DEBUG | Sending distributions: SketchPayload { ... }
DD_EXTENSION | DEBUG | Request to https://api.datadoghq.com/api/beta/sketches took 619ms
DD_EXTENSION | DEBUG | Successfully flushed 0 series and 1 distributions

Notes

Customer report issue: DataDog/datadog-lambda-extension#919

@lym953 lym953 marked this pull request as ready for review January 8, 2026 22:39
@lym953 lym953 requested review from a team as code owners January 8, 2026 22:39
@lym953 lym953 requested review from Lewis-E and removed request for a team January 8, 2026 22:39
@lym953 lym953 merged commit 18b49ba into main Jan 9, 2026
20 checks passed
@lym953 lym953 deleted the yiming.luo/dogstatsd-tls-cert branch January 9, 2026 16:02
lym953 added a commit to DataDog/datadog-lambda-extension that referenced this pull request Jan 9, 2026
…er (#984)

## Motivation
A customer reported that their Lambda is behind a proxy, and the
Rust-based extension encounters an error when sending logs and metrics
to Datadog via the proxy.

## Overview

Previous PRs in fixed this for traces/stats
(#961) and
logs/proxy
(#979).
DataDog/serverless-components#61 in
`serverless-components` repo fixed this issue for dogstatsd metrics.
This PR upgrades the dependency on `serverless-components` to patch this
update.

## Testing 
#### Steps
See #979

#### Result
**Before:**
Metrics flushing failed:
> DD_EXTENSION | DEBUG | Flushing 0 series and 1 distributions
DD_EXTENSION | DEBUG | Sending distributions: SketchPayload { ... }
DD_EXTENSION | DEBUG | Request to
https://api.datadoghq.com/api/beta/sketches took 144ms
DD_EXTENSION | ERROR | Error shipping data: None Failed to send request
after 3 attempts
DD_EXTENSION | ERROR | Failed to flush some metrics due to shipping
errors: 0 series and 1 sketches

**After:**
Metrics flushing succeeded:
> DD_EXTENSION | DEBUG | Flushing 0 series and 1 distributions
DD_EXTENSION | DEBUG | Sending distributions: SketchPayload { ... }
DD_EXTENSION | DEBUG | Request to
https://api.datadoghq.com/api/beta/sketches took 619ms
DD_EXTENSION | DEBUG | Successfully flushed 0 series and 1 distributions

## Notes
Customer report issue:
#919
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants