New Features
-
LLM Observability
- When starting LLM and embedding spans, the
model_name
argument is now optional and will default tocustom
. This applies to both inline methods (e.g.LLMObs.llm()
) and function decorators (e.g.@llm
). - Introduces the ability to add metadata for evaluation metrics via the
submit_evaluation
method. For more information, see submitting evaluations with the SDK.
- When starting LLM and embedding spans, the
-
Tracing
- Introduces support for Baggage as defined by the OpenTelemetry specification.
botocore
: Adds span pointers for successful DynamoDBBatchWriteItem
spans. Table Primary Keys will need to be provided with theddtrace.config.botocore.dynamodb_primary_key_names_for_tables
option or theDD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS
environment variable to correctly handle thePutRequest
items.botocore
: Adds span pointers for successful DynamoDBTransactWriteItems
spans. Table Primary Keys will need to be provided with theddtrace.config.botocore.dynamodb_primary_key_names_for_tables
option or theDD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS
environment variable to correctly handle thePut
items.botocore
: Addsddtrace.config.botocore.add_span_pointers
option or theDD_BOTOCORE_ADD_SPAN_POINTERS
environment variable to control adding span pointers to some successful AWS API requests. This option is enabled by default.elasticsearch
: Resolves an issue where span tags were not fully populated on "sampled" spans, causing metric dimensions to be incorrect when spans were prematurely marked as sampled, includingresource_name
.
Bug Fixes
-
CI Visibility
- Fixes a bug where
CODEOWNERS
would incorrectly fail to discard line-level trailing comments (eg:@code/owner # my comment
would result in codeowners being parsed as@code/owner
,#
,my
, andcomment
) - Fixes unnecessary logging of an exception that would appear when trying to upload git metadata in an environment without functioning git (eg: missing
git
binary or.git
directory)
- Fixes a bug where
-
Dynamic Instrumentation
- Fixes an issue that prevented dynamic span tags probes from adding the requested tags to the requested span.
-
LLM Observability
- Resolves two issues with annotation contexts:
- annotations registered via annotation contexts were being applied globally. Annotations are now only applied to the current trace context and do not pollute to other threads & processes.
- annotations from nested annotation contexts were applied in a non-deterministic order. Annotations are now applied in the order they were registered.
- Resolves an issue where input and output values equal to zero were not being annotated on workflow, task, agent and tool spans when using
LLMObs.annotate
. - Resolves errors where the disabled setting was being ignored when forking.
- Resolves two issues with annotation contexts:
-
Profiling
- Resolves an issue where asyncio task names are not captured by stack v2, when
DD_PROFILING_STACK_V2_ENABLED
is set. - Resolves an issue where endpoint profiling for stack v2 throws
TypeError
exception when it is given aSpan
withNone
span_type.
- Resolves an issue where asyncio task names are not captured by stack v2, when
-
Tracing
- Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.
Other Changes
- LLM Observability
- Updates the merging behavior for tags when
LLMObs.annotate
is called multiple times on the same span so that the latest value for a tag key overrides the previous value.
- Updates the merging behavior for tags when