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

Integrate Metrics with Prometheus and Tracing with OpenTelemetry #5

Open
3 tasks
hippalus opened this issue Sep 14, 2024 · 0 comments
Open
3 tasks

Comments

@hippalus
Copy link
Owner

Integrate Metrics with Prometheus and Tracing with OpenTelemetry

Objective

Collect and expose metrics for monitoring using Prometheus. Integrate tracing using OpenTelemetry to provide distributed tracing capabilities across the application.

Description

Metrics Collection

  • Use the prometheus crate to collect metrics such as request counts, error rates, and latency.
  • Implement counters, histograms, and gauges as needed.
  • Instrument key parts of the code to record metrics.

Expose Metrics Endpoint

  • Use Hyper to create an HTTP endpoint ( /metrics) that serves Prometheus metrics.

Integrate Tracing

  • Use the tracing and tracing-subscriber crates to add tracing instrumentation.
  • Integrate tracing-opentelemetry to export traces to an OpenTelemetry collector.
  • Configure exporters like Jaeger

Tasks

  • Metrics Collection:
  • Integrate Tracing
  • Expose Metrics Endpoint:

Key Components

  • Metrics
  • Tracing
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