sentry-sdk 2.30.0__tar.gz → 2.32.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sentry-sdk might be problematic. Click here for more details.
- {sentry_sdk-2.30.0/sentry_sdk.egg-info → sentry_sdk-2.32.0}/PKG-INFO +1 -1
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/pyproject.toml +4 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/__init__.py +2 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/api.py +16 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/consts.py +289 -134
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/__init__.py +1 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/asgi.py +19 -3
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/langchain.py +58 -45
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/litestar.py +9 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/logging.py +7 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/__init__.py +53 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/consts.py +1 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/patches/__init__.py +4 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/patches/agent_run.py +143 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/patches/models.py +50 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/patches/runner.py +42 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/patches/tools.py +77 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/__init__.py +5 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/agent_workflow.py +21 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/ai_client.py +38 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/execute_tool.py +48 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/handoff.py +19 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/spans/invoke_agent.py +34 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/openai_agents/utils.py +209 -0
- sentry_sdk-2.32.0/sentry_sdk/integrations/ray.py +149 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/profiler/continuous_profiler.py +27 -11
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/scope.py +28 -8
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0/sentry_sdk.egg-info}/PKG-INFO +1 -1
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/SOURCES.txt +14 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/setup.py +1 -1
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_scope.py +64 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_sessions.py +49 -0
- sentry_sdk-2.30.0/sentry_sdk/integrations/ray.py +0 -141
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/LICENSE +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/MANIFEST.in +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/README.md +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_compat.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_init_implementation.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_log_batcher.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_lru_cache.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_queue.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_types.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/_werkzeug.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/ai/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/ai/monitoring.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/ai/utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/attachments.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/client.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/crons/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/crons/api.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/crons/consts.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/crons/decorator.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/debug.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/envelope.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/feature_flags.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/hub.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/_asgi_common.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/_wsgi_common.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/aiohttp.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/anthropic.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/argv.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/ariadne.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/arq.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/asyncio.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/asyncpg.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/atexit.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/aws_lambda.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/beam.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/boto3.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/bottle.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/celery/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/celery/beat.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/celery/utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/chalice.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/clickhouse_driver.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/cloud_resource_context.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/cohere.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/dedupe.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/asgi.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/caching.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/middleware.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/signals_handlers.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/templates.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/transactions.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/django/views.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/dramatiq.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/excepthook.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/executing.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/falcon.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/fastapi.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/flask.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/gcp.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/gnu_backtrace.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/gql.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/graphene.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/aio/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/aio/client.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/aio/server.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/client.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/consts.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/grpc/server.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/httpx.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/huey.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/huggingface_hub.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/launchdarkly.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/loguru.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/modules.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/openai.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/openfeature.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/opentelemetry/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/opentelemetry/consts.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/opentelemetry/integration.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/opentelemetry/propagator.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/opentelemetry/span_processor.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/pure_eval.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/pymongo.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/pyramid.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/quart.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/_async_common.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/_sync_common.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/consts.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/modules/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/modules/caches.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/modules/queries.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/rb.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/redis.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/redis_cluster.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/redis_py_cluster_legacy.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/redis/utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/rq.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/rust_tracing.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/sanic.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/serverless.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/socket.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/spark/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/spark/spark_driver.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/spark/spark_worker.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/sqlalchemy.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/starlette.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/starlite.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/statsig.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/stdlib.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/strawberry.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/sys_exit.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/threading.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/tornado.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/trytond.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/typer.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/unleash.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/integrations/wsgi.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/logger.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/metrics.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/monitor.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/profiler/__init__.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/profiler/transaction_profiler.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/profiler/utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/py.typed +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/scrubber.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/serializer.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/session.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/sessions.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/spotlight.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/tracing.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/tracing_utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/transport.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/types.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk/worker.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/dependency_links.txt +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/entry_points.txt +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/not-zip-safe +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/requires.txt +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/sentry_sdk.egg-info/top_level.txt +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/setup.cfg +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_ai_monitoring.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_api.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_basics.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_client.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_conftest.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_crons.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_dsc.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_envelope.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_exceptiongroup.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_feature_flags.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_full_stack_frames.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_import.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_logs.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_lru_cache.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_metrics.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_monitor.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_propagationcontext.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_scrubber.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_serializer.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_spotlight.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_tracing_utils.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_transport.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_types.py +0 -0
- {sentry_sdk-2.30.0 → sentry_sdk-2.32.0}/tests/test_utils.py +0 -0
|
@@ -82,6 +82,8 @@ __all__ = [
|
|
|
82
82
|
"start_transaction",
|
|
83
83
|
"trace",
|
|
84
84
|
"monitor",
|
|
85
|
+
"start_session",
|
|
86
|
+
"end_session",
|
|
85
87
|
]
|
|
86
88
|
|
|
87
89
|
|
|
@@ -450,3 +452,17 @@ def continue_trace(
|
|
|
450
452
|
return get_isolation_scope().continue_trace(
|
|
451
453
|
environ_or_headers, op, name, source, origin
|
|
452
454
|
)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
@scopemethod
|
|
458
|
+
def start_session(
|
|
459
|
+
session_mode="application", # type: str
|
|
460
|
+
):
|
|
461
|
+
# type: (...) -> None
|
|
462
|
+
return get_isolation_scope().start_session(session_mode=session_mode)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
@scopemethod
|
|
466
|
+
def end_session():
|
|
467
|
+
# type: () -> None
|
|
468
|
+
return get_isolation_scope().end_session()
|
|
@@ -108,16 +108,39 @@ class SPANDATA:
|
|
|
108
108
|
See: https://develop.sentry.dev/sdk/performance/span-data-conventions/
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
|
+
AI_CITATIONS = "ai.citations"
|
|
112
|
+
"""
|
|
113
|
+
References or sources cited by the AI model in its response.
|
|
114
|
+
Example: ["Smith et al. 2020", "Jones 2019"]
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
AI_DOCUMENTS = "ai.documents"
|
|
118
|
+
"""
|
|
119
|
+
Documents or content chunks used as context for the AI model.
|
|
120
|
+
Example: ["doc1.txt", "doc2.pdf"]
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
AI_FINISH_REASON = "ai.finish_reason"
|
|
124
|
+
"""
|
|
125
|
+
The reason why the model stopped generating.
|
|
126
|
+
Example: "length"
|
|
127
|
+
"""
|
|
128
|
+
|
|
111
129
|
AI_FREQUENCY_PENALTY = "ai.frequency_penalty"
|
|
112
130
|
"""
|
|
113
131
|
Used to reduce repetitiveness of generated tokens.
|
|
114
132
|
Example: 0.5
|
|
115
133
|
"""
|
|
116
134
|
|
|
117
|
-
|
|
135
|
+
AI_FUNCTION_CALL = "ai.function_call"
|
|
118
136
|
"""
|
|
119
|
-
|
|
120
|
-
|
|
137
|
+
For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
AI_GENERATION_ID = "ai.generation_id"
|
|
141
|
+
"""
|
|
142
|
+
Unique identifier for the completion.
|
|
143
|
+
Example: "gen_123abc"
|
|
121
144
|
"""
|
|
122
145
|
|
|
123
146
|
AI_INPUT_MESSAGES = "ai.input_messages"
|
|
@@ -126,10 +149,9 @@ class SPANDATA:
|
|
|
126
149
|
Example: [{"role": "user", "message": "hello"}]
|
|
127
150
|
"""
|
|
128
151
|
|
|
129
|
-
|
|
152
|
+
AI_LOGIT_BIAS = "ai.logit_bias"
|
|
130
153
|
"""
|
|
131
|
-
|
|
132
|
-
Example: gpt-4
|
|
154
|
+
For an AI model call, the logit bias
|
|
133
155
|
"""
|
|
134
156
|
|
|
135
157
|
AI_METADATA = "ai.metadata"
|
|
@@ -138,28 +160,94 @@ class SPANDATA:
|
|
|
138
160
|
Example: {"executed_function": "add_integers"}
|
|
139
161
|
"""
|
|
140
162
|
|
|
141
|
-
|
|
163
|
+
AI_MODEL_ID = "ai.model_id"
|
|
142
164
|
"""
|
|
143
|
-
|
|
144
|
-
Example:
|
|
165
|
+
The unique descriptor of the model being execugted
|
|
166
|
+
Example: gpt-4
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
AI_PIPELINE_NAME = "ai.pipeline.name"
|
|
170
|
+
"""
|
|
171
|
+
Name of the AI pipeline or chain being executed.
|
|
172
|
+
Example: "qa-pipeline"
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
AI_PREAMBLE = "ai.preamble"
|
|
176
|
+
"""
|
|
177
|
+
For an AI model call, the preamble parameter.
|
|
178
|
+
Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.
|
|
179
|
+
Example: "You are now a clown."
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
AI_PRESENCE_PENALTY = "ai.presence_penalty"
|
|
183
|
+
"""
|
|
184
|
+
Used to reduce repetitiveness of generated tokens.
|
|
185
|
+
Example: 0.5
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
AI_RAW_PROMPTING = "ai.raw_prompting"
|
|
189
|
+
"""
|
|
190
|
+
Minimize pre-processing done to the prompt sent to the LLM.
|
|
191
|
+
Example: true
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
AI_RESPONSE_FORMAT = "ai.response_format"
|
|
195
|
+
"""
|
|
196
|
+
For an AI model call, the format of the response
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
AI_RESPONSES = "ai.responses"
|
|
200
|
+
"""
|
|
201
|
+
The responses to an AI model call. Always as a list.
|
|
202
|
+
Example: ["hello", "world"]
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
AI_SEARCH_QUERIES = "ai.search_queries"
|
|
206
|
+
"""
|
|
207
|
+
Queries used to search for relevant context or documents.
|
|
208
|
+
Example: ["climate change effects", "renewable energy"]
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
AI_SEARCH_REQUIRED = "ai.is_search_required"
|
|
212
|
+
"""
|
|
213
|
+
Boolean indicating if the model needs to perform a search.
|
|
214
|
+
Example: true
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
AI_SEARCH_RESULTS = "ai.search_results"
|
|
218
|
+
"""
|
|
219
|
+
Results returned from search queries for context.
|
|
220
|
+
Example: ["Result 1", "Result 2"]
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
AI_SEED = "ai.seed"
|
|
224
|
+
"""
|
|
225
|
+
The seed, ideally models given the same seed and same other parameters will produce the exact same output.
|
|
226
|
+
Example: 123.45
|
|
145
227
|
"""
|
|
146
228
|
|
|
147
229
|
AI_STREAMING = "ai.streaming"
|
|
148
230
|
"""
|
|
149
|
-
Whether or not the AI model call's
|
|
231
|
+
Whether or not the AI model call's response was streamed back asynchronously
|
|
150
232
|
Example: true
|
|
151
233
|
"""
|
|
152
234
|
|
|
235
|
+
AI_TAGS = "ai.tags"
|
|
236
|
+
"""
|
|
237
|
+
Tags that describe an AI pipeline step.
|
|
238
|
+
Example: {"executed_function": "add_integers"}
|
|
239
|
+
"""
|
|
240
|
+
|
|
153
241
|
AI_TEMPERATURE = "ai.temperature"
|
|
154
242
|
"""
|
|
155
243
|
For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.
|
|
156
244
|
Example: 0.5
|
|
157
245
|
"""
|
|
158
246
|
|
|
159
|
-
|
|
247
|
+
AI_TEXTS = "ai.texts"
|
|
160
248
|
"""
|
|
161
|
-
|
|
162
|
-
Example:
|
|
249
|
+
Raw text inputs provided to the model.
|
|
250
|
+
Example: ["What is machine learning?"]
|
|
163
251
|
"""
|
|
164
252
|
|
|
165
253
|
AI_TOP_K = "ai.top_k"
|
|
@@ -168,9 +256,10 @@ class SPANDATA:
|
|
|
168
256
|
Example: 35
|
|
169
257
|
"""
|
|
170
258
|
|
|
171
|
-
|
|
259
|
+
AI_TOP_P = "ai.top_p"
|
|
172
260
|
"""
|
|
173
|
-
For an AI model call, the
|
|
261
|
+
For an AI model call, the top_p parameter. Top_p essentially controls how random the output will be.
|
|
262
|
+
Example: 0.5
|
|
174
263
|
"""
|
|
175
264
|
|
|
176
265
|
AI_TOOL_CALLS = "ai.tool_calls"
|
|
@@ -183,168 +272,236 @@ class SPANDATA:
|
|
|
183
272
|
For an AI model call, the functions that are available
|
|
184
273
|
"""
|
|
185
274
|
|
|
186
|
-
|
|
275
|
+
AI_WARNINGS = "ai.warnings"
|
|
187
276
|
"""
|
|
188
|
-
|
|
277
|
+
Warning messages generated during model execution.
|
|
278
|
+
Example: ["Token limit exceeded"]
|
|
189
279
|
"""
|
|
190
280
|
|
|
191
|
-
|
|
281
|
+
CACHE_HIT = "cache.hit"
|
|
192
282
|
"""
|
|
193
|
-
|
|
283
|
+
A boolean indicating whether the requested data was found in the cache.
|
|
284
|
+
Example: true
|
|
194
285
|
"""
|
|
195
286
|
|
|
196
|
-
|
|
287
|
+
CACHE_ITEM_SIZE = "cache.item_size"
|
|
197
288
|
"""
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Example: "You are now a clown."
|
|
289
|
+
The size of the requested data in bytes.
|
|
290
|
+
Example: 58
|
|
201
291
|
"""
|
|
202
292
|
|
|
203
|
-
|
|
293
|
+
CACHE_KEY = "cache.key"
|
|
204
294
|
"""
|
|
205
|
-
|
|
206
|
-
Example:
|
|
295
|
+
The key of the requested data.
|
|
296
|
+
Example: template.cache.some_item.867da7e2af8e6b2f3aa7213a4080edb3
|
|
207
297
|
"""
|
|
208
|
-
|
|
298
|
+
|
|
299
|
+
CODE_FILEPATH = "code.filepath"
|
|
209
300
|
"""
|
|
210
|
-
The
|
|
211
|
-
Example:
|
|
301
|
+
The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).
|
|
302
|
+
Example: "/app/myapplication/http/handler/server.py"
|
|
212
303
|
"""
|
|
213
304
|
|
|
214
|
-
|
|
305
|
+
CODE_FUNCTION = "code.function"
|
|
215
306
|
"""
|
|
216
|
-
The
|
|
217
|
-
Example:
|
|
307
|
+
The method or function name, or equivalent (usually rightmost part of the code unit's name).
|
|
308
|
+
Example: "server_request"
|
|
218
309
|
"""
|
|
219
310
|
|
|
220
|
-
|
|
311
|
+
CODE_LINENO = "code.lineno"
|
|
221
312
|
"""
|
|
222
|
-
|
|
223
|
-
Example:
|
|
313
|
+
The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
|
|
314
|
+
Example: 42
|
|
224
315
|
"""
|
|
225
316
|
|
|
226
|
-
|
|
317
|
+
CODE_NAMESPACE = "code.namespace"
|
|
227
318
|
"""
|
|
228
|
-
|
|
229
|
-
Example:
|
|
319
|
+
The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit.
|
|
320
|
+
Example: "http.handler"
|
|
230
321
|
"""
|
|
231
322
|
|
|
232
|
-
|
|
323
|
+
DB_MONGODB_COLLECTION = "db.mongodb.collection"
|
|
233
324
|
"""
|
|
234
|
-
|
|
235
|
-
|
|
325
|
+
The MongoDB collection being accessed within the database.
|
|
326
|
+
See: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/mongodb.md#attributes
|
|
327
|
+
Example: public.users; customers
|
|
236
328
|
"""
|
|
237
329
|
|
|
238
|
-
|
|
330
|
+
DB_NAME = "db.name"
|
|
239
331
|
"""
|
|
240
|
-
|
|
241
|
-
Example:
|
|
332
|
+
The name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails).
|
|
333
|
+
Example: myDatabase
|
|
242
334
|
"""
|
|
243
335
|
|
|
244
|
-
|
|
336
|
+
DB_OPERATION = "db.operation"
|
|
245
337
|
"""
|
|
246
|
-
|
|
247
|
-
|
|
338
|
+
The name of the operation being executed, e.g. the MongoDB command name such as findAndModify, or the SQL keyword.
|
|
339
|
+
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md
|
|
340
|
+
Example: findAndModify, HMSET, SELECT
|
|
248
341
|
"""
|
|
249
342
|
|
|
250
|
-
|
|
343
|
+
DB_SYSTEM = "db.system"
|
|
251
344
|
"""
|
|
252
|
-
|
|
253
|
-
|
|
345
|
+
An identifier for the database management system (DBMS) product being used.
|
|
346
|
+
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md
|
|
347
|
+
Example: postgresql
|
|
254
348
|
"""
|
|
255
349
|
|
|
256
|
-
|
|
350
|
+
DB_USER = "db.user"
|
|
257
351
|
"""
|
|
258
|
-
The
|
|
259
|
-
|
|
352
|
+
The name of the database user used for connecting to the database.
|
|
353
|
+
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md
|
|
354
|
+
Example: my_user
|
|
260
355
|
"""
|
|
261
356
|
|
|
262
|
-
|
|
357
|
+
GEN_AI_AGENT_NAME = "gen_ai.agent.name"
|
|
263
358
|
"""
|
|
264
|
-
|
|
265
|
-
Example: "
|
|
359
|
+
The name of the agent being used.
|
|
360
|
+
Example: "ResearchAssistant"
|
|
266
361
|
"""
|
|
267
362
|
|
|
268
|
-
|
|
363
|
+
GEN_AI_CHOICE = "gen_ai.choice"
|
|
269
364
|
"""
|
|
270
|
-
|
|
271
|
-
Example:
|
|
365
|
+
The model's response message.
|
|
366
|
+
Example: "The weather in Paris is rainy and overcast, with temperatures around 57°F"
|
|
272
367
|
"""
|
|
273
368
|
|
|
274
|
-
|
|
369
|
+
GEN_AI_OPERATION_NAME = "gen_ai.operation.name"
|
|
275
370
|
"""
|
|
276
|
-
|
|
277
|
-
Example:
|
|
371
|
+
The name of the operation being performed.
|
|
372
|
+
Example: "chat"
|
|
278
373
|
"""
|
|
279
374
|
|
|
280
|
-
|
|
375
|
+
GEN_AI_RESPONSE_TEXT = "gen_ai.response.text"
|
|
281
376
|
"""
|
|
282
|
-
The
|
|
283
|
-
Example:
|
|
377
|
+
The model's response text messages.
|
|
378
|
+
Example: ["The weather in Paris is rainy and overcast, with temperatures around 57°F", "The weather in London is sunny and warm, with temperatures around 65°F"]
|
|
284
379
|
"""
|
|
285
380
|
|
|
286
|
-
|
|
381
|
+
GEN_AI_RESPONSE_TOOL_CALLS = "gen_ai.response.tool_calls"
|
|
287
382
|
"""
|
|
288
|
-
The
|
|
289
|
-
|
|
290
|
-
Example: my_user
|
|
383
|
+
The tool calls in the model's response.
|
|
384
|
+
Example: [{"name": "get_weather", "arguments": {"location": "Paris"}}]
|
|
291
385
|
"""
|
|
292
386
|
|
|
293
|
-
|
|
387
|
+
GEN_AI_REQUEST_AVAILABLE_TOOLS = "gen_ai.request.available_tools"
|
|
294
388
|
"""
|
|
295
|
-
The
|
|
296
|
-
|
|
297
|
-
Example: findAndModify, HMSET, SELECT
|
|
389
|
+
The available tools for the model.
|
|
390
|
+
Example: [{"name": "get_weather", "description": "Get the weather for a given location"}, {"name": "get_news", "description": "Get the news for a given topic"}]
|
|
298
391
|
"""
|
|
299
392
|
|
|
300
|
-
|
|
393
|
+
GEN_AI_REQUEST_FREQUENCY_PENALTY = "gen_ai.request.frequency_penalty"
|
|
301
394
|
"""
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
Example: postgresql
|
|
395
|
+
The frequency penalty parameter used to reduce repetitiveness of generated tokens.
|
|
396
|
+
Example: 0.1
|
|
305
397
|
"""
|
|
306
398
|
|
|
307
|
-
|
|
399
|
+
GEN_AI_REQUEST_MAX_TOKENS = "gen_ai.request.max_tokens"
|
|
308
400
|
"""
|
|
309
|
-
The
|
|
310
|
-
|
|
311
|
-
Example: public.users; customers
|
|
401
|
+
The maximum number of tokens to generate in the response.
|
|
402
|
+
Example: 2048
|
|
312
403
|
"""
|
|
313
404
|
|
|
314
|
-
|
|
405
|
+
GEN_AI_REQUEST_MESSAGES = "gen_ai.request.messages"
|
|
315
406
|
"""
|
|
316
|
-
|
|
317
|
-
Example:
|
|
407
|
+
The messages passed to the model. The "content" can be a string or an array of objects.
|
|
408
|
+
Example: [{role: "system", "content: "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}]
|
|
318
409
|
"""
|
|
319
410
|
|
|
320
|
-
|
|
411
|
+
GEN_AI_REQUEST_MODEL = "gen_ai.request.model"
|
|
321
412
|
"""
|
|
322
|
-
The
|
|
323
|
-
Example:
|
|
413
|
+
The model identifier being used for the request.
|
|
414
|
+
Example: "gpt-4-turbo-preview"
|
|
324
415
|
"""
|
|
325
416
|
|
|
326
|
-
|
|
417
|
+
GEN_AI_REQUEST_PRESENCE_PENALTY = "gen_ai.request.presence_penalty"
|
|
327
418
|
"""
|
|
328
|
-
The
|
|
329
|
-
Example:
|
|
419
|
+
The presence penalty parameter used to reduce repetitiveness of generated tokens.
|
|
420
|
+
Example: 0.1
|
|
330
421
|
"""
|
|
331
422
|
|
|
332
|
-
|
|
423
|
+
GEN_AI_REQUEST_TEMPERATURE = "gen_ai.request.temperature"
|
|
333
424
|
"""
|
|
334
|
-
|
|
335
|
-
Example:
|
|
425
|
+
The temperature parameter used to control randomness in the output.
|
|
426
|
+
Example: 0.7
|
|
336
427
|
"""
|
|
337
428
|
|
|
338
|
-
|
|
429
|
+
GEN_AI_REQUEST_TOP_P = "gen_ai.request.top_p"
|
|
339
430
|
"""
|
|
340
|
-
|
|
341
|
-
Example:
|
|
431
|
+
The top_p parameter used to control diversity via nucleus sampling.
|
|
432
|
+
Example: 1.0
|
|
342
433
|
"""
|
|
343
434
|
|
|
344
|
-
|
|
435
|
+
GEN_AI_SYSTEM = "gen_ai.system"
|
|
345
436
|
"""
|
|
346
|
-
The
|
|
347
|
-
Example:
|
|
437
|
+
The name of the AI system being used.
|
|
438
|
+
Example: "openai"
|
|
439
|
+
"""
|
|
440
|
+
|
|
441
|
+
GEN_AI_TOOL_DESCRIPTION = "gen_ai.tool.description"
|
|
442
|
+
"""
|
|
443
|
+
The description of the tool being used.
|
|
444
|
+
Example: "Searches the web for current information about a topic"
|
|
445
|
+
"""
|
|
446
|
+
|
|
447
|
+
GEN_AI_TOOL_INPUT = "gen_ai.tool.input"
|
|
448
|
+
"""
|
|
449
|
+
The input of the tool being used.
|
|
450
|
+
Example: {"location": "Paris"}
|
|
451
|
+
"""
|
|
452
|
+
|
|
453
|
+
GEN_AI_TOOL_NAME = "gen_ai.tool.name"
|
|
454
|
+
"""
|
|
455
|
+
The name of the tool being used.
|
|
456
|
+
Example: "web_search"
|
|
457
|
+
"""
|
|
458
|
+
|
|
459
|
+
GEN_AI_TOOL_OUTPUT = "gen_ai.tool.output"
|
|
460
|
+
"""
|
|
461
|
+
The output of the tool being used.
|
|
462
|
+
Example: "rainy, 57°F"
|
|
463
|
+
"""
|
|
464
|
+
|
|
465
|
+
GEN_AI_TOOL_TYPE = "gen_ai.tool.type"
|
|
466
|
+
"""
|
|
467
|
+
The type of tool being used.
|
|
468
|
+
Example: "function"
|
|
469
|
+
"""
|
|
470
|
+
|
|
471
|
+
GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens"
|
|
472
|
+
"""
|
|
473
|
+
The number of tokens in the input.
|
|
474
|
+
Example: 150
|
|
475
|
+
"""
|
|
476
|
+
|
|
477
|
+
GEN_AI_USAGE_INPUT_TOKENS_CACHED = "gen_ai.usage.input_tokens.cached"
|
|
478
|
+
"""
|
|
479
|
+
The number of cached tokens in the input.
|
|
480
|
+
Example: 50
|
|
481
|
+
"""
|
|
482
|
+
|
|
483
|
+
GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens"
|
|
484
|
+
"""
|
|
485
|
+
The number of tokens in the output.
|
|
486
|
+
Example: 250
|
|
487
|
+
"""
|
|
488
|
+
|
|
489
|
+
GEN_AI_USAGE_OUTPUT_TOKENS_REASONING = "gen_ai.usage.output_tokens.reasoning"
|
|
490
|
+
"""
|
|
491
|
+
The number of tokens used for reasoning in the output.
|
|
492
|
+
Example: 75
|
|
493
|
+
"""
|
|
494
|
+
|
|
495
|
+
GEN_AI_USAGE_TOTAL_TOKENS = "gen_ai.usage.total_tokens"
|
|
496
|
+
"""
|
|
497
|
+
The total number of tokens used (input + output).
|
|
498
|
+
Example: 400
|
|
499
|
+
"""
|
|
500
|
+
|
|
501
|
+
GEN_AI_USER_MESSAGE = "gen_ai.user.message"
|
|
502
|
+
"""
|
|
503
|
+
The user message passed to the model.
|
|
504
|
+
Example: "What's the weather in Paris?"
|
|
348
505
|
"""
|
|
349
506
|
|
|
350
507
|
HTTP_FRAGMENT = "http.fragment"
|
|
@@ -359,6 +516,12 @@ class SPANDATA:
|
|
|
359
516
|
Example: GET
|
|
360
517
|
"""
|
|
361
518
|
|
|
519
|
+
HTTP_QUERY = "http.query"
|
|
520
|
+
"""
|
|
521
|
+
The Query string present in the URL.
|
|
522
|
+
Example: ?foo=bar&bar=baz
|
|
523
|
+
"""
|
|
524
|
+
|
|
362
525
|
HTTP_STATUS_CODE = "http.response.status_code"
|
|
363
526
|
"""
|
|
364
527
|
The HTTP status code as an integer.
|
|
@@ -376,14 +539,14 @@ class SPANDATA:
|
|
|
376
539
|
The message's identifier.
|
|
377
540
|
"""
|
|
378
541
|
|
|
379
|
-
|
|
542
|
+
MESSAGING_MESSAGE_RECEIVE_LATENCY = "messaging.message.receive.latency"
|
|
380
543
|
"""
|
|
381
|
-
|
|
544
|
+
The latency between when the task was enqueued and when it was started to be processed.
|
|
382
545
|
"""
|
|
383
546
|
|
|
384
|
-
|
|
547
|
+
MESSAGING_MESSAGE_RETRY_COUNT = "messaging.message.retry.count"
|
|
385
548
|
"""
|
|
386
|
-
|
|
549
|
+
Number of retries/attempts to process a message.
|
|
387
550
|
"""
|
|
388
551
|
|
|
389
552
|
MESSAGING_SYSTEM = "messaging.system"
|
|
@@ -391,6 +554,24 @@ class SPANDATA:
|
|
|
391
554
|
The messaging system's name, e.g. `kafka`, `aws_sqs`
|
|
392
555
|
"""
|
|
393
556
|
|
|
557
|
+
NETWORK_PEER_ADDRESS = "network.peer.address"
|
|
558
|
+
"""
|
|
559
|
+
Peer address of the network connection - IP address or Unix domain socket name.
|
|
560
|
+
Example: 10.1.2.80, /tmp/my.sock, localhost
|
|
561
|
+
"""
|
|
562
|
+
|
|
563
|
+
NETWORK_PEER_PORT = "network.peer.port"
|
|
564
|
+
"""
|
|
565
|
+
Peer port number of the network connection.
|
|
566
|
+
Example: 6379
|
|
567
|
+
"""
|
|
568
|
+
|
|
569
|
+
PROFILER_ID = "profiler_id"
|
|
570
|
+
"""
|
|
571
|
+
Label identifying the profiler id that the span occurred in. This should be a string.
|
|
572
|
+
Example: "5249fbada8d5416482c2f6e47e337372"
|
|
573
|
+
"""
|
|
574
|
+
|
|
394
575
|
SERVER_ADDRESS = "server.address"
|
|
395
576
|
"""
|
|
396
577
|
Name of the database host.
|
|
@@ -416,30 +597,6 @@ class SPANDATA:
|
|
|
416
597
|
Example: 16456
|
|
417
598
|
"""
|
|
418
599
|
|
|
419
|
-
CODE_FILEPATH = "code.filepath"
|
|
420
|
-
"""
|
|
421
|
-
The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).
|
|
422
|
-
Example: "/app/myapplication/http/handler/server.py"
|
|
423
|
-
"""
|
|
424
|
-
|
|
425
|
-
CODE_LINENO = "code.lineno"
|
|
426
|
-
"""
|
|
427
|
-
The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
|
|
428
|
-
Example: 42
|
|
429
|
-
"""
|
|
430
|
-
|
|
431
|
-
CODE_FUNCTION = "code.function"
|
|
432
|
-
"""
|
|
433
|
-
The method or function name, or equivalent (usually rightmost part of the code unit's name).
|
|
434
|
-
Example: "server_request"
|
|
435
|
-
"""
|
|
436
|
-
|
|
437
|
-
CODE_NAMESPACE = "code.namespace"
|
|
438
|
-
"""
|
|
439
|
-
The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit.
|
|
440
|
-
Example: "http.handler"
|
|
441
|
-
"""
|
|
442
|
-
|
|
443
600
|
THREAD_ID = "thread.id"
|
|
444
601
|
"""
|
|
445
602
|
Identifier of a thread from where the span originated. This should be a string.
|
|
@@ -452,12 +609,6 @@ class SPANDATA:
|
|
|
452
609
|
Example: "MainThread"
|
|
453
610
|
"""
|
|
454
611
|
|
|
455
|
-
PROFILER_ID = "profiler_id"
|
|
456
|
-
"""
|
|
457
|
-
Label identifying the profiler id that the span occurred in. This should be a string.
|
|
458
|
-
Example: "5249fbada8d5416482c2f6e47e337372"
|
|
459
|
-
"""
|
|
460
|
-
|
|
461
612
|
|
|
462
613
|
class SPANSTATUS:
|
|
463
614
|
"""
|
|
@@ -497,6 +648,10 @@ class OP:
|
|
|
497
648
|
FUNCTION = "function"
|
|
498
649
|
FUNCTION_AWS = "function.aws"
|
|
499
650
|
FUNCTION_GCP = "function.gcp"
|
|
651
|
+
GEN_AI_CHAT = "gen_ai.chat"
|
|
652
|
+
GEN_AI_EXECUTE_TOOL = "gen_ai.execute_tool"
|
|
653
|
+
GEN_AI_HANDOFF = "gen_ai.handoff"
|
|
654
|
+
GEN_AI_INVOKE_AGENT = "gen_ai.invoke_agent"
|
|
500
655
|
GRAPHQL_EXECUTE = "graphql.execute"
|
|
501
656
|
GRAPHQL_MUTATION = "graphql.mutation"
|
|
502
657
|
GRAPHQL_PARSE = "graphql.parse"
|
|
@@ -1026,4 +1181,4 @@ DEFAULT_OPTIONS = _get_default_options()
|
|
|
1026
1181
|
del _get_default_options
|
|
1027
1182
|
|
|
1028
1183
|
|
|
1029
|
-
VERSION = "2.
|
|
1184
|
+
VERSION = "2.32.0"
|