Skip to content

Commit

Permalink
removed deprecated tracing lib call (#333)
Browse files Browse the repository at this point in the history
* removed deprecated tracing lib call

* codespell ignore

* codespell ignores in pyproject.toml
  • Loading branch information
PietroPasotti authored May 29, 2024
1 parent ec74910 commit fd6a7da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ pythonPlatform = "All"

[tool.pytest.ini_options]
asyncio_mode = "auto"

[tool.codespell]
skip = ".git,.tox,build,venv*"
ignore-words-list = "assertIn"
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def _generate_tracing_config(self) -> str:
tracing = self.tracing
if not tracing.is_ready():
return ""
endpoint = tracing.otlp_grpc_endpoint()
endpoint = tracing.get_endpoint("otlp_grpc")
if endpoint is None:
return ""

Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ deps =
ruff
codespell
commands =
codespell {[vars]lib_path}
codespell . --skip .git --skip .tox --skip build --skip lib --skip venv --skip .mypy_cache
codespell .
ruff {[vars]all_path}
black --check --diff {[vars]all_path}

Expand Down

0 comments on commit fd6a7da

Please sign in to comment.