Skip to content

Commit 3355c72

Browse files
tdanchevaxrmx
andauthored
Update instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/__init__.py
Co-authored-by: Riccardo Magliocchetti <[email protected]>
1 parent 4d90332 commit 3355c72

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def main():
7878

7979
def _hydrate_span_from_args(connection, query, parameters) -> dict:
8080
"""Get network and database attributes from connection."""
81-
span_attributes = {DB_SYSTEM_NAME: DbSystemValues.POSTGRESQL.value}
81+
span_attributes = {DB_SYSTEM: DbSystemValues.POSTGRESQL.value}
8282

8383
# connection contains _params attribute which is a namedtuple ConnectionParameters.
8484
# https://github.com/MagicStack/asyncpg/blob/master/asyncpg/connection.py#L68

0 commit comments

Comments
 (0)