Skip to content

fix: (feature) Integration with Datadog RUM#4553

Open
majiayu000 wants to merge 1 commit intothomaspoignant:mainfrom
majiayu000:fix-1877-feature-integration-with-datad-1229-0013
Open

fix: (feature) Integration with Datadog RUM#4553
majiayu000 wants to merge 1 commit intothomaspoignant:mainfrom
majiayu000:fix-1877-feature-integration-with-datad-1229-0013

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Summary

This PR fixes #1877

Changes

  • exporter/datadogexporter/exporter.go
  • exporter/datadogexporter/exporter_test.go

Add a new Datadog exporter that sends feature flag evaluation events to
Datadog's HTTP Log intake API. The events are sent as structured logs
that can be queried in Datadog Log Explorer and correlated with RUM
sessions using user identifiers.

Features:
- Sends feature flag evaluations as structured logs to Datadog
- Configurable API key, site, source, service, and tags
- Supports multiple Datadog sites (US1, EU, etc.)
- Includes user context for RUM correlation
- Follows existing exporter patterns in the codebase

Closes thomaspoignant#1877

Signed-off-by: majiayu000 <1835304752@qq.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 28, 2025

Deploy Preview for go-feature-flag-doc-preview canceled.

Name Link
🔨 Latest commit 9546b3f
🔍 Latest deploy log https://app.netlify.com/projects/go-feature-flag-doc-preview/deploys/69515a89b8d7940008515e33

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 28, 2025

Codecov Report

❌ Patch coverage is 88.40580% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.56%. Comparing base (6693a6e) to head (9546b3f).

Files with missing lines Patch % Lines
exporter/datadogexporter/exporter.go 88.40% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4553      +/-   ##
==========================================
+ Coverage   85.50%   85.56%   +0.06%     
==========================================
  Files         151      152       +1     
  Lines        6243     6312      +69     
==========================================
+ Hits         5338     5401      +63     
- Misses        675      678       +3     
- Partials      230      233       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

(feature) Integration with Datadog RUM

2 participants