Skip to content

Commit f911076

Browse files
authored
Upgrade to OTEL 1.29.0 (#669)
1 parent eef4933 commit f911076

25 files changed

+156
-155
lines changed

logfire/_internal/integrations/aiohttp_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def instrument_aiohttp_client(logfire_instance: Logfire, **kwargs: Any):
1616
1717
See the `Logfire.instrument_aiohttp_client` method for details.
1818
"""
19-
AioHttpClientInstrumentor().instrument( # type: ignore[reportUnknownMemberType]
19+
AioHttpClientInstrumentor().instrument(
2020
**{
2121
'tracer_provider': logfire_instance.config.get_tracer_provider(),
2222
'meter_provider': logfire_instance.config.get_meter_provider(),

logfire/_internal/integrations/asyncpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def instrument_asyncpg(logfire_instance: Logfire, **kwargs: Unpack[AsyncPGInstru
2525
2626
See the `Logfire.instrument_asyncpg` method for details.
2727
"""
28-
AsyncPGInstrumentor().instrument( # type: ignore[reportUnknownMemberType]
28+
AsyncPGInstrumentor().instrument(
2929
**{
3030
'tracer_provider': logfire_instance.config.get_tracer_provider(),
3131
'meter_provider': logfire_instance.config.get_meter_provider(),

logfire/_internal/integrations/aws_lambda.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ def instrument_aws_lambda(
3636
3737
See the `Logfire.instrument_aws_lambda` method for details.
3838
"""
39-
return AwsLambdaInstrumentor().instrument( # type: ignore[no-any-return]
40-
tracer_provider=tracer_provider, meter_provider=meter_provider, **kwargs
41-
)
39+
return AwsLambdaInstrumentor().instrument(tracer_provider=tracer_provider, meter_provider=meter_provider, **kwargs)

logfire/_internal/integrations/celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def instrument_celery(logfire_instance: Logfire, **kwargs: Unpack[CeleryInstrume
2525
2626
See the `Logfire.instrument_celery` method for details.
2727
"""
28-
return CeleryInstrumentor().instrument( # type: ignore[reportUnknownMemberType]
28+
return CeleryInstrumentor().instrument(
2929
**{
3030
'tracer_provider': logfire_instance.config.get_tracer_provider(),
3131
'meter_provider': logfire_instance.config.get_meter_provider(),

logfire/_internal/integrations/django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def instrument_django(logfire_instance: Logfire, *, capture_headers: bool = Fals
1919
See the `Logfire.instrument_django` method for details.
2020
"""
2121
maybe_capture_server_headers(capture_headers)
22-
DjangoInstrumentor().instrument( # type: ignore[reportUnknownMemberType]
22+
DjangoInstrumentor().instrument(
2323
**{
2424
'tracer_provider': logfire_instance.config.get_tracer_provider(),
2525
'meter_provider': logfire_instance.config.get_meter_provider(),

logfire/_internal/integrations/httpx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ def instrument_httpx(
5454
response_hook=final_kwargs.get('response_hook'),
5555
)
5656
else:
57-
instrumentor.instrument(**final_kwargs) # type: ignore[reportUnknownMemberType]
57+
instrumentor.instrument(**final_kwargs)

logfire/_internal/integrations/pymongo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ def instrument_pymongo(**kwargs: Unpack[PymongoInstrumentKwargs]) -> None:
3737
3838
See the `Logfire.instrument_pymongo` method for details.
3939
"""
40-
PymongoInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType]
40+
PymongoInstrumentor().instrument(**kwargs)

logfire/_internal/integrations/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def instrument_redis(capture_statement: bool = False, **kwargs: Unpack[RedisInst
4545
if capture_statement:
4646
request_hook = _capture_statement_hook(request_hook)
4747

48-
RedisInstrumentor().instrument(request_hook=request_hook, **kwargs) # type: ignore[reportUnknownMemberType]
48+
RedisInstrumentor().instrument(request_hook=request_hook, **kwargs) # type: ignore
4949

5050

5151
def _capture_statement_hook(request_hook: RequestHook | None = None) -> RequestHook:

logfire/_internal/integrations/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def instrument_requests(logfire_instance: Logfire, excluded_urls: Optional[str]
1717
1818
See the `Logfire.instrument_requests` method for details.
1919
"""
20-
RequestsInstrumentor().instrument( # type: ignore[reportUnknownMemberType]
20+
RequestsInstrumentor().instrument(
2121
excluded_urls=excluded_urls,
2222
**{
2323
'tracer_provider': logfire_instance.config.get_tracer_provider(),

logfire/_internal/integrations/sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def instrument_sqlalchemy(**kwargs: Unpack[SQLAlchemyInstrumentKwargs]) -> None:
3232
3333
See the `Logfire.instrument_sqlalchemy` method for details.
3434
"""
35-
SQLAlchemyInstrumentor().instrument(**kwargs) # type: ignore[reportUnknownMemberType]
35+
SQLAlchemyInstrumentor().instrument(**kwargs)

0 commit comments

Comments
 (0)