elastic-otel-python-instrumentations

OpenAI Instrumentation Package

APACHE-2.0 License

Downloads
171
Stars
0

Elastic Distribution of OpenTelemetry Python instrumentations

[!WARNING] The Elastic Distribution of OpenTelemetry Python is not yet recommended for production use. Functionality may be changed or removed in future releases. Alpha releases are not subject to the support SLA of official GA features.

We welcome your feedback! You can reach us by opening a GitHub issue or starting a discussion thread on the Elastic Discuss forum.

The Elastic Distribution of OpenTelemetry Python (EDOT Python) is a customized version of OpenTelemetry Python. EDOT Python makes it easier to get started using OpenTelemetry in your Python applications through strictly OpenTelemetry native means, while also providing a smooth and rich out of the box experience with Elastic Observability. It's an explicit goal of this distribution to introduce no new concepts in addition to those defined by the wider OpenTelemetry community.

With EDOT Python you have access to all the features of the OpenTelemetry Python agent plus:

  • Access to improvements and bug fixes contributed by the Elastic team before the changes are available upstream in OpenTelemetry repositories.
  • Access to optional features that can enhance OpenTelemetry data that is being sent to Elastic.
  • Elastic-specific processors that ensure optimal compatibility when exporting OpenTelemetry signal data to an Elastic backend like an Elastic Observability deployment.
  • Preconfigured collection of tracing and metrics signals, applying some opinionated defaults, such as which sources are collected by default.
  • Elastic-specific enhancements and integrations such as extensions to GenAI semantic conventions

Available instrumentations

Each available instrumentation sits inside the instrumentation directory.

Currently we have:

  • elastic-opentelemetry-instrumentation-openai for tracing the openai library

Please refer to each instrumentation README.md for details.

License

This software is licensed under the Apache License, version 2 ("Apache-2.0").