autometrics-dev / autometrics-py

Easily add metrics to your code that actually help you spot and debug issues in production. Built on Prometheus and OpenTelemetry.
https://autometrics.dev
Apache License 2.0
214 stars 7 forks source link

Why not export `Objective`s from the top-level `autometrics` module? #87

Open brettimus opened 11 months ago

brettimus commented 11 months ago

Right now, to import and use Objectives, I need to write

from autometrics import autometrics, init
from autometrics.objectives import Objective, ObjectiveLatency, ObjectivePercentile

Could we just change this so you can import everything from the top-level module?

E.g.,

from autometrics import autometrics, init, Objective, ObjectiveLatency, ObjectivePercentile