Configuration
Backend
OTLP Backend
from gl_observability import OpenTelemetryBackendConfig
backend_config = OpenTelemetryBackendConfig(
endpoint="<OTLP_ENDPOINT>",
use_grpc=False,
headers={"Authorization": "Bearer ..."},
)Sentry Backend
from gl_observability import SentryBackendConfig
backend_config = SentryBackendConfig(
dsn="<your-sentry-dsn>",
environment="<project-environment>",
release="<release-version>",
send_default_pii=True,
disable_sentry_distributed_tracing=False
)Initialization
Multiple Backend
API References
class OpenTelemetryBackendConfig
class SentryBackendConfig
class TelemetryConfig
func init_telemetry
Last updated
Was this helpful?