From ced309b24af51b49ab9a87ec2c651680d5c949ad Mon Sep 17 00:00:00 2001 From: Hugo Lloreda Date: Wed, 2 Oct 2024 15:10:06 +0200 Subject: [PATCH] Bump logfire from 0.54.0 to 1.0.0 (PR #8140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [logfire](https://github.com/pydantic/logfire) from 0.54.0 to 1.0.0.
Release notes

Sourced from logfire's releases.

v1.0.0

What's Changed

Full Changelog: https://github.com/pydantic/logfire/compare/v0.55.0...v1.0.0

v0.55.0

What's Changed

Full Changelog: https://github.com/pydantic/logfire/compare/v0.54.0...v0.55.0

Changelog

Sourced from logfire's changelog.

[v1.0.0] (2024-09-30)

[v0.55.0] (2024-09-27)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=logfire&package-manager=pip&previous-version=0.54.0&new-version=1.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--- changelogs/unreleased/8140-dependabot.yml | 5 +++++ mypy-baseline.txt | 1 - requirements.txt | 2 +- setup.py | 2 +- src/inmanta/tracing.py | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 changelogs/unreleased/8140-dependabot.yml diff --git a/changelogs/unreleased/8140-dependabot.yml b/changelogs/unreleased/8140-dependabot.yml new file mode 100644 index 0000000000..55e584a045 --- /dev/null +++ b/changelogs/unreleased/8140-dependabot.yml @@ -0,0 +1,5 @@ +change-type: patch +description: Bump logfire from 0.54.0 to 1.0.0 +destination-branches: +- master +sections: {} diff --git a/mypy-baseline.txt b/mypy-baseline.txt index cb7efbc55b..af3074c184 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -51,7 +51,6 @@ src/inmanta/protocol/ipc_light.py:0: error: Item "None" of "Transport | None" ha src/inmanta/protocol/ipc_light.py:0: error: Item "None" of "Transport | None" has no attribute "write" [union-attr] src/inmanta/protocol/ipc_light.py:0: error: Invalid index type "UUID | None" for "dict[UUID, Future[object]]"; expected type "UUID" [index] src/inmanta/tracing.py:0: error: Call to untyped function "AsyncPGInstrumentor" in typed context [no-untyped-call] -src/inmanta/tracing.py:0: error: Module "logfire.integrations.pydantic" does not explicitly export attribute "PydanticPlugin" [attr-defined] src/inmanta/tracing.py:0: error: Incompatible return value type (got "NoopSpan", expected "LogfireSpan") [return-value] src/inmanta/types.py:0: error: "type" has no attribute "__supertype__" [attr-defined] src/inmanta/execute/dataflow/__init__.py:0: error: Missing type parameters for generic type "ResultVariable" [type-arg] diff --git a/requirements.txt b/requirements.txt index 03e6763e29..c00e5efc04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ crontab==1.0.1 cryptography==43.0.1 docstring-parser==0.16 email-validator==2.2.0 -logfire==0.54.0 +logfire==1.0.0 jinja2==3.1.4 more-itertools==10.5.0 opentelemetry-instrumentation-asyncpg>=0.46b,<0.49 diff --git a/setup.py b/setup.py index 12754ed8ec..9eb8e37f81 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ "docstring-parser>=0.10,<0.17", "email-validator>=1,<3", "jinja2~=3.0", - "logfire~=0.46", + "logfire>=0.46,<2.0", "more-itertools>=8,<11", "opentelemetry-instrumentation-asyncpg~=0.46b0", # leave upper bound floating for fast-moving and extremely stable packaging diff --git a/src/inmanta/tracing.py b/src/inmanta/tracing.py index e8bf645539..fd4decea31 100644 --- a/src/inmanta/tracing.py +++ b/src/inmanta/tracing.py @@ -58,11 +58,11 @@ def configure_logfire(service: str) -> None: AsyncPGInstrumentor(capture_parameters=detailed_reporting).instrument() + logfire.instrument_pydantic("all" if detailed_reporting else "off") logfire.configure( service_name=service, send_to_logfire="if-token-present", console=False, - pydantic_plugin=logfire.integrations.pydantic.PydanticPlugin(record="all") if detailed_reporting else None, ) else: LOGGER.info("Not setting up telemetry")