mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2026-03-13 08:10:39 +08:00
* cherry pick changes from previous PR
* move span utils to new file
* remove span state, use otel context for parent/child
* flatten LLMInvocation to use attributes instead of dict keys
* helper function and docstrings
* refactor: store span and context token in LLMInvocation instead of SpanGenerator
* refactor: rename prompts/chat_generations to input_messages/output_messages for clarity
* refactor: simplify TelemetryHandler API by moving invocation data management to LLMInvocation class
* refactor: update relative imports to absolute imports
* Update handler to use a context manager instead of start_llm and stop_llm
* resolve tox -e doc failure
* safeguard against empty request-model
* fix tox typecheck errors for utils
* refactor: move tracer to generator, clean up dead code
* remove unused linting hint
* back off stricter request-model requirements
* reintroduce manual start/stop for langchain callback flow
* clean up context handler, clarify unit tests
* remove generator concept
* update token types
* code cleanup
* Refactor TestTelemetryHandler to use instance method for span exporter setup
* refactor: remove unused type properties
* refactor: update TelemetryHandler initialization to remove **kwargs
* refactor: remove tracer variable
* refactor: code style updates
* refactor: replace json.dumps with gen_ai_json_dumps for message serialization
* refactor: update span lifecycle to use sdk over setting context manually
* refactor: don't reinvent span attribute assignment
* refactor: pylint update for python 3.13
* Revert "refactor: update span lifecycle to use sdk over setting context manually"
This reverts commit be8620bb33.
---------
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
91 lines
2.1 KiB
INI
91 lines
2.1 KiB
INI
[default]
|
|
py-class=
|
|
; TODO: Understand why sphinx is not able to find this local class
|
|
opentelemetry.propagators.textmap.CarrierT
|
|
opentelemetry.propagators.textmap.Setter
|
|
opentelemetry.propagators.textmap.Getter
|
|
opentelemetry.propagators.textmap.TextMapPropagator
|
|
; - AwsXRayPropagator
|
|
opentelemetry.propagators.textmap.DefaultGetter
|
|
; API
|
|
opentelemetry.propagators.textmap.Getter
|
|
; - AWSXRayPropagator
|
|
opentelemetry.sdk.trace.id_generator.IdGenerator
|
|
opentelemetry.instrumentation.confluent_kafka.ProxiedProducer
|
|
opentelemetry.instrumentation.confluent_kafka.ProxiedConsumer
|
|
opentelemetry.instrumentation.instrumentor.BaseInstrumentor
|
|
; - AwsXRayIdGenerator
|
|
TextMapPropagator
|
|
CarrierT
|
|
Setter
|
|
Getter
|
|
; - AwsXRayPropagator.extract
|
|
; httpx changes __module__ causing Sphinx to error and no Sphinx site is available
|
|
httpx.Client
|
|
httpx.AsyncClient
|
|
httpx.BaseTransport
|
|
openai.BaseTransport
|
|
httpx.AsyncBaseTransport
|
|
httpx.SyncByteStream
|
|
httpx.AsyncByteStream
|
|
httpx.Response
|
|
httpx.URL
|
|
httpx.Headers
|
|
aiohttp.web_request.Request
|
|
yarl.URL
|
|
cimpl.Producer
|
|
cimpl.Consumer
|
|
func
|
|
Message
|
|
TopicPartition
|
|
callable
|
|
Consumer
|
|
confluent_kafka.Message
|
|
psycopg.Connection
|
|
psycopg.AsyncConnection
|
|
ObjectProxy
|
|
fastapi.applications.FastAPI
|
|
_contextvars.Token
|
|
|
|
any=
|
|
; API
|
|
opentelemetry.propagators.textmap.TextMapPropagator.fields
|
|
; - AWSXRayPropagator
|
|
TraceId
|
|
; - AwsXRayIdGenerator
|
|
TraceIdRatioBased
|
|
; - AwsXRayIdGenerator
|
|
; SDK
|
|
SpanProcessor
|
|
TracerProvider
|
|
; - AwsXRayIdGenerator
|
|
; Instrumentation
|
|
BaseInstrumentor
|
|
; - instrumentation.*
|
|
Setter
|
|
httpx
|
|
instrument
|
|
__iter__
|
|
list.__iter__
|
|
__getitem__
|
|
list.__getitem__
|
|
SQS.ReceiveMessage
|
|
|
|
py-obj=
|
|
opentelemetry.propagators.textmap.CarrierT
|
|
opentelemetry.instrumentation.dbapi.ConnectionT
|
|
opentelemetry.instrumentation.dbapi.CursorT
|
|
|
|
py-data=
|
|
typing.Union
|
|
typing.Optional
|
|
|
|
py-func=
|
|
poll
|
|
flush
|
|
Message.error
|
|
|
|
py-exc=
|
|
KafkaException
|
|
KafkaError
|