Skip to content

Commit

Permalink
upgrading to 0.47b0,
Browse files Browse the repository at this point in the history
OpenTelemetry FastAPI Instrumentation backward compatibility fixed,
  • Loading branch information
Eugene Orlovsky committed Aug 29, 2024
1 parent cfc5195 commit 212b0e0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
38 changes: 19 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
"autowrapt>=1.0",
"wrapt>=1.11.0",
"lumigo_core==0.0.10",
"opentelemetry-api==1.25.0",
"opentelemetry-sdk==1.25.0",
"opentelemetry-api==1.26.0",
"opentelemetry-sdk==1.26.0",
"opentelemetry-sdk-extension-aws==2.0.2",
"opentelemetry-exporter-otlp-proto-http==1.25.0",
"opentelemetry-semantic-conventions==0.46b0",
"opentelemetry-instrumentation==0.46b0",
"opentelemetry-instrumentation-asgi==0.46b0",
"opentelemetry-instrumentation-boto==0.46b0",
"opentelemetry-instrumentation-fastapi==0.46b0",
"opentelemetry-instrumentation-flask==0.46b0",
"opentelemetry-instrumentation-grpc==0.46b0",
"opentelemetry-instrumentation-kafka-python==0.46b0",
"opentelemetry-instrumentation-pika==0.46b0",
"opentelemetry-instrumentation-psycopg2==0.46b0",
"opentelemetry-instrumentation-pymongo==0.46b0",
"opentelemetry-instrumentation-pymysql==0.46b0",
"opentelemetry-instrumentation-requests==0.46b0",
"opentelemetry-instrumentation-redis==0.46b0",
"opentelemetry-instrumentation-django==0.46b0",
"opentelemetry-instrumentation-logging==0.46b0",
"opentelemetry-exporter-otlp-proto-http==1.26.0",
"opentelemetry-semantic-conventions==0.47b0",
"opentelemetry-instrumentation==0.47b0",
"opentelemetry-instrumentation-asgi==0.47b0",
"opentelemetry-instrumentation-boto==0.47b0",
"opentelemetry-instrumentation-fastapi==0.47b0",
"opentelemetry-instrumentation-flask==0.47b0",
"opentelemetry-instrumentation-grpc==0.47b0",
"opentelemetry-instrumentation-kafka-python==0.47b0",
"opentelemetry-instrumentation-pika==0.47b0",
"opentelemetry-instrumentation-psycopg2==0.47b0",
"opentelemetry-instrumentation-pymongo==0.47b0",
"opentelemetry-instrumentation-pymysql==0.47b0",
"opentelemetry-instrumentation-requests==0.47b0",
"opentelemetry-instrumentation-redis==0.47b0",
"opentelemetry-instrumentation-django==0.47b0",
"opentelemetry-instrumentation-logging==0.47b0",
# v4.7.1 is the last version that supports python 3.7
"typing_extensions==4.7.1; python_version<'3.8'",
# v6.7.0 is the last version that supports python 3.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async def new_otel_receive(): # type: ignore
return new_otel_receive

@staticmethod
def client_response_hook(span: Span, message: Dict[str, Any]) -> None:
def client_response_hook(
span: Span, scope: Dict[str, Any], message: Dict[str, Any]
) -> None:
with lumigo_safe_execute("FastAPIParser: client_response_hook"):
body = safe_convert_bytes_to_string(message.get("body"))
if body:
Expand Down

0 comments on commit 212b0e0

Please sign in to comment.