Skip to content

Commit

Permalink
Bump logfire from 0.54.0 to 1.0.0 (PR #8140)
Browse files Browse the repository at this point in the history
Bumps [logfire](https://github.com/pydantic/logfire) from 0.54.0 to 1.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pydantic/logfire/releases">logfire's releases</a>.</em></p>
<blockquote>
<h2>v1.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Upgrade <code>DeprecationWarning</code>s to <code>UserWarning</code>s by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/458">pydantic/logfire#458</a></li>
<li>Update query client APIs by <a href="https://github.com/dmontagu"><code>@​dmontagu</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/454">pydantic/logfire#454</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/logfire/compare/v0.55.0...v1.0.0">https://github.com/pydantic/logfire/compare/v0.55.0...v1.0.0</a></p>
<h2>v0.55.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Replace <code>pydantic_plugin</code> in <code>logfire.configure()</code> with <code>logfire.instrument_pydantic()</code> by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/453">pydantic/logfire#453</a></li>
<li>Keep <code>METRICS_PREFERRED_TEMPORALITY</code> private by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/456">pydantic/logfire#456</a></li>
<li>Use <code>SeededRandomIdGenerator</code> by default to prevent interference from <code>random.seed</code> by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/457">pydantic/logfire#457</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/logfire/compare/v0.54.0...v0.55.0">https://github.com/pydantic/logfire/compare/v0.54.0...v0.55.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pydantic/logfire/blob/main/CHANGELOG.md">logfire's changelog</a>.</em></p>
<blockquote>
<h2>[v1.0.0] (2024-09-30)</h2>
<ul>
<li>Upgrade <code>DeprecationWarning</code>s to <code>UserWarning</code>s by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/458">pydantic/logfire#458</a></li>
<li>Update query client APIs by <a href="https://github.com/dmontagu"><code>@​dmontagu</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/454">pydantic/logfire#454</a></li>
</ul>
<h2>[v0.55.0] (2024-09-27)</h2>
<ul>
<li>Replace <code>pydantic_plugin</code> in <code>logfire.configure()</code> with <code>logfire.instrument_pydantic()</code> by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/453">pydantic/logfire#453</a></li>
<li>Keep <code>METRICS_PREFERRED_TEMPORALITY</code> private by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/456">pydantic/logfire#456</a></li>
<li>Use <code>SeededRandomIdGenerator</code> by default to prevent interference from <code>random.seed</code> by <a href="https://github.com/alexmojaki"><code>@​alexmojaki</code></a> in <a href="https://redirect.github.com/pydantic/logfire/pull/457">pydantic/logfire#457</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pydantic/logfire/commit/ce558e93035ec260f0335448e64493302c4fc273"><code>ce558e9</code></a> Release 1.0.0 (<a href="https://redirect.github.com/pydantic/logfire/issues/461">#461</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/76b27036dc2ede4309e3262d25559588424ea23e"><code>76b2703</code></a> Update query client APIs (<a href="https://redirect.github.com/pydantic/logfire/issues/454">#454</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/b519d4929d93c18535e64c4a650a4dc87c781481"><code>b519d49</code></a> Add production classifier (<a href="https://redirect.github.com/pydantic/logfire/issues/449">#449</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/aef11125420f92d637228e146bb049a986b3f0a0"><code>aef1112</code></a> Upgrade <code>DeprecationWarning</code>s to <code>UserWarning</code>s (<a href="https://redirect.github.com/pydantic/logfire/issues/458">#458</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/e3c16caab56b379f66e9cabce57be47892199929"><code>e3c16ca</code></a> Revert mkdocs layout (<a href="https://redirect.github.com/pydantic/logfire/issues/460">#460</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/6b5e146ef802747195c0b38eb47e13f4b3340965"><code>6b5e146</code></a> Remove beta from docs (<a href="https://redirect.github.com/pydantic/logfire/issues/447">#447</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/5ae8b343271901a44563799f9874746fb1a492bf"><code>5ae8b34</code></a> Update Querying API docs based on additional feedback on <a href="https://redirect.github.com/pydantic/logfire/issues/405">#405</a> (<a href="https://redirect.github.com/pydantic/logfire/issues/410">#410</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/ae8b15165ffb968a000aa548362c4ed3cabc6fd3"><code>ae8b151</code></a> Release v0.55.0 (<a href="https://redirect.github.com/pydantic/logfire/issues/459">#459</a>)</li>
<li><a href="https://github.com/pydantic/logfire/commit/f8d4c391a83229fab32938397d8bab3f90f62fc4"><code>f8d4c39</code></a> Replace <code>pydantic_plugin</code> in <code>logfire.configure()</code> with `logfire.instrument_p...</li>
<li><a href="https://github.com/pydantic/logfire/commit/a99681956a4a36ae3d2ba85a7a3678d1bf5779f4"><code>a996819</code></a> Keep <code>METRICS_PREFERRED_TEMPORALITY</code> private (<a href="https://redirect.github.com/pydantic/logfire/issues/456">#456</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/pydantic/logfire/compare/v0.54.0...v1.0.0">compare view</a></li>
</ul>
</details>
<br />

[![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)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> 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)

</details>
  • Loading branch information
hlloreda authored and inmantaci committed Oct 2, 2024
1 parent 015915d commit ced309b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelogs/unreleased/8140-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
change-type: patch
description: Bump logfire from 0.54.0 to 1.0.0
destination-branches:
- master
sections: {}
1 change: 0 additions & 1 deletion mypy-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/inmanta/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ced309b

Please sign in to comment.