Skip to content

Feature: Integrate with Traces and Metrics #1

@ucatbas

Description

@ucatbas

Description

Enhance slog by adding support for Google Cloud Logging, Traces and Metrics, allowing it to capture traces and send custom metrics directly to Google Cloud Monitoring with particular logs. This will improve observability by correlating logs with distributed traces and creating log-based metrics.

Requirements

  1. Trace Information in Log payload:

    • Automatically capture trace and span ids from context and include them in logs.
  2. Metrics Information in Log payload:

    • Push metrics based on log entries (e.g., error counts, latency) to Google Cloud Monitoring, with customizable labels.
  3. Config Options:

    • Add options to enable/disable traces and metrics in slog.
  4. Documentation:

    • Provide usage examples, configuration instructions, and sample .env settings.

Acceptance Criteria

  • Traces included in slog log entries.
  • Metrics generated from logs and sent to Google Cloud Monitoring.
  • Documentation with examples and setup instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions