datadog

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 8 Imported by: 0

README

togo

togo-framework/log-datadog

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/log-datadog

togo

log-datadog

part of the togo-framework — the full-stack Go + React framework

Datadog log shipping for togo. Forwards your app's slog logs to Datadog Logs via the HTTP intake API, in addition to the existing local/stdout output — so structured logs show up in Datadog with the service tag.

togo install togo-framework/log-datadog

Install alongside togo-framework/log. Blank-importing the plugin registers it.

Env

Var Required Description
DD_API_KEY yes Datadog API key. When unset the plugin is a no-op.
DD_SITE no Datadog site (default datadoghq.com; EU = datadoghq.eu).
DD_SERVICE no Service name tag (default togo).

How it works

On boot (after the log plugin) it wraps the kernel logger so every record is also POSTed asynchronously to https://http-intake.logs.<site>/api/v2/logs. Shipping is non-blocking and never stalls request handling.

MIT © togo-framework


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

Documentation

Overview

Package datadog ships togo's slog logs to Datadog Logs via the HTTP intake API, in addition to the app's existing log output. Install alongside togo-framework/log; blank-import registers it.

Env: DD_API_KEY (required — no-op when empty), DD_SITE (default datadoghq.com), DD_SERVICE (default togo).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL