Skip to content

Commit

Permalink
fix openetelemetry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Михайлов committed Sep 20, 2024
1 parent 075dfb8 commit a8dd7ca
Show file tree
Hide file tree
Showing 36 changed files with 3 additions and 3,335 deletions.
2 changes: 1 addition & 1 deletion httptoolkitopentelemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ HttpxTransportInstrumentor.instrument(tracer_provider=provider)
OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="httptoolkit-httpx"
```

Пример можно найти [здесь](https://github.com/skbkontur/http_toolkit/tree/master/httptoolkitcoreopentelemetry/example).
Пример можно найти [здесь](https://github.com/skbkontur/http_toolkit/tree/master/httptoolkitopentelemetry/example).
4 changes: 2 additions & 2 deletions tests/httptoolkitopentelemetry/test_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from importlib.metadata import distribution

try:
from kontur.httptoolkitopentelemetry import OtelHttpxTransportInstrumentor
from httptoolkitopentelemetry import OtelHttpxTransportInstrumentor
except ImportError:
pytest.skip(reason="opentelemetry is not installed", allow_module_level=True)


def test_opentelemetry_instrumentor_entry_point():
entry_points = distribution("kontur_http_toolkit").entry_points
entry_points = distribution("http_toolkit").entry_points
loaded = entry_points.select(group="opentelemetry_instrumentor")["httptoolkit-httpx"].load()
assert loaded == OtelHttpxTransportInstrumentor
Empty file removed tests/kontur/__init__.py
Empty file.
Empty file.
222 changes: 0 additions & 222 deletions tests/kontur/httptoolkitcore/conftest.py

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion tests/kontur/httptoolkitcore/fixtures/test.csv

This file was deleted.

Empty file.

This file was deleted.

55 changes: 0 additions & 55 deletions tests/kontur/httptoolkitcore/response/test_response.py

This file was deleted.

This file was deleted.

Empty file.
Loading

0 comments on commit a8dd7ca

Please sign in to comment.