Skip to content

Commit 058c883

Browse files
committed
fix missing SpanAttributes removal
1 parent 5bdc309 commit 058c883

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • instrumentation/opentelemetry-instrumentation-cassandra/src/opentelemetry/instrumentation/cassandra

instrumentation/opentelemetry-instrumentation-cassandra/src/opentelemetry/instrumentation/cassandra/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
DB_STATEMENT,
5353
DB_SYSTEM,
5454
)
55-
from opentelemetry.semconv.trace import SpanAttributes
55+
from opentelemetry.semconv._incubating.attributes.net_attributes import (
56+
NET_PEER_NAME,
57+
)
5658

5759

5860
def _instrument(tracer_provider, include_db_statement=False):
@@ -76,7 +78,7 @@ def _traced_execute_async(func, instance, args, kwargs):
7678
span.set_attribute(DB_NAME, instance.keyspace)
7779
span.set_attribute(DB_SYSTEM, "cassandra")
7880
span.set_attribute(
79-
SpanAttributes.NET_PEER_NAME,
81+
NET_PEER_NAME,
8082
instance.cluster.contact_points,
8183
)
8284

0 commit comments

Comments
 (0)