"""Utility functions for observability components."""

from typing import Any

from opentelemetry import trace

from .prometheus import BusinessMetrics, get_business_metrics


def get_tracer(service_name: str = "default") -> Any:
    """Get OpenTelemetry tracer"""
    return trace.get_tracer(service_name)


def get_metrics(service_name: str = "default") -> BusinessMetrics:
    """Get business metrics instance"""
    return get_business_metrics(service_name)
