From 00ecf62e83412f709303d890640fb37334e475a6 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Wed, 11 Dec 2024 11:55:59 +0100 Subject: [PATCH 1/2] fix opentelemetry detach --- packages/service-library/src/servicelib/tracing.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/service-library/src/servicelib/tracing.py b/packages/service-library/src/servicelib/tracing.py index 6635e824a46..e1b3b348a72 100644 --- a/packages/service-library/src/servicelib/tracing.py +++ b/packages/service-library/src/servicelib/tracing.py @@ -21,13 +21,14 @@ def get_context() -> TracingContext: @contextmanager def use_tracing_context(context: TracingContext): + token: object | None = None if context is not None: - otcontext.attach(context) + token = otcontext.attach(context) try: yield finally: - if context is not None: - otcontext.detach(context) + if token is not None: + otcontext.detach(token) def setup_log_tracing(tracing_settings: TracingSettings): From 083878a2091fdaf1ad12d44a616b3b3bd1008d20 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Wed, 11 Dec 2024 13:38:49 +0100 Subject: [PATCH 2/2] update oas --- .../server/src/simcore_service_webserver/api/v0/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml index d27cbd9537e..ce36e2e6e93 100644 --- a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml +++ b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml @@ -10636,7 +10636,7 @@ components: read: true write: false description: Open to all users - gid: '0' + gid: 1 label: All me: accessRights: