Skip to content

Latest commit

 

History

History

basic_tracer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Basic Trace

These examples show how to use OpenTelemetry to create and export Spans. There are two different examples:

  • basic_trace: Shows how to configure a SpanProcessor and Exporter, and how to create a tracer and span.
  • resources: Shows how to add resource information to a Provider.

The source files of these examples are available :scm_web:`here <docs/examples/basic_tracer/>`.

Installation

pip install opentelemetry-api
pip install opentelemetry-sdk

Run the Example

python <example_name>.py

The output will be shown in the console.

Useful links