semvec/pypi-packages huggingface dataset:
aspecto-ot-auto-instrumentation 0.1b3
Aspecto Auto Instrumentation for OpenTelemetry
License: Apache-2.0
Requires Python: >=3.4

# Aspecto OpenTelemetry Auto Instrumentation
[![Build Status](https://badge.fury.io/py/aspecto-ot-auto-instrumentation.svg)](https://pypi.org/project/aspecto-ot-auto-instrumentation/) 

This library does all the magic.

## Installation
    pip install aspecto-ot-auto-instrumentation


## Usage
```python
from opentelemetry.aspecto import AspectoInstrumentor

AspectoInstrumentor(
    service_name="demo-flask",
    aspecto_auth="your-aspecto-token",
    env="development" 
).instrument()
```

`AspectoInstrumentor` params:  
* **service_name** - mandatory, the name of the service you're instrumenting
* **aspecto_auth** - your token that was obtained from [aspecto website](https://app.aspecto.io/app/integration).  
Alternatively, your can pass it as `ASPECTO_AUTH` env param, or place an `aspecto.json` file at the project root, containing an object with `token` key.
* **env** - optional, if none provided we will use `empty`.



## References

* [Aspecto](https://app.aspecto.io)
* [OpenTelemetry Project](https://opentelemetry.io/)