-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d27759f
commit f600862
Showing
22 changed files
with
242 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Any | ||
|
||
from opentelemetry.instrumentation.aiohttp_client import AioHttpClientInstrumentor | ||
|
||
|
||
def instrument_aiohttp_client(**kwargs: Any): | ||
"""Instrument the `aiohttp` module so that spans are automatically created for each client request. | ||
See the `Logfire.instrument_aiohttp_client` method for details. | ||
""" | ||
AioHttpClientInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import Any | ||
|
||
from flask.app import Flask | ||
from opentelemetry.instrumentation.flask import FlaskInstrumentor | ||
|
||
|
||
def instrument_flask(app: Flask, **kwargs: Any): | ||
"""Instrument `app` so that spans are automatically created for each request. | ||
See the `Logfire.instrument_flask` method for details. | ||
""" | ||
FlaskInstrumentor().instrument_app(app, **kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Any | ||
|
||
from opentelemetry.instrumentation.pymongo import PymongoInstrumentor | ||
|
||
|
||
def instrument_pymongo(**kwargs: Any): | ||
"""Instrument the `pymongo` module so that spans are automatically created for each operation. | ||
See the `Logfire.instrument_pymongo` method for details. | ||
""" | ||
PymongoInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Any | ||
|
||
from opentelemetry.instrumentation.redis import RedisInstrumentor | ||
|
||
|
||
def instrument_redis(**kwargs: Any): | ||
"""Instrument the `redis` module so that spans are automatically created for each operation. | ||
See the `Logfire.instrument_redis` method for details. | ||
""" | ||
RedisInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Any | ||
|
||
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor | ||
|
||
|
||
def instrument_sqlalchemy(**kwargs: Any): | ||
"""Instrument the `sqlalchemy` module so that spans are automatically created for each query. | ||
See the `Logfire.instrument_sqlalchemy` method for details. | ||
""" | ||
SQLAlchemyInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import Any | ||
|
||
from opentelemetry.instrumentation.starlette import StarletteInstrumentor | ||
from starlette.applications import Starlette | ||
|
||
|
||
def instrument_starlette(app: Starlette, **kwargs: Any): | ||
"""Instrument `app` so that spans are automatically created for each request. | ||
See the `Logfire.instrument_starlette` method for details. | ||
""" | ||
StarletteInstrumentor().instrument_app(app, **kwargs) # type: ignore[reportUnknownMemberType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "logfire" | ||
version = "0.38.0" | ||
version = "0.39.0" | ||
description = "The best Python observability tool! 🪵🔥" | ||
authors = [ | ||
{ name = "Pydantic Team", email = "[email protected]" }, | ||
|
@@ -81,6 +81,9 @@ managed = true | |
dev-dependencies = [ | ||
"anyio", | ||
"httpx", | ||
"aiohttp", | ||
"redis", | ||
"pymongo", | ||
"starlette", | ||
"fastapi", | ||
"Flask", | ||
|
@@ -109,6 +112,8 @@ dev-dependencies = [ | |
"opentelemetry-instrumentation-asyncpg", | ||
"opentelemetry-instrumentation-psycopg", | ||
"opentelemetry-instrumentation-psycopg2", | ||
"opentelemetry-instrumentation-redis", | ||
"opentelemetry-instrumentation-pymongo", | ||
"gitpython", | ||
"eval-type-backport", | ||
"requests-mock", | ||
|
Oops, something went wrong.