diff --git a/PLATER/requirements.txt b/PLATER/requirements.txt index 76e3041..cebbcf3 100644 --- a/PLATER/requirements.txt +++ b/PLATER/requirements.txt @@ -9,8 +9,8 @@ httpx==0.27.2 pytest-httpx==0.32.0 pydantic==1.10.2 orjson==3.10.7 -opentelemetry-sdk==1.25.0 -opentelemetry-exporter-otlp-proto-grpc==1.25.0 -opentelemetry-instrumentation-fastapi==0.46b0 +opentelemetry-sdk==1.27.0 +opentelemetry-exporter-otlp-proto-grpc==1.27.0 +opentelemetry-instrumentation-fastapi==0.48b0 pyinstrument==4.7.3 neo4j==5.22.0 diff --git a/PLATER/services/server.py b/PLATER/services/server.py index 4f9524e..ac1e2db 100644 --- a/PLATER/services/server.py +++ b/PLATER/services/server.py @@ -32,7 +32,7 @@ from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter plater_service_name = PLATER_TITLE - resource = Resource(attributes={ + resource = Resource.create(attributes={ SERVICE_NAME: config.get("OTEL_SERVICE_NAME", plater_service_name), }) provider = TracerProvider(resource=resource)