39 lines
865 B
Python
39 lines
865 B
Python
"""Telemetry package for OpenTelemetry tracing and metrics collection"""
|
|
|
|
from .metrics import (
|
|
app_metrics,
|
|
time_ai_request,
|
|
time_celery_task,
|
|
time_job_processing,
|
|
time_storage_operation,
|
|
)
|
|
from .tracing import (
|
|
TracingContext,
|
|
get_tracer,
|
|
instrument_dependencies,
|
|
instrument_fastapi_app,
|
|
setup_tracing,
|
|
trace_ai_operation,
|
|
trace_api_request,
|
|
trace_celery_task,
|
|
trace_job_pipeline,
|
|
trace_storage_operation,
|
|
)
|
|
|
|
__all__ = [
|
|
"app_metrics",
|
|
"time_ai_request",
|
|
"time_job_processing",
|
|
"time_storage_operation",
|
|
"time_celery_task",
|
|
"get_tracer",
|
|
"instrument_dependencies",
|
|
"instrument_fastapi_app",
|
|
"setup_tracing",
|
|
"trace_ai_operation",
|
|
"trace_job_pipeline",
|
|
"trace_storage_operation",
|
|
"TracingContext",
|
|
"trace_api_request",
|
|
"trace_celery_task",
|
|
]
|