Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

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

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

Activity

  1. assigned and unassigned on Jun 2, 2021
  2. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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