Skip to content

Conversation

brettlangdon
Copy link
Member

@brettlangdon brettlangdon commented Aug 22, 2025

core.get_item/ExecutionContext.get_item will search through the hierarchy of parents until it finds the key (or cache miss on all parents and returns the default).

Most usage of context set_item/get_item are intended to be for the currently actively context only, and don't need to search for an item potentially on the parent.

When profiling get_item can be up to 5-6x slower than get_local_item especially for cache misses.

This change updates the ddtrace/_trace/trace_handlers.py usage to only use get_local_item instead.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@brettlangdon brettlangdon added the changelog/no-changelog A changelog entry is not required for this PR. label Aug 22, 2025
Copy link
Contributor

github-actions bot commented Aug 22, 2025

CODEOWNERS have been resolved as:

ddtrace/_trace/trace_handlers.py                                        @DataDog/apm-sdk-api-python @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/botocore/patch.py                              @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/internal/core/__init__.py                                       @DataDog/apm-core-python

Copy link
Contributor

github-actions bot commented Aug 22, 2025

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 268 ± 3 ms.

The average import time from base is: 269 ± 2 ms.

The import time difference between this PR and base is: -1.3 ± 0.1 ms.

Import time breakdown

The following import paths have shrunk:

ddtrace.auto 1.947 ms (0.73%)
ddtrace.bootstrap.sitecustomize 1.273 ms (0.48%)
ddtrace.bootstrap.preload 1.273 ms (0.48%)
ddtrace.internal.remoteconfig.client 0.614 ms (0.23%)
ddtrace 0.674 ms (0.25%)
ddtrace.internal._unpatched 0.028 ms (0.01%)
json 0.028 ms (0.01%)
json.decoder 0.028 ms (0.01%)
re 0.028 ms (0.01%)
enum 0.028 ms (0.01%)
types 0.028 ms (0.01%)

@pr-commenter
Copy link

pr-commenter bot commented Aug 22, 2025

Performance SLOs

Candidate: LANGPLAT-642/optimize.start.finish.span (47c6646)

🔵 No Baseline Data (24 suites)
🔵 coreapiscenario - 12/12 (2 unstable)

🔵 No baseline data available for this suite

⚠️ context_with_data_listeners

Time: ⚠️ 13.353µs (SLO: <20.000µs 📉 -33.2%)

Memory: ✅ 31.320MB (SLO: <33.500MB -6.5%)


✅ context_with_data_no_listeners

Time: ✅ 3.409µs (SLO: <10.000µs 📉 -65.9%)

Memory: ✅ 31.202MB (SLO: <33.500MB -6.9%)


⚠️ context_with_data_only_all_listeners

Time: ⚠️ 13.415µs (SLO: <20.000µs 📉 -32.9%)

Memory: ✅ 31.320MB (SLO: <33.500MB -6.5%)


✅ get_item_exists

Time: ✅ 0.583µs (SLO: <10.000µs 📉 -94.2%)

Memory: ✅ 31.202MB (SLO: <33.500MB -6.9%)


✅ get_item_missing

Time: ✅ 0.631µs (SLO: <10.000µs 📉 -93.7%)

Memory: ✅ 31.320MB (SLO: <33.500MB -6.5%)


✅ set_item

Time: ✅ 24.180µs (SLO: <30.000µs 📉 -19.4%)

Memory: ✅ 31.261MB (SLO: <33.500MB -6.7%)


🔵 djangosimple - 24/24

🔵 No baseline data available for this suite

✅ appsec

Time: ✅ 20.681ms (SLO: <22.300ms -7.3%)

Memory: ✅ 64.251MB (SLO: <66.000MB -2.6%)


✅ exception-replay-enabled

Time: ✅ 1.372ms (SLO: <1.450ms -5.4%)

Memory: ✅ 63.170MB (SLO: <66.000MB -4.3%)


✅ iast

Time: ✅ 20.716ms (SLO: <22.250ms -6.9%)

Memory: ✅ 64.231MB (SLO: <66.000MB -2.7%)


✅ profiler

Time: ✅ 15.197ms (SLO: <16.550ms -8.2%)

Memory: ✅ 52.770MB (SLO: <53.500MB 🟡 -1.4%)


✅ span-code-origin

Time: ✅ 26.256ms (SLO: <28.200ms -6.9%)

Memory: ✅ 66.294MB (SLO: <68.500MB -3.2%)


✅ tracer

Time: ✅ 20.674ms (SLO: <21.750ms -4.9%)

Memory: ✅ 64.232MB (SLO: <66.000MB -2.7%)


✅ tracer-and-profiler

Time: ✅ 22.334ms (SLO: <23.500ms -5.0%)

Memory: ✅ 65.194MB (SLO: <67.000MB -2.7%)


✅ tracer-dont-create-db-spans

Time: ✅ 19.502ms (SLO: <21.500ms -9.3%)

Memory: ✅ 63.917MB (SLO: <66.000MB -3.2%)


✅ tracer-no-caches

Time: ✅ 18.574ms (SLO: <19.650ms -5.5%)

Memory: ✅ 63.956MB (SLO: <66.000MB -3.1%)


✅ tracer-no-databases

Time: ✅ 18.973ms (SLO: <20.100ms -5.6%)

Memory: ✅ 63.956MB (SLO: <66.000MB -3.1%)


✅ tracer-no-middleware

Time: ✅ 20.369ms (SLO: <21.500ms -5.3%)

Memory: ✅ 63.917MB (SLO: <66.000MB -3.2%)


✅ tracer-no-templates

Time: ✅ 20.507ms (SLO: <22.000ms -6.8%)

Memory: ✅ 63.937MB (SLO: <66.000MB -3.1%)


🔵 errortrackingdjangosimple - 6/6

🔵 No baseline data available for this suite

✅ errortracking-enabled-all

Time: ✅ 18.207ms (SLO: <19.850ms -8.3%)

Memory: ✅ 64.069MB (SLO: <65.500MB -2.2%)


✅ errortracking-enabled-user

Time: ✅ 18.307ms (SLO: <19.400ms -5.6%)

Memory: ✅ 64.014MB (SLO: <65.500MB -2.3%)


✅ tracer-enabled

Time: ✅ 18.201ms (SLO: <19.450ms -6.4%)

Memory: ✅ 63.829MB (SLO: <65.500MB -2.6%)


🔵 errortrackingflasksqli - 6/6

🔵 No baseline data available for this suite

✅ errortracking-enabled-all

Time: ✅ 2.107ms (SLO: <2.300ms -8.4%)

Memory: ✅ 51.111MB (SLO: <53.500MB -4.5%)


✅ errortracking-enabled-user

Time: ✅ 2.114ms (SLO: <2.250ms -6.1%)

Memory: ✅ 51.072MB (SLO: <53.500MB -4.5%)


✅ tracer-enabled

Time: ✅ 2.107ms (SLO: <2.300ms -8.4%)

Memory: ✅ 51.091MB (SLO: <53.500MB -4.5%)


🔵 flasksimple - 15/15

🔵 No baseline data available for this suite

✅ appsec-get

Time: ✅ 4.581ms (SLO: <4.750ms -3.6%)

Memory: ✅ 61.832MB (SLO: <64.500MB -4.1%)


✅ appsec-post

Time: ✅ 6.613ms (SLO: <6.750ms -2.0%)

Memory: ✅ 62.088MB (SLO: <64.500MB -3.7%)


✅ appsec-telemetry

Time: ✅ 4.584ms (SLO: <4.750ms -3.5%)

Memory: ✅ 61.872MB (SLO: <64.500MB -4.1%)


✅ debugger

Time: ✅ 1.858ms (SLO: <2.000ms -7.1%)

Memory: ✅ 44.374MB (SLO: <45.000MB 🟡 -1.4%)


✅ iast-get

Time: ✅ 1.851ms (SLO: <2.000ms -7.5%)

Memory: ✅ 41.583MB (SLO: <49.000MB 📉 -15.1%)


✅ profiler

Time: ✅ 1.912ms (SLO: <2.100ms -8.9%)

Memory: ✅ 44.031MB (SLO: <46.500MB -5.3%)


✅ tracer

Time: ✅ 3.384ms (SLO: <3.650ms -7.3%)

Memory: ✅ 51.157MB (SLO: <53.500MB -4.4%)


🔵 flasksqli - 6/6

🔵 No baseline data available for this suite

✅ appsec-enabled

Time: ✅ 3.969ms (SLO: <4.200ms -5.5%)

Memory: ✅ 62.083MB (SLO: <66.000MB -5.9%)


✅ iast-enabled

Time: ✅ 2.525ms (SLO: <2.800ms -9.8%)

Memory: ✅ 57.463MB (SLO: <59.000MB -2.6%)


✅ tracer-enabled

Time: ✅ 2.103ms (SLO: <2.250ms -6.5%)

Memory: ✅ 51.079MB (SLO: <53.500MB -4.5%)


🔵 httppropagationextract - 60/60

🔵 No baseline data available for this suite

✅ all_styles_all_headers

Time: ✅ 84.892µs (SLO: <100.000µs 📉 -15.1%)

Memory: ✅ 31.359MB (SLO: <33.500MB -6.4%)


✅ b3_headers

Time: ✅ 14.488µs (SLO: <20.000µs 📉 -27.6%)

Memory: ✅ 31.379MB (SLO: <33.500MB -6.3%)


✅ b3_single_headers

Time: ✅ 13.304µs (SLO: <20.000µs 📉 -33.5%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ datadog_tracecontext_tracestate_not_propagated_on_trace_id_no_match

Time: ✅ 64.262µs (SLO: <80.000µs 📉 -19.7%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ datadog_tracecontext_tracestate_propagated_on_trace_id_match

Time: ✅ 66.459µs (SLO: <80.000µs 📉 -16.9%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ empty_headers

Time: ✅ 1.616µs (SLO: <10.000µs 📉 -83.8%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ full_t_id_datadog_headers

Time: ✅ 22.975µs (SLO: <30.000µs 📉 -23.4%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ invalid_priority_header

Time: ✅ 6.495µs (SLO: <10.000µs 📉 -35.0%)

Memory: ✅ 31.379MB (SLO: <33.500MB -6.3%)


✅ invalid_span_id_header

Time: ✅ 6.534µs (SLO: <10.000µs 📉 -34.7%)

Memory: ✅ 31.379MB (SLO: <33.500MB -6.3%)


✅ invalid_tags_header

Time: ✅ 6.549µs (SLO: <10.000µs 📉 -34.5%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ invalid_trace_id_header

Time: ✅ 6.495µs (SLO: <10.000µs 📉 -35.1%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ large_header_no_matches

Time: ✅ 27.529µs (SLO: <30.000µs -8.2%)

Memory: ✅ 31.359MB (SLO: <33.500MB -6.4%)


✅ large_valid_headers_all

Time: ✅ 28.726µs (SLO: <40.000µs 📉 -28.2%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ medium_header_no_matches

Time: ✅ 9.883µs (SLO: <20.000µs 📉 -50.6%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ medium_valid_headers_all

Time: ✅ 11.344µs (SLO: <20.000µs 📉 -43.3%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ none_propagation_style

Time: ✅ 1.723µs (SLO: <10.000µs 📉 -82.8%)

Memory: ✅ 31.339MB (SLO: <33.500MB -6.4%)


✅ tracecontext_headers

Time: ✅ 34.717µs (SLO: <40.000µs 📉 -13.2%)

Memory: ✅ 31.457MB (SLO: <33.500MB -6.1%)


✅ valid_headers_all

Time: ✅ 6.492µs (SLO: <10.000µs 📉 -35.1%)

Memory: ✅ 31.359MB (SLO: <33.500MB -6.4%)


✅ valid_headers_basic

Time: ✅ 6.060µs (SLO: <10.000µs 📉 -39.4%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_empty_headers

Time: ✅ 1.604µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ wsgi_invalid_priority_header

Time: ✅ 6.573µs (SLO: <10.000µs 📉 -34.3%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_invalid_span_id_header

Time: ✅ 1.603µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ wsgi_invalid_tags_header

Time: ✅ 6.594µs (SLO: <10.000µs 📉 -34.1%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_invalid_trace_id_header

Time: ✅ 6.554µs (SLO: <10.000µs 📉 -34.5%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ wsgi_large_header_no_matches

Time: ✅ 28.700µs (SLO: <40.000µs 📉 -28.2%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ wsgi_large_valid_headers_all

Time: ✅ 29.943µs (SLO: <40.000µs 📉 -25.1%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_medium_header_no_matches

Time: ✅ 10.149µs (SLO: <20.000µs 📉 -49.3%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_medium_valid_headers_all

Time: ✅ 11.492µs (SLO: <20.000µs 📉 -42.5%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ wsgi_valid_headers_all

Time: ✅ 6.561µs (SLO: <10.000µs 📉 -34.4%)

Memory: ✅ 31.418MB (SLO: <33.500MB -6.2%)


✅ wsgi_valid_headers_basic

Time: ✅ 6.144µs (SLO: <10.000µs 📉 -38.6%)

Memory: ✅ 31.379MB (SLO: <33.500MB -6.3%)


🔵 httppropagationinject - 16/16

🔵 No baseline data available for this suite

✅ ids_only

Time: ✅ 21.944µs (SLO: <30.000µs 📉 -26.9%)

Memory: ✅ 31.438MB (SLO: <33.500MB -6.2%)


✅ with_all

Time: ✅ 35.608µs (SLO: <40.000µs 📉 -11.0%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ with_dd_origin

Time: ✅ 28.667µs (SLO: <30.000µs -4.4%)

Memory: ✅ 31.379MB (SLO: <33.500MB -6.3%)


✅ with_priority_and_origin

Time: ✅ 28.221µs (SLO: <40.000µs 📉 -29.4%)

Memory: ✅ 31.339MB (SLO: <33.500MB -6.4%)


✅ with_sampling_priority

Time: ✅ 21.959µs (SLO: <30.000µs 📉 -26.8%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ with_tags

Time: ✅ 30.746µs (SLO: <40.000µs 📉 -23.1%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ with_tags_invalid

Time: ✅ 33.470µs (SLO: <40.000µs 📉 -16.3%)

Memory: ✅ 31.398MB (SLO: <33.500MB -6.3%)


✅ with_tags_max_size

Time: ✅ 31.348µs (SLO: <40.000µs 📉 -21.6%)

Memory: ✅ 31.457MB (SLO: <33.500MB -6.1%)


🔵 iast_aspects - 40/40

🔵 No baseline data available for this suite

✅ re_expand_aspect

Time: ✅ 34.535µs (SLO: <40.000µs 📉 -13.7%)

Memory: ✅ 36.903MB (SLO: <39.000MB -5.4%)


✅ re_expand_noaspect

Time: ✅ 28.612µs (SLO: <40.000µs 📉 -28.5%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_findall_aspect

Time: ✅ 3.719µs (SLO: <10.000µs 📉 -62.8%)

Memory: ✅ 36.884MB (SLO: <39.000MB -5.4%)


✅ re_findall_noaspect

Time: ✅ 1.438µs (SLO: <10.000µs 📉 -85.6%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ re_finditer_aspect

Time: ✅ 5.079µs (SLO: <10.000µs 📉 -49.2%)

Memory: ✅ 36.746MB (SLO: <39.000MB -5.8%)


✅ re_finditer_noaspect

Time: ✅ 1.413µs (SLO: <10.000µs 📉 -85.9%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_fullmatch_aspect

Time: ✅ 3.349µs (SLO: <10.000µs 📉 -66.5%)

Memory: ✅ 36.825MB (SLO: <39.000MB -5.6%)


✅ re_fullmatch_noaspect

Time: ✅ 1.289µs (SLO: <10.000µs 📉 -87.1%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_group_aspect

Time: ✅ 3.420µs (SLO: <10.000µs 📉 -65.8%)

Memory: ✅ 36.785MB (SLO: <39.000MB -5.7%)


✅ re_group_noaspect

Time: ✅ 1.626µs (SLO: <10.000µs 📉 -83.7%)

Memory: ✅ 36.766MB (SLO: <39.000MB -5.7%)


✅ re_groups_aspect

Time: ✅ 3.524µs (SLO: <10.000µs 📉 -64.8%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ re_groups_noaspect

Time: ✅ 1.698µs (SLO: <10.000µs 📉 -83.0%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_match_aspect

Time: ✅ 3.388µs (SLO: <10.000µs 📉 -66.1%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_match_noaspect

Time: ✅ 1.292µs (SLO: <10.000µs 📉 -87.1%)

Memory: ✅ 36.884MB (SLO: <39.000MB -5.4%)


✅ re_search_aspect

Time: ✅ 3.275µs (SLO: <10.000µs 📉 -67.3%)

Memory: ✅ 36.766MB (SLO: <39.000MB -5.7%)


✅ re_search_noaspect

Time: ✅ 1.194µs (SLO: <10.000µs 📉 -88.1%)

Memory: ✅ 36.726MB (SLO: <39.000MB -5.8%)


✅ re_sub_aspect

Time: ✅ 4.640µs (SLO: <10.000µs 📉 -53.6%)

Memory: ✅ 36.884MB (SLO: <39.000MB -5.4%)


✅ re_sub_noaspect

Time: ✅ 1.535µs (SLO: <10.000µs 📉 -84.6%)

Memory: ✅ 36.884MB (SLO: <39.000MB -5.4%)


✅ re_subn_aspect

Time: ✅ 4.874µs (SLO: <10.000µs 📉 -51.3%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ re_subn_noaspect

Time: ✅ 1.620µs (SLO: <10.000µs 📉 -83.8%)

Memory: ✅ 36.844MB (SLO: <39.000MB -5.5%)


🔵 iastaspects - 118/118

🔵 No baseline data available for this suite

✅ add_aspect

Time: ✅ 0.328µs (SLO: <10.000µs 📉 -96.7%)

Memory: ✅ 37.277MB (SLO: <39.000MB -4.4%)


✅ add_inplace_aspect

Time: ✅ 0.333µs (SLO: <10.000µs 📉 -96.7%)

Memory: ✅ 37.277MB (SLO: <39.000MB -4.4%)


✅ add_inplace_noaspect

Time: ✅ 0.317µs (SLO: <10.000µs 📉 -96.8%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ add_noaspect

Time: ✅ 0.275µs (SLO: <10.000µs 📉 -97.2%)

Memory: ✅ 37.277MB (SLO: <39.000MB -4.4%)


✅ bytearray_aspect

Time: ✅ 1.813µs (SLO: <10.000µs 📉 -81.9%)

Memory: ✅ 37.139MB (SLO: <39.000MB -4.8%)


✅ bytearray_extend_aspect

Time: ✅ 1.384µs (SLO: <10.000µs 📉 -86.2%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ bytearray_extend_noaspect

Time: ✅ 0.613µs (SLO: <10.000µs 📉 -93.9%)

Memory: ✅ 37.139MB (SLO: <39.000MB -4.8%)


✅ bytearray_noaspect

Time: ✅ 0.475µs (SLO: <10.000µs 📉 -95.3%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ bytes_aspect

Time: ✅ 1.852µs (SLO: <10.000µs 📉 -81.5%)

Memory: ✅ 37.159MB (SLO: <39.000MB -4.7%)


✅ bytes_noaspect

Time: ✅ 0.499µs (SLO: <10.000µs 📉 -95.0%)

Memory: ✅ 37.139MB (SLO: <39.000MB -4.8%)


✅ bytesio_aspect

Time: ✅ 1.868µs (SLO: <10.000µs 📉 -81.3%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ bytesio_noaspect

Time: ✅ 0.502µs (SLO: <10.000µs 📉 -95.0%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ capitalize_aspect

Time: ✅ 0.732µs (SLO: <10.000µs 📉 -92.7%)

Memory: ✅ 37.179MB (SLO: <39.000MB -4.7%)


✅ capitalize_noaspect

Time: ✅ 0.437µs (SLO: <10.000µs 📉 -95.6%)

Memory: ✅ 37.179MB (SLO: <39.000MB -4.7%)


✅ casefold_aspect

Time: ✅ 0.741µs (SLO: <10.000µs 📉 -92.6%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ casefold_noaspect

Time: ✅ 0.373µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ decode_aspect

Time: ✅ 0.725µs (SLO: <10.000µs 📉 -92.7%)

Memory: ✅ 36.982MB (SLO: <39.000MB -5.2%)


✅ decode_noaspect

Time: ✅ 0.418µs (SLO: <10.000µs 📉 -95.8%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ encode_aspect

Time: ✅ 0.713µs (SLO: <10.000µs 📉 -92.9%)

Memory: ✅ 37.002MB (SLO: <39.000MB -5.1%)


✅ encode_noaspect

Time: ✅ 0.414µs (SLO: <10.000µs 📉 -95.9%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ format_aspect

Time: ✅ 3.375µs (SLO: <10.000µs 📉 -66.2%)

Memory: ✅ 37.277MB (SLO: <39.000MB -4.4%)


✅ format_map_aspect

Time: ✅ 3.184µs (SLO: <10.000µs 📉 -68.2%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ format_map_noaspect

Time: ✅ 0.774µs (SLO: <10.000µs 📉 -92.3%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ format_noaspect

Time: ✅ 0.598µs (SLO: <10.000µs 📉 -94.0%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ index_aspect

Time: ✅ 0.339µs (SLO: <10.000µs 📉 -96.6%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ index_noaspect

Time: ✅ 0.279µs (SLO: <10.000µs 📉 -97.2%)

Memory: ✅ 37.159MB (SLO: <39.000MB -4.7%)


✅ join_aspect

Time: ✅ 1.239µs (SLO: <10.000µs 📉 -87.6%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ join_noaspect

Time: ✅ 0.489µs (SLO: <10.000µs 📉 -95.1%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ ljust_aspect

Time: ✅ 10.209µs (SLO: <20.000µs 📉 -49.0%)

Memory: ✅ 37.316MB (SLO: <39.000MB -4.3%)


✅ ljust_noaspect

Time: ✅ 0.403µs (SLO: <10.000µs 📉 -96.0%)

Memory: ✅ 37.061MB (SLO: <39.000MB -5.0%)


✅ lower_aspect

Time: ✅ 2.262µs (SLO: <10.000µs 📉 -77.4%)

Memory: ✅ 37.297MB (SLO: <39.000MB -4.4%)


✅ lower_noaspect

Time: ✅ 0.370µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 37.159MB (SLO: <39.000MB -4.7%)


✅ lstrip_aspect

Time: ✅ 10.231µs (SLO: <20.000µs 📉 -48.8%)

Memory: ✅ 37.336MB (SLO: <39.000MB -4.3%)


✅ lstrip_noaspect

Time: ✅ 0.379µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ modulo_aspect

Time: ✅ 0.927µs (SLO: <10.000µs 📉 -90.7%)

Memory: ✅ 37.002MB (SLO: <39.000MB -5.1%)


✅ modulo_aspect_for_bytearray_bytearray

Time: ✅ 1.434µs (SLO: <10.000µs 📉 -85.7%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ modulo_aspect_for_bytes

Time: ✅ 0.911µs (SLO: <10.000µs 📉 -90.9%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ modulo_aspect_for_bytes_bytearray

Time: ✅ 1.124µs (SLO: <10.000µs 📉 -88.8%)

Memory: ✅ 37.179MB (SLO: <39.000MB -4.7%)


✅ modulo_noaspect

Time: ✅ 0.627µs (SLO: <10.000µs 📉 -93.7%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ replace_aspect

Time: ✅ 4.531µs (SLO: <10.000µs 📉 -54.7%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ replace_noaspect

Time: ✅ 0.460µs (SLO: <10.000µs 📉 -95.4%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ repr_aspect

Time: ✅ 0.905µs (SLO: <10.000µs 📉 -91.0%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ repr_noaspect

Time: ✅ 0.415µs (SLO: <10.000µs 📉 -95.9%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ rstrip_aspect

Time: ✅ 10.190µs (SLO: <20.000µs 📉 -49.1%)

Memory: ✅ 37.336MB (SLO: <39.000MB -4.3%)


✅ rstrip_noaspect

Time: ✅ 0.380µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ slice_aspect

Time: ✅ 0.479µs (SLO: <10.000µs 📉 -95.2%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ slice_noaspect

Time: ✅ 0.445µs (SLO: <10.000µs 📉 -95.5%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ stringio_aspect

Time: ✅ 2.182µs (SLO: <10.000µs 📉 -78.2%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ stringio_noaspect

Time: ✅ 0.728µs (SLO: <10.000µs 📉 -92.7%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ strip_aspect

Time: ✅ 10.204µs (SLO: <20.000µs 📉 -49.0%)

Memory: ✅ 37.316MB (SLO: <39.000MB -4.3%)


✅ strip_noaspect

Time: ✅ 0.386µs (SLO: <10.000µs 📉 -96.1%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ swapcase_aspect

Time: ✅ 2.436µs (SLO: <10.000µs 📉 -75.6%)

Memory: ✅ 37.198MB (SLO: <39.000MB -4.6%)


✅ swapcase_noaspect

Time: ✅ 0.538µs (SLO: <10.000µs 📉 -94.6%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ title_aspect

Time: ✅ 2.381µs (SLO: <10.000µs 📉 -76.2%)

Memory: ✅ 37.257MB (SLO: <39.000MB -4.5%)


✅ title_noaspect

Time: ✅ 0.499µs (SLO: <10.000µs 📉 -95.0%)

Memory: ✅ 37.218MB (SLO: <39.000MB -4.6%)


✅ translate_aspect

Time: ✅ 3.330µs (SLO: <10.000µs 📉 -66.7%)

Memory: ✅ 37.139MB (SLO: <39.000MB -4.8%)


✅ translate_noaspect

Time: ✅ 1.039µs (SLO: <10.000µs 📉 -89.6%)

Memory: ✅ 37.179MB (SLO: <39.000MB -4.7%)


✅ upper_aspect

Time: ✅ 2.305µs (SLO: <10.000µs 📉 -76.9%)

Memory: ✅ 37.238MB (SLO: <39.000MB -4.5%)


✅ upper_noaspect

Time: ✅ 0.369µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 37.297MB (SLO: <39.000MB -4.4%)


🔵 iastaspectsospath - 24/24

🔵 No baseline data available for this suite

✅ ospathbasename_aspect

Time: ✅ 4.045µs (SLO: <10.000µs 📉 -59.5%)

Memory: ✅ 36.884MB (SLO: <39.000MB -5.4%)


✅ ospathbasename_noaspect

Time: ✅ 1.074µs (SLO: <10.000µs 📉 -89.3%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ ospathjoin_aspect

Time: ✅ 5.891µs (SLO: <10.000µs 📉 -41.1%)

Memory: ✅ 36.825MB (SLO: <39.000MB -5.6%)


✅ ospathjoin_noaspect

Time: ✅ 2.269µs (SLO: <10.000µs 📉 -77.3%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ ospathnormcase_aspect

Time: ✅ 3.326µs (SLO: <10.000µs 📉 -66.7%)

Memory: ✅ 36.844MB (SLO: <39.000MB -5.5%)


✅ ospathnormcase_noaspect

Time: ✅ 0.562µs (SLO: <10.000µs 📉 -94.4%)

Memory: ✅ 36.785MB (SLO: <39.000MB -5.7%)


✅ ospathsplit_aspect

Time: ✅ 5.861µs (SLO: <10.000µs 📉 -41.4%)

Memory: ✅ 36.766MB (SLO: <39.000MB -5.7%)


✅ ospathsplit_noaspect

Time: ✅ 1.601µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 36.785MB (SLO: <39.000MB -5.7%)


✅ ospathsplitdrive_aspect

Time: ✅ 3.541µs (SLO: <10.000µs 📉 -64.6%)

Memory: ✅ 36.923MB (SLO: <39.000MB -5.3%)


✅ ospathsplitdrive_noaspect

Time: ✅ 0.691µs (SLO: <10.000µs 📉 -93.1%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ ospathsplitext_aspect

Time: ✅ 5.119µs (SLO: <10.000µs 📉 -48.8%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ ospathsplitext_noaspect

Time: ✅ 1.375µs (SLO: <10.000µs 📉 -86.3%)

Memory: ✅ 36.825MB (SLO: <39.000MB -5.6%)


🔵 iastaspectssplit - 12/12

🔵 No baseline data available for this suite

✅ rsplit_aspect

Time: ✅ 1.469µs (SLO: <10.000µs 📉 -85.3%)

Memory: ✅ 36.766MB (SLO: <39.000MB -5.7%)


✅ rsplit_noaspect

Time: ✅ 0.581µs (SLO: <10.000µs 📉 -94.2%)

Memory: ✅ 36.844MB (SLO: <39.000MB -5.5%)


✅ split_aspect

Time: ✅ 1.431µs (SLO: <10.000µs 📉 -85.7%)

Memory: ✅ 36.805MB (SLO: <39.000MB -5.6%)


✅ split_noaspect

Time: ✅ 0.569µs (SLO: <10.000µs 📉 -94.3%)

Memory: ✅ 36.825MB (SLO: <39.000MB -5.6%)


✅ splitlines_aspect

Time: ✅ 1.418µs (SLO: <10.000µs 📉 -85.8%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ splitlines_noaspect

Time: ✅ 0.581µs (SLO: <10.000µs 📉 -94.2%)

Memory: ✅ 36.844MB (SLO: <39.000MB -5.5%)


🔵 iastpropagation - 8/8

🔵 No baseline data available for this suite

✅ no-propagation

Time: ✅ 48.881µs (SLO: <60.000µs 📉 -18.5%)

Memory: ✅ 36.844MB (SLO: <39.000MB -5.5%)


✅ propagation_enabled

Time: ✅ 143.107µs (SLO: <160.000µs 📉 -10.6%)

Memory: ✅ 36.864MB (SLO: <39.000MB -5.5%)


✅ propagation_enabled_100

Time: ✅ 1.576ms (SLO: <1.800ms 📉 -12.4%)

Memory: ✅ 36.903MB (SLO: <39.000MB -5.4%)


✅ propagation_enabled_1000

Time: ✅ 29.129ms (SLO: <30.550ms -4.7%)

Memory: ✅ 36.825MB (SLO: <39.000MB -5.6%)


🔵 otelsdkspan - 24/24

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 40.643ms (SLO: <42.000ms -3.2%)

Memory: ✅ 34.190MB (SLO: <39.000MB 📉 -12.3%)


✅ add-link

Time: ✅ 36.769ms (SLO: <38.550ms -4.6%)

Memory: ✅ 34.053MB (SLO: <39.000MB 📉 -12.7%)


✅ add-metrics

Time: ✅ 221.630ms (SLO: <232.000ms -4.5%)

Memory: ✅ 34.151MB (SLO: <39.000MB 📉 -12.4%)


✅ add-tags

Time: ✅ 211.771ms (SLO: <221.600ms -4.4%)

Memory: ✅ 34.111MB (SLO: <39.000MB 📉 -12.5%)


✅ get-context

Time: ✅ 29.357ms (SLO: <31.300ms -6.2%)

Memory: ✅ 34.131MB (SLO: <39.000MB 📉 -12.5%)


✅ is-recording

Time: ✅ 29.340ms (SLO: <31.000ms -5.4%)

Memory: ✅ 34.190MB (SLO: <39.000MB 📉 -12.3%)


✅ record-exception

Time: ✅ 63.227ms (SLO: <65.850ms -4.0%)

Memory: ✅ 34.170MB (SLO: <39.000MB 📉 -12.4%)


✅ set-status

Time: ✅ 32.075ms (SLO: <34.150ms -6.1%)

Memory: ✅ 34.151MB (SLO: <39.000MB 📉 -12.4%)


✅ start

Time: ✅ 29.201ms (SLO: <30.150ms -3.1%)

Memory: ✅ 34.072MB (SLO: <39.000MB 📉 -12.6%)


✅ start-finish

Time: ✅ 34.027ms (SLO: <35.350ms -3.7%)

Memory: ✅ 34.151MB (SLO: <39.000MB 📉 -12.4%)


✅ start-finish-telemetry

Time: ✅ 33.888ms (SLO: <35.450ms -4.4%)

Memory: ✅ 34.151MB (SLO: <39.000MB 📉 -12.4%)


✅ update-name

Time: ✅ 31.138ms (SLO: <33.400ms -6.8%)

Memory: ✅ 34.131MB (SLO: <39.000MB 📉 -12.5%)


🔵 otelspan - 22/22

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 45.082ms (SLO: <47.150ms -4.4%)

Memory: ✅ 44.404MB (SLO: <46.500MB -4.5%)


✅ add-metrics

Time: ✅ 320.171ms (SLO: <344.800ms -7.1%)

Memory: ✅ 552.649MB (SLO: <562.000MB 🟡 -1.7%)


✅ add-tags

Time: ✅ 291.212ms (SLO: <314.000ms -7.3%)

Memory: ✅ 553.218MB (SLO: <563.500MB 🟡 -1.8%)


✅ get-context

Time: ✅ 85.630ms (SLO: <92.350ms -7.3%)

Memory: ✅ 39.545MB (SLO: <46.500MB 📉 -15.0%)


✅ is-recording

Time: ✅ 43.099ms (SLO: <44.500ms -3.1%)

Memory: ✅ 43.776MB (SLO: <46.500MB -5.9%)


✅ record-exception

Time: ✅ 61.785ms (SLO: <67.650ms -8.7%)

Memory: ✅ 39.883MB (SLO: <46.500MB 📉 -14.2%)


✅ set-status

Time: ✅ 49.353ms (SLO: <50.400ms -2.1%)

Memory: ✅ 43.842MB (SLO: <46.500MB -5.7%)


✅ start

Time: ✅ 42.916ms (SLO: <43.450ms 🟡 -1.2%)

Memory: ✅ 43.832MB (SLO: <46.500MB -5.7%)


✅ start-finish

Time: ✅ 82.984ms (SLO: <88.000ms -5.7%)

Memory: ✅ 33.738MB (SLO: <46.500MB 📉 -27.4%)


✅ start-finish-telemetry

Time: ✅ 84.553ms (SLO: <89.000ms -5.0%)

Memory: ✅ 33.738MB (SLO: <46.500MB 📉 -27.4%)


✅ update-name

Time: ✅ 44.089ms (SLO: <45.150ms -2.3%)

Memory: ✅ 44.072MB (SLO: <46.500MB -5.2%)


🔵 packagespackageforrootmodulemapping - 4/4

🔵 No baseline data available for this suite

✅ cache_off

Time: ✅ 340.702ms (SLO: <354.300ms -3.8%)

Memory: ✅ 36.766MB (SLO: <40.000MB -8.1%)


✅ cache_on

Time: ✅ 0.387µs (SLO: <10.000µs 📉 -96.1%)

Memory: ✅ 35.412MB (SLO: <39.000MB -9.2%)


🔵 packagesupdateimporteddependencies - 24/24

🔵 No baseline data available for this suite

✅ import_many

Time: ✅ 155.576µs (SLO: <170.000µs -8.5%)

Memory: ✅ 36.615MB (SLO: <38.500MB -4.9%)


✅ import_many_cached

Time: ✅ 120.344µs (SLO: <130.000µs -7.4%)

Memory: ✅ 36.245MB (SLO: <38.500MB -5.9%)


✅ import_many_stdlib

Time: ✅ 1.606ms (SLO: <1.750ms -8.2%)

Memory: ✅ 36.705MB (SLO: <38.500MB -4.7%)


✅ import_many_stdlib_cached

Time: ✅ 0.969ms (SLO: <1.100ms 📉 -11.9%)

Memory: ✅ 36.702MB (SLO: <38.500MB -4.7%)


✅ import_many_unknown

Time: ✅ 832.379µs (SLO: <890.000µs -6.5%)

Memory: ✅ 36.712MB (SLO: <38.500MB -4.6%)


✅ import_many_unknown_cached

Time: ✅ 786.159µs (SLO: <870.000µs -9.6%)

Memory: ✅ 36.746MB (SLO: <38.500MB -4.6%)


✅ import_one

Time: ✅ 19.678µs (SLO: <30.000µs 📉 -34.4%)

Memory: ✅ 36.609MB (SLO: <39.000MB -6.1%)


✅ import_one_cache

Time: ✅ 6.270µs (SLO: <10.000µs 📉 -37.3%)

Memory: ✅ 36.351MB (SLO: <38.500MB -5.6%)


✅ import_one_stdlib

Time: ✅ 18.690µs (SLO: <20.000µs -6.6%)

Memory: ✅ 36.307MB (SLO: <38.500MB -5.7%)


✅ import_one_stdlib_cache

Time: ✅ 6.281µs (SLO: <10.000µs 📉 -37.2%)

Memory: ✅ 36.707MB (SLO: <38.500MB -4.7%)


✅ import_one_unknown

Time: ✅ 45.389µs (SLO: <50.000µs -9.2%)

Memory: ✅ 36.473MB (SLO: <38.500MB -5.3%)


✅ import_one_unknown_cache

Time: ✅ 6.318µs (SLO: <10.000µs 📉 -36.8%)

Memory: ✅ 36.575MB (SLO: <38.500MB -5.0%)


🔵 ratelimiter - 12/12

🔵 No baseline data available for this suite

✅ defaults

Time: ✅ 2.363µs (SLO: <10.000µs 📉 -76.4%)

Memory: ✅ 30.946MB (SLO: <34.000MB -9.0%)


✅ high_rate_limit

Time: ✅ 2.403µs (SLO: <10.000µs 📉 -76.0%)

Memory: ✅ 31.005MB (SLO: <34.000MB -8.8%)


✅ long_window

Time: ✅ 2.361µs (SLO: <10.000µs 📉 -76.4%)

Memory: ✅ 30.985MB (SLO: <34.000MB -8.9%)


✅ low_rate_limit

Time: ✅ 2.344µs (SLO: <10.000µs 📉 -76.6%)

Memory: ✅ 30.926MB (SLO: <34.000MB -9.0%)


✅ no_rate_limit

Time: ✅ 0.834µs (SLO: <10.000µs 📉 -91.7%)

Memory: ✅ 30.985MB (SLO: <34.000MB -8.9%)


✅ short_window

Time: ✅ 2.490µs (SLO: <10.000µs 📉 -75.1%)

Memory: ✅ 30.966MB (SLO: <34.000MB -8.9%)


🔵 recursivecomputation - 8/8

🔵 No baseline data available for this suite

✅ deep

Time: ✅ 309.175ms (SLO: <320.950ms -3.7%)

Memory: ✅ 32.421MB (SLO: <34.500MB -6.0%)


✅ deep-profiled

Time: ✅ 327.733ms (SLO: <359.150ms -8.7%)

Memory: ✅ 35.055MB (SLO: <39.000MB 📉 -10.1%)


✅ medium

Time: ✅ 7.078ms (SLO: <7.400ms -4.4%)

Memory: ✅ 31.162MB (SLO: <34.000MB -8.3%)


✅ shallow

Time: ✅ 0.958ms (SLO: <1.050ms -8.8%)

Memory: ✅ 31.261MB (SLO: <34.000MB -8.1%)


🔵 samplingrules - 8/8

🔵 No baseline data available for this suite

✅ average_match

Time: ✅ 275.391µs (SLO: <290.000µs -5.0%)

Memory: ✅ 31.280MB (SLO: <34.000MB -8.0%)


✅ high_match

Time: ✅ 448.770µs (SLO: <480.000µs -6.5%)

Memory: ✅ 31.221MB (SLO: <34.000MB -8.2%)


✅ low_match

Time: ✅ 110.654µs (SLO: <120.000µs -7.8%)

Memory: ✅ 631.874MB (SLO: <700.000MB -9.7%)


✅ very_low_match

Time: ✅ 7.732ms (SLO: <8.500ms -9.0%)

Memory: ✅ 69.489MB (SLO: <75.000MB -7.3%)


🔵 sethttpmeta - 32/32

🔵 No baseline data available for this suite

✅ all-disabled

Time: ✅ 12.287µs (SLO: <20.000µs 📉 -38.6%)

Memory: ✅ 31.811MB (SLO: <34.000MB -6.4%)


✅ all-enabled

Time: ✅ 42.144µs (SLO: <50.000µs 📉 -15.7%)

Memory: ✅ 31.831MB (SLO: <34.000MB -6.4%)


✅ collectipvariant_exists

Time: ✅ 42.516µs (SLO: <50.000µs 📉 -15.0%)

Memory: ✅ 31.713MB (SLO: <34.000MB -6.7%)


✅ no-collectipvariant

Time: ✅ 41.777µs (SLO: <50.000µs 📉 -16.4%)

Memory: ✅ 31.752MB (SLO: <34.000MB -6.6%)


✅ no-useragentvariant

Time: ✅ 41.127µs (SLO: <50.000µs 📉 -17.7%)

Memory: ✅ 31.831MB (SLO: <34.000MB -6.4%)


✅ obfuscation-no-query

Time: ✅ 42.391µs (SLO: <50.000µs 📉 -15.2%)

Memory: ✅ 31.792MB (SLO: <34.000MB -6.5%)


✅ obfuscation-regular-case-explicit-query

Time: ✅ 78.754µs (SLO: <90.000µs 📉 -12.5%)

Memory: ✅ 32.165MB (SLO: <34.000MB -5.4%)


✅ obfuscation-regular-case-implicit-query

Time: ✅ 79.271µs (SLO: <90.000µs 📉 -11.9%)

Memory: ✅ 32.165MB (SLO: <34.000MB -5.4%)


✅ obfuscation-send-querystring-disabled

Time: ✅ 156.992µs (SLO: <170.000µs -7.7%)

Memory: ✅ 32.165MB (SLO: <34.500MB -6.8%)


✅ obfuscation-worst-case-explicit-query

Time: ✅ 151.058µs (SLO: <160.000µs -5.6%)

Memory: ✅ 32.126MB (SLO: <34.500MB -6.9%)


✅ obfuscation-worst-case-implicit-query

Time: ✅ 157.431µs (SLO: <170.000µs -7.4%)

Memory: ✅ 32.224MB (SLO: <34.500MB -6.6%)


✅ useragentvariant_exists_1

Time: ✅ 41.464µs (SLO: <50.000µs 📉 -17.1%)

Memory: ✅ 31.772MB (SLO: <34.000MB -6.6%)


✅ useragentvariant_exists_2

Time: ✅ 42.506µs (SLO: <50.000µs 📉 -15.0%)

Memory: ✅ 31.733MB (SLO: <34.000MB -6.7%)


✅ useragentvariant_exists_3

Time: ✅ 41.801µs (SLO: <50.000µs 📉 -16.4%)

Memory: ✅ 31.752MB (SLO: <34.000MB -6.6%)


✅ useragentvariant_not_exists_1

Time: ✅ 41.280µs (SLO: <50.000µs 📉 -17.4%)

Memory: ✅ 31.811MB (SLO: <34.000MB -6.4%)


✅ useragentvariant_not_exists_2

Time: ✅ 41.373µs (SLO: <50.000µs 📉 -17.3%)

Memory: ✅ 31.811MB (SLO: <34.000MB -6.4%)


🔵 span - 26/26

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 24.361ms (SLO: <26.200ms -7.0%)

Memory: ✅ 50.762MB (SLO: <53.000MB -4.2%)


✅ add-metrics

Time: ✅ 90.966ms (SLO: <98.350ms -7.5%)

Memory: ✅ 607.078MB (SLO: <961.000MB 📉 -36.8%)


✅ add-tags

Time: ✅ 150.198ms (SLO: <168.550ms 📉 -10.9%)

Memory: ✅ 607.831MB (SLO: <962.500MB 📉 -36.8%)


✅ get-context

Time: ✅ 22.358ms (SLO: <23.700ms -5.7%)

Memory: ✅ 49.591MB (SLO: <53.000MB -6.4%)


✅ is-recording

Time: ✅ 22.812ms (SLO: <23.900ms -4.6%)

Memory: ✅ 49.634MB (SLO: <53.000MB -6.4%)


✅ record-exception

Time: ✅ 42.420ms (SLO: <44.500ms -4.7%)

Memory: ✅ 42.602MB (SLO: <53.000MB 📉 -19.6%)


✅ set-status

Time: ✅ 24.254ms (SLO: <26.000ms -6.7%)

Memory: ✅ 49.601MB (SLO: <53.000MB -6.4%)


✅ start

Time: ✅ 22.262ms (SLO: <23.500ms -5.3%)

Memory: ✅ 49.625MB (SLO: <53.000MB -6.4%)


✅ start-finish

Time: ✅ 52.055ms (SLO: <55.500ms -6.2%)

Memory: ✅ 31.261MB (SLO: <34.000MB -8.1%)


✅ start-finish-telemetry

Time: ✅ 53.424ms (SLO: <58.300ms -8.4%)

Memory: ✅ 31.280MB (SLO: <34.000MB -8.0%)


✅ start-finish-traceid128

Time: ✅ 55.419ms (SLO: <60.050ms -7.7%)

Memory: ✅ 31.300MB (SLO: <34.000MB -7.9%)


✅ start-traceid128

Time: ✅ 22.769ms (SLO: <24.600ms -7.4%)

Memory: ✅ 49.684MB (SLO: <53.000MB -6.3%)


✅ update-name

Time: ✅ 23.173ms (SLO: <24.100ms -3.8%)

Memory: ✅ 50.312MB (SLO: <53.000MB -5.1%)


🔵 telemetryaddmetric - 30/30

🔵 No baseline data available for this suite

✅ 1-count-metric-1-times

Time: ✅ 3.572µs (SLO: <20.000µs 📉 -82.1%)

Memory: ✅ 31.300MB (SLO: <34.000MB -7.9%)


✅ 1-count-metrics-100-times

Time: ✅ 216.318µs (SLO: <250.000µs 📉 -13.5%)

Memory: ✅ 31.202MB (SLO: <34.000MB -8.2%)


✅ 1-distribution-metric-1-times

Time: ✅ 3.414µs (SLO: <20.000µs 📉 -82.9%)

Memory: ✅ 31.261MB (SLO: <34.000MB -8.1%)


✅ 1-distribution-metrics-100-times

Time: ✅ 203.478µs (SLO: <220.000µs -7.5%)

Memory: ✅ 31.320MB (SLO: <34.000MB -7.9%)


✅ 1-gauge-metric-1-times

Time: ✅ 2.123µs (SLO: <20.000µs 📉 -89.4%)

Memory: ✅ 31.339MB (SLO: <34.000MB -7.8%)


✅ 1-gauge-metrics-100-times

Time: ✅ 124.056µs (SLO: <150.000µs 📉 -17.3%)

Memory: ✅ 31.280MB (SLO: <34.000MB -8.0%)


✅ 1-rate-metric-1-times

Time: ✅ 3.547µs (SLO: <20.000µs 📉 -82.3%)

Memory: ✅ 31.339MB (SLO: <34.000MB -7.8%)


✅ 1-rate-metrics-100-times

Time: ✅ 215.660µs (SLO: <250.000µs 📉 -13.7%)

Memory: ✅ 31.261MB (SLO: <34.000MB -8.1%)


✅ 100-count-metrics-100-times

Time: ✅ 22.429ms (SLO: <23.500ms -4.6%)

Memory: ✅ 31.202MB (SLO: <34.000MB -8.2%)


✅ 100-distribution-metrics-100-times

Time: ✅ 2.107ms (SLO: <2.250ms -6.4%)

Memory: ✅ 31.300MB (SLO: <34.000MB -7.9%)


✅ 100-gauge-metrics-100-times

Time: ✅ 1.284ms (SLO: <1.550ms 📉 -17.1%)

Memory: ✅ 31.300MB (SLO: <34.000MB -7.9%)


✅ 100-rate-metrics-100-times

Time: ✅ 2.301ms (SLO: <2.550ms -9.8%)

Memory: ✅ 31.280MB (SLO: <34.000MB -8.0%)


✅ flush-1-metric

Time: ✅ 4.195µs (SLO: <20.000µs 📉 -79.0%)

Memory: ✅ 31.300MB (SLO: <34.000MB -7.9%)


✅ flush-100-metrics

Time: ✅ 184.266µs (SLO: <250.000µs 📉 -26.3%)

Memory: ✅ 31.202MB (SLO: <34.000MB -8.2%)


✅ flush-1000-metrics

Time: ✅ 2.223ms (SLO: <2.500ms 📉 -11.1%)

Memory: ✅ 32.381MB (SLO: <34.500MB -6.1%)


🔵 tracer - 6/6

🔵 No baseline data available for this suite

✅ large

Time: ✅ 30.234ms (SLO: <32.950ms -8.2%)

Memory: ✅ 32.735MB (SLO: <34.500MB -5.1%)


✅ medium

Time: ✅ 2.960ms (SLO: <3.200ms -7.5%)

Memory: ✅ 31.280MB (SLO: <34.000MB -8.0%)


✅ small

Time: ✅ 337.509µs (SLO: <370.000µs -8.8%)

Memory: ✅ 31.143MB (SLO: <34.000MB -8.4%)

@brettlangdon brettlangdon marked this pull request as ready for review August 22, 2025 18:55
@brettlangdon brettlangdon requested review from a team as code owners August 22, 2025 18:55
@brettlangdon brettlangdon enabled auto-merge (squash) August 22, 2025 20:01
@brettlangdon brettlangdon merged commit abeb18e into main Aug 25, 2025
874 of 876 checks passed
@brettlangdon brettlangdon deleted the LANGPLAT-642/optimize.start.finish.span branch August 25, 2025 15:09
brettlangdon added a commit that referenced this pull request Aug 27, 2025
#14404 helped show that people should be clear/intentional over which
core API is used for getting items off of an `ExecutionContext`.

This PR aims to rename and update doc strings to try and clarify further
what will happen when the function is called.

- `get_item` -> `find_item`: since this API will traverse the context
tree looking for the first value for the key. normally this adds the
overhead of a loop instruction, but in general will return back quickly.
The problem comes from cache misses where we traverse the whole tree
just to return the default value.
- `get_local_item` -> `get_item`: make it so any new usage of `get_item`
does the more correct thing by default
- `get_items` -> `find_items`: similar as `find_item`, making it more
clear we iterate the whole context tree for each key



Main open question still is, what should `__getitem__` do? this one is
harder to refactor without knowing 100% of all usages of `ctx["key"]` in
the codebase, so we should handle as a follow-up since it might have
higher impact. Opinion: we should remove the `__getitem__` API and force
people to use `get_item` or `find_item` for clarity.. the overhead
should be the same since they are all Python function calls.

## 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 the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [ ] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog A changelog entry is not required for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants