Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Integrate with Traces and Metrics #1

Open
3 tasks
ucatbas opened this issue Oct 29, 2024 · 0 comments
Open
3 tasks

Feature: Integrate with Traces and Metrics #1

ucatbas opened this issue Oct 29, 2024 · 0 comments

Comments

@ucatbas
Copy link
Contributor

ucatbas commented Oct 29, 2024

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.
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

No branches or pull requests

1 participant