omnibus-instrument-logs

Configure OpenTelemetry OTLP exporters to send structured logs to PostHog.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill omnibus-instrument-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: omnibus-instrument-logs
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/all/skills/omnibus-instrument-logs
Command: npx skills add https://github.com/PostHog/skills --skill omnibus-instrument-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates instrumentation of applications to capture logs for PostHog using OpenTelemetry OTLP exporters, ensuring structured log data is captured after code changes or PR reviews.

Core Features & Use Cases

  • Platform-agnostic logging instrumentation: Supports Next.js, Node.js, Python, Go, Java, Datadog, and any language via OpenTelemetry.
  • OTLP exporter setup: Guides initial configuration when exporters are not yet configured to enable seamless log export.
  • Non-disruptive integration: Adds log export alongside existing logging without rewriting your apps or workflows.
  • Use case: After implementing a feature, instrument code paths to emit structured logs that are immediately exportable to PostHog.

Quick Start

Analyze your codebase to auto-detect platform and follow platform-specific guidance to instrument logging and enable OTLP exporting.

Frequently Asked Questions about omnibus-instrument-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send application logs to PostHog using OpenTelemetry?

To send application logs to PostHog using OpenTelemetry, configure the OTLP exporter in your codebase. This integrates with existing logging frameworks to capture and export structured log data without requiring a complete rewrite of your app's logging workflow.

What is the best way to instrument logging across multiple languages like Python and Go?

The best way to instrument logging across Python and Go is using platform-agnostic OpenTelemetry. It standardizes log capture by configuring the OTLP exporter and enforcing structured log attributes across different languages without replacing existing logging libraries.

Can I export logs to PostHog without replacing my current logging setup?

Yes, you can export logs to PostHog without replacing your current logging setup. The instrumentation adds OTLP export capabilities alongside your existing logging workflows, ensuring structured log attributes are captured non-disruptively during feature deployments.

How do I configure OTLP exporters for Next.js and Node.js applications?

To configure OTLP exporters for Next.js and Node.js applications, auto-detect the platform and apply platform-specific guidance. You will use environment variables for API keys and endpoints to enable seamless structured log export to PostHog.

Does this logging instrumentation support Datadog and Java environments?

Yes, this logging instrumentation supports Datadog and Java environments. It applies OpenTelemetry standards to configure the OTLP exporter, enabling structured log data capture and export to PostHog across these and any other OTLP-compatible platform.

When do I need to instrument code paths for structured log export?

You need to instrument code paths for structured log export after implementing a feature or during PR reviews. This ensures that new application logs are immediately captured with enforced structured attributes and exported to PostHog via the OTLP exporter.