Skip to main content

ForgeSight Datadog exporter — DD-native APM spans + cost metric, via DD Agent or OTLP intake.

Project description

forgesight-datadog

The Datadog exporter for ForgeSight. Surfaces agent telemetry in Datadog APM with the unified service / env / version tags, LLM / tool / MCP calls as child spans, and the SDK's computed cost as the monitorable DD metric forgesight.cost_usd — the same number every other backend reports.

pip install forgesight-datadog
import forgesight
from forgesight_datadog import DatadogExporter

forgesight.configure(exporters=[
    DatadogExporter(api_key="...", site="datadoghq.com",
                    service="issue-classifier", env="prod"),
])

Or by name: exporters: [{name: datadog, config: {api_key: "${DD_API_KEY}", service: ...}}].

Two transports

  • agent (default) — maps each record to a DD APM span via ddtrace and writes it to a local DD Agent (agent_endpoint: http://datadog-agent:8126), plus emits cost/token DD metrics. Direct intake (no agent_endpoint) requires api_key.
  • otlp — sends OTLP/HTTP to the DD Agent's OTLP port (agent_endpoint: http://datadog-agent:4318) with the DD unified tags applied as resource attributes. Reuses forgesight-otel.

A DD Agent / intake outage makes export() return FAILURE (counted, never raised — P6); it never blocks the agent. Prompt/response content is attached only with capture_content=True (off by default, P7).

OTLP-native backends need no package

Because the domain model maps cleanly onto the OTel GenAI conventions, anything that ingests OTLP works through forgesight-otel with no dedicated package — point it at the backend and you're done:

Backend How to send
Honeycomb forgesight-otelapi.honeycomb.io:443 + x-honeycomb-team header
Jaeger / Tempo / SigNoz forgesight-otel → its OTLP collector
New Relic forgesight-otelotlp.nr-data.net:4317 + api-key header
AWS X-Ray forgesight-otel → ADOT collector
Arize Phoenix forgesight-otel → Phoenix OTLP endpoint

Datadog earns a package only because its richest path (DD-native APM tagging + cost-as-DD-metric) is DD-specific. A team that only wants generic spans in Datadog can use the OTLP path and skip this package entirely.

Configuration

Key Env Default
api_key DD_API_KEY / FORGESIGHT_DATADOG_API_KEY — (required for direct intake)
site DD_SITE / FORGESIGHT_DATADOG_SITE datadoghq.com
service DD_SERVICE / FORGESIGHT_DATADOG_SERVICE agentforge
env DD_ENV / FORGESIGHT_DATADOG_ENV
version DD_VERSION / FORGESIGHT_DATADOG_VERSION
agent_endpoint FORGESIGHT_DATADOG_AGENT_ENDPOINT
transport FORGESIGHT_DATADOG_TRANSPORT agent

Constructor kwargs win over env (FR-12).

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forgesight_datadog-0.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forgesight_datadog-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file forgesight_datadog-0.1.0.tar.gz.

File metadata

  • Download URL: forgesight_datadog-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for forgesight_datadog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ec9c6bb2edc1ae2846b3a88fb946dc333d4783ef833c29d7469b6b9eedf0e17
MD5 5e9ef3a60d1681717d196046d2bf4324
BLAKE2b-256 11a51ec3cb7f3bd283c2bdb420cba9cc50b96e8c996db2abc951f2497a130f50

See more details on using hashes here.

File details

Details for the file forgesight_datadog-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for forgesight_datadog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfc620a9be73002458bf5ad84d7458da733bac10bb95e2bbe02a4d9712fb7e52
MD5 a831598fba0f30e69a6c8a33d691f368
BLAKE2b-256 7c71b474f8dc75097962f01d829eafeedd33d4426694f03a26a6274225258602

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page