Skip to content

Update open telemetry tracing code according to new spec. #357

@vi3k6i5

Description

@vi3k6i5

The method used in open telemetry tracing has been updated in this commit

Environment details

opentelemetry-api 1.2.0
opentelemetry-sdk 1.2.0
google-cloud-spanner 3.4.0

Steps to reproduce

from opentelemetry.trace.status import Status, StatusCanonicalCode    
from opentelemetry.instrumentation.utils import http_status_to_canonical_code

Stack trace

ImportError: cannot import name 'StatusCanonicalCode' from 'opentelemetry.trace.status'

SO question link: https://stackoverflow.com/questions/67775140/getting-import-error-while-trying-to-import-statuscanonicalcode-using-openteleme

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions