Skip to main content

Deprecated Cloud Trace integration for OpenTelemetry

Project description

DEPRECATED

This package is deprecated. It will not receive any more updates. Please use opentelemetry-exporter-gcp-trace and opentelemetry-propagator-gcp instead. It will not receive any more updates.

This library provides classes for exporting trace data to Google Cloud Trace.

Installation

pip install opentelemetry-exporter-cloud-trace

Usage

from opentelemetry import trace
from opentelemetry.exporter.cloud_trace import CloudTraceSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import (
    SimpleExportSpanProcessor,
)

trace.set_tracer_provider(TracerProvider())

cloud_trace_exporter = CloudTraceSpanExporter(
    project_id='my-gcloud-project',
)
trace.get_tracer_provider().add_span_processor(
    SimpleExportSpanProcessor(cloud_trace_exporter)
)
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span('foo'):
    print('Hello world!')

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file opentelemetry-exporter-cloud-trace-0.10b1.tar.gz.

File metadata

  • Download URL: opentelemetry-exporter-cloud-trace-0.10b1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for opentelemetry-exporter-cloud-trace-0.10b1.tar.gz
Algorithm Hash digest
SHA256 92a665d207fd8767cb62dbdb0eae925a2c415c0dadd6b7dd9fb2c99a445b2235
MD5 d805353e084f5ba541bb6bdfa1cb3317
BLAKE2b-256 00721e7b3e03e8f90ce2142b7216fb9308053c27aec421114fdb52155447a0d9

See more details on using hashes here.

File details

Details for the file opentelemetry_exporter_cloud_trace-0.10b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_exporter_cloud_trace-0.10b1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb7fb9c10af91efbc8b7978c5650a879d30928b04bc51e042c5db1a01aff7da
MD5 cd7b2be6a880aefe406de898f3c8d897
BLAKE2b-256 5d8f0866c835977ad3d4353a8de233b0d9d4bc013133cd3929e0c2c576bed857

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page