Skip to content

Add Pyroscope config to settings #94

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

Merged
merged 1 commit into from
Apr 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions microbootstrap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
FastStreamPrometheusMiddlewareProtocol,
LitestarPrometheusConfig,
)
from microbootstrap.instruments.pyroscope_instrument import PyroscopeConfig
from microbootstrap.instruments.sentry_instrument import SentryConfig
from microbootstrap.instruments.swagger_instrument import SwaggerConfig
from microbootstrap.settings import (
Expand All @@ -37,6 +38,7 @@
"LitestarSettings",
"LoggingConfig",
"OpentelemetryConfig",
"PyroscopeConfig",
"SentryConfig",
"SwaggerConfig",
)
5 changes: 5 additions & 0 deletions microbootstrap/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
LitestarPrometheusConfig,
LoggingConfig,
OpentelemetryConfig,
PyroscopeConfig,
SentryConfig,
SwaggerConfig,
)
Expand Down Expand Up @@ -66,6 +67,7 @@ class LitestarSettings( # type: ignore[misc]
SwaggerConfig,
CorsConfig,
HealthChecksConfig,
PyroscopeConfig,
):
"""Settings for a litestar botstrap."""

Expand All @@ -80,6 +82,7 @@ class FastApiSettings( # type: ignore[misc]
SwaggerConfig,
CorsConfig,
HealthChecksConfig,
PyroscopeConfig,
):
"""Settings for a fastapi botstrap."""

Expand All @@ -92,6 +95,7 @@ class FastStreamSettings( # type: ignore[misc]
SentryConfig,
FastStreamPrometheusConfig,
HealthChecksConfig,
PyroscopeConfig,
):
"""Settings for a faststream bootstrap."""

Expand All @@ -103,5 +107,6 @@ class InstrumentsSetupperSettings( # type: ignore[misc]
LoggingConfig,
OpentelemetryConfig,
SentryConfig,
PyroscopeConfig,
):
"""Settings for a vanilla service."""