monocle2ai / monocle

Monocle is a framework for tracing GenAI app code. This repo contains implementation of Monocle for GenAI apps written in Python.
http://monocle2ai.org
Apache License 2.0
11 stars 5 forks source link

Added handling for opentelemetry warnings #9

Closed kshitiz-okahu closed 2 months ago

kshitiz-okahu commented 2 months ago

To avoid the warning "Overriding of Global tracer provider is not allowed", we only add our tracer provider if the available implementation is Proxy(dummy) implementation

The avoid the warning "The instrumentor is already instrumented" we only call the instrument method if it is not already done by opentelemetry

Validated the changes locally