Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- - Enabled the flake8-print plugin rules for ruff linter. These rules throw warnings over the use of `print` and `pprint` statements.
([4399](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4399))
Comment thread
emdneto marked this conversation as resolved.
Outdated
- `opentelemetry-instrumentation-asgi`: Respect `suppress_http_instrumentation` context in ASGI middleware to skip server span creation when HTTP instrumentation is suppressed
([#4375](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4375))
- `opentelemetry-instrumentation-confluent-kafka`: Loosen confluent-kafka upper bound to <3.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _safe_end_processing_span(receipt_handle: str) -> None:
@staticmethod
def _extract_queue_name_from_url(queue_url: str) -> str:
# A Queue name cannot have the `/` char, therefore we can return the part after the last /
return queue_url.split("/")[-1]
return queue_url.rsplit("/", maxsplit=1)[-1]
Comment thread
JayeshHire marked this conversation as resolved.
Outdated

def _create_processing_span(
self,
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,18 @@ select = [
"PLE", # pylint error
"Q", # flake8-quotes
"A", # flake8-builtins
"T20", # flake8-print
]
ignore = [
"E501", # line-too-long
]

[tool.ruff.lint.per-file-ignores]
"docs/**/*.*" = ["A001"]
"scripts/*" = ["T20"]
"**/tests/*" = ["T20"]
"**/examples/*" = ["T20"]
"opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap.py" = ["T20"]

[tool.ruff.lint.isort]
detect-same-package = false # to not consider instrumentation packages as first-party
Expand Down