If we examine the code in here
|
attributes = { |
|
"db.type": "spanner", |
|
"db.url": SpannerClient.DEFAULT_ENDPOINT, |
|
"db.instance": session._database.name, |
|
"net.host.name": SpannerClient.DEFAULT_ENDPOINT, |
|
} |
Fixes
We should import the package opentelemetry.semconv.attributes and from it we can use the following imported variables
The code in question was written in 2020, long before OpenTelemetry standardized semantic conventions hence I am sending over a change pretty shortly to fix this!