Skip to content

Replace onAttach / onDetach context event pair with onUpdate(before, after)#11859

Open
mcculls wants to merge 1 commit into
masterfrom
mcculls/context-update-event
Open

Replace onAttach / onDetach context event pair with onUpdate(before, after)#11859
mcculls wants to merge 1 commit into
masterfrom
mcculls/context-update-event

Conversation

@mcculls

@mcculls mcculls commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Motivation

Reduces event cost while allowing listeners to detect the difference between updates to/from root and those updating from one non-root context to another.

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels in addition to any other useful labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
    Use solves instead, and assign the PR milestone to the issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors
  • Add your completed PR to the merge queue by commenting /merge. You can also:
    • Customize the commit message associated with the merge with /merge --commit-message "..."
    • Remove your PR from the merge queue with /merge -c
    • Skip all merge queue checks with /merge -f --reason "reason"; please use this judiciously, as some checks do not run at the PR-level (note: the PR still needs to be mergeable, this will only skip the pre-merge build)
    • Get more information in this doc

Jira ticket: [PROJ-IDENT]

@mcculls mcculls added the type: enhancement Enhancements and improvements label Jul 4, 2026
@mcculls mcculls requested a review from a team as a code owner July 4, 2026 19:17
@mcculls mcculls added comp: core Tracer core tag: no release notes Changes to exclude from release notes labels Jul 4, 2026
@mcculls mcculls requested review from PerfectSlayer and bric3 and removed request for a team July 4, 2026 19:17
@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Jul 4, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 56.66% (-0.31%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1c76b54 | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.78 s 14.65 s [+0.0%; +1.8%] (maybe worse)
startup:insecure-bank:tracing:Agent 13.55 s 13.68 s [-1.8%; -0.0%] (maybe better)
startup:petclinic:appsec:Agent 17.46 s 17.34 s [-0.2%; +1.5%] (no difference)
startup:petclinic:iast:Agent 17.37 s 17.50 s [-1.7%; +0.2%] (no difference)
startup:petclinic:profiling:Agent 16.88 s 17.31 s [-6.9%; +2.0%] (no difference)
startup:petclinic:sca:Agent 17.44 s 17.46 s [-1.0%; +0.8%] (no difference)
startup:petclinic:tracing:Agent 16.56 s 16.56 s [-0.8%; +0.8%] (no difference)

Commit: 1c76b54d · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@mcculls mcculls force-pushed the mcculls/context-update-event branch from 4d37ba4 to 1c76b54 Compare July 4, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core tag: no release notes Changes to exclude from release notes type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant