diff --git a/app/core/scheduler.py b/app/core/scheduler.py index e682b32..78259b2 100644 --- a/app/core/scheduler.py +++ b/app/core/scheduler.py @@ -57,7 +57,9 @@ def instrument_job[**P, R]( Jobs that only touch process-local state (in-memory caches, registering local jobs) must run on every replica and take no lock. """ - attributes = {"job": job} + # Not "job": Prometheus reserves that label for service.name, which would + # overwrite it on OTLP ingestion. + attributes = {"job_name": job} @wraps(fn) async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R | None: diff --git a/pyproject.toml b/pyproject.toml index eb93e66..e0a1746 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wynnsource_server" -version = "0.1.7" +version = "0.1.8" description = "The server component of WynnSource - a Wynncraft Crowdsourcing Mod." readme = "README.md" requires-python = ">=3.12, <4.0" diff --git a/uv.lock b/uv.lock index ec6b48b..6d33966 100644 --- a/uv.lock +++ b/uv.lock @@ -2100,7 +2100,7 @@ requires-dist = [ [[package]] name = "wynnsource-server" -version = "0.1.7" +version = "0.1.8" source = { virtual = "." } dependencies = [ { name = "alembic" },