Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for OpenTelemetry tracing #60

Merged
merged 4 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# pip install -r requirements.txt
# Remember to also add them in setup.cfg but unpinned.

etos_lib==4.0.0
etos_lib==4.1.1
etcd3gw~=2.3
pyscaffold~=4.4
uvicorn~=0.22
Expand All @@ -24,7 +24,7 @@ kubernetes~=26.1
sse-starlette~=1.6
opentelemetry-api~=1.21
opentelemetry-exporter-otlp~=1.21
opentelemetry-instrumentation-fastapi==0.44b0
opentelemetry-instrumentation-fastapi==0.45b0
opentelemetry-sdk~=1.21
jsontas~=1.4
packageurl-python~=0.11
Expand Down
4 changes: 2 additions & 2 deletions python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package_dir =
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
setup_requires = pyscaffold>=3.2a0,<3.3a0
install_requires =
etos_lib==4.0.0
etos_lib==4.1.1
etcd3gw~=2.3
pyscaffold~=4.4
uvicorn~=0.22
Expand All @@ -36,7 +36,7 @@ install_requires =
sse-starlette~=1.6
opentelemetry-api~=1.21
opentelemetry-exporter-otlp~=1.21
opentelemetry-instrumentation-fastapi==0.44b0
opentelemetry-instrumentation-fastapi==0.45b0
opentelemetry-sdk~=1.21
jsontas~=1.4
packageurl-python~=0.11
Expand Down
3 changes: 2 additions & 1 deletion python/src/etos_api/routers/etos/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from fastapi import APIRouter, HTTPException
from kubernetes import client
from opentelemetry import trace
from opentelemetry.trace import Span

from etos_api.library.environment import Configuration, configure_testrun
from etos_api.library.utilities import sync_to_async
Expand Down Expand Up @@ -53,7 +54,7 @@ async def validate_suite(test_suite_url: str) -> None:
) from exception


async def _start(etos: StartEtosRequest, span: "Span") -> dict:
async def _start(etos: StartEtosRequest, span: Span) -> dict:
"""Start ETOS execution.

:param etos: ETOS pydantic model.
Expand Down
Loading