Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d674343

Browse files
committedJan 31, 2024
Fix regex
1 parent b7f8ab3 commit d674343

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg

1 file changed

+1
-1
lines changed
 

‎instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _hydrate_span_from_args(connection, query, parameters) -> dict:
9797

9898
class AsyncPGInstrumentor(BaseInstrumentor):
9999

100-
_leading_comment_remover = re.compile(r"/\*.*?\*/")
100+
_leading_comment_remover = re.compile(r"^/\*.*?\*/")
101101

102102
def __init__(self, capture_parameters=False):
103103
super().__init__()

0 commit comments

Comments
 (0)
Please sign in to comment.