You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Callback metrics, or observable metrics, are a way to create metrics that are automatically updated based on a time interval.
However, there doesn't seem to be any mentioning in the docs on how to configure this time interval. I presume it might be the export interval which can be set with otel_interval_milliseconds ?
The text was updated successfully, but these errors were encountered:
Makes sense. I presume under the hood, logfire uses a PeriodicExportingMetricReader maybe around here: https://github.com/pydantic/logfire/blob/main/logfire/_internal/config.py#L859
These take a export_interval_millis, so perhaps it could be interesting to be able to manually define separate readers with customized intervals.
I don't know how these interact with OTEL_METRIC_EXPORT_INTERVAL if a custom interval is set.
Example use cases for this would be: specifying lower intervals for metrics that require a higher resolution, or higher intervals for metrics that may consume resources (e.g. query a database)
Question
According to the docs:
However, there doesn't seem to be any mentioning in the docs on how to configure this time interval. I presume it might be the export interval which can be set with
otel_interval_milliseconds
?The text was updated successfully, but these errors were encountered: