dd-trace-py icon indicating copy to clipboard operation
dd-trace-py copied to clipboard

Datadog Python APM Client

Results 534 dd-trace-py issues
Sort by recently updated
recently updated
newest added

## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates...

changelog/no-changelog

Tracks number of tokens read from and written to the prompt cache for anthropic https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching anthropic returns `cache_creation/read_input_tokens` in their usage field. We map these to `cache_write/read_input_tokens` keys in our...

## Checklist - [ ] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description...

We avoid parsing the expires string into a date-time object. Currently the value is not used, so we avoid calls to `_strptime`, which make use of a global lock in...

changelog/no-changelog

Tracks number of tokens read from the prompt cache for openai chat completions openai does prompt caching by default and returns a `cached_tokens` field in `prompt_tokens_details` https://platform.openai.com/docs/api-reference/chat/create We rely on...

# Motivation `record_exception` call was added few releases ago because some customers were asking to be able to send manually errors. However, it was mainly based on the OpenTelemetry implementation....

We fix an issue with the injection of hooks on a line that contains just a `try:`. In later versions of Python this has become a mere `NOP` placeholder, which...

Dynamic Instrumentation
backport 2.21
backport 3.9

This PR implements APM tracing for the PydanticAI library. Currently, the following methods are traced: - `agent.Agent.iter`: captures all ways of running the agent, including `agent.run`, `agent.run_sync`, `agent.run_stream`, and `agent.iter`...

Adding pre-release performance regression gating. This sets SLO thresholds for some key macrobenchmarks, and now runs macrobenchmarks on any release tags that are created. If any SLOs are breached, it...

changelog/no-changelog

### What does this PR do? Add the `simple_onboarding_appsec` to the gitlab workflow. ### Motivation Add system tests scenario for SSI Appsec. ## Checklist - [ ] PR author has...