← Back to Pull requests

feat(browser-bunyan): add log injection support #9705

Merged
BridgeAR merged 21 files (465 lines) on Aug 17, 2026 08:57 UTC
View on GitHub
BridgeAR BridgeAR commented on Aug 05, 2026 19:19 UTC
Author

Summary

  • add server-side browser-bunyan log injection

  • reuse Bunyan's record wrapper and plugin behavior while keeping configuration and channels independent

  • add CJS/ESM coverage, types, documentation, CI, and compatibility metadata
  • Why

    Server-side browser-bunyan logs cannot currently receive trace correlation without a local patch. Sharing the existing Bunyan path prevents the implementations from drifting while preserving independent enablement.

    Test plan

  • PLUGINS="bunyan|browser-bunyan" npm run test:plugins

  • scoped c8 coverage for all changed runtime lines

  • plugin structure and generated-file verification

  • current and v5 type checks

  • npm run lint
  • Refs: #9701
    Refs: #1935

    Diff: 465 lines (+391 / -74) across 21 files Reviewer: rochdev Review duration: 16657m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.68) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 465 lines diff across 21 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.71 · 5 substantive comment(s)
    0.71
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    81%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.368
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    8 items
    dd-octo-sts[bot] dd-octo-sts[bot] commented on Aug 05, 2026 19:19 UTC
    Bot

    Overall package size

    Self size: 7.85 MB
    Deduped: 8.51 MB
    No deduping: 8.51 MB

    <details><summary>Dependency sizes</summary>
    | name | version | self size | total size |
    |------|---------|-----------|------------|
    | import-in-the-middle | 3.3.3 | 125.43 kB | 441.68 kB |
    | opentracing | 0.14.7 | 194.81 kB | 194.81 kB |
    | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

    </details>

    <sub>🤖 This report was automatically generated by heaviest-objects-in-the-universe<sub>

    datadog-datadog-prod-us1[bot] datadog-datadog-prod-us1[bot] commented on Aug 05, 2026 19:23 UTC
    Bot

    <a target='_blank' href='https://app.datadoghq.com/ci/test/runs?end=1786396716155&query=test_level%3Atest+%40git.commit.sha%3A97c494c483c90d4fb2f51b66a57a5f500ce292b4&referrer=pr-comment&start=1785957835000'><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-ok.svg"/><img src="https://static.datadoghq.com/static/images/pr_comments/software_delivery/badges_header/tests-ok-light.svg" alt="Tests" align="center" /></picture></a>

    <details><summary><b>🎉 All green!</b></summary>

    🧪 All tests passed
    ❄️ No new flaky tests detected
    </details>

    🎯 Code Coverage (<a target='_blank' href='https://app.datadoghq.com/ci/code-coverage/github.com%2Fdatadog%2Fdd-trace-js/pull-requests/9705'>details</a>)<br>• <strong><span title="Percentage of modified executable lines covered by tests in this PR">Patch Coverage</span></strong>: 100.00%<br>• <strong><span title="Percentage of all executable lines covered by tests in the entire codebase">Overall Coverage</span></strong>: 98.52% <span title="Change in overall coverage compared to the base branch">(+0.00%)</span><br>

    <sub>
    This comment will be updated automatically if new data arrives. <br />
    🔗 Commit SHA: 72cd4d5 | <a href="https://docs.datadoghq.com/integrations/guide/source-code-integration/#pr-comments">Docs</a> | <a href="https://app.datadoghq.com/ci/pull-request/Z2l0aHViLmNvbS9kYXRhZG9nL2RkLXRyYWNlLWpzLzk3MDU=">Datadog PR Page</a> | Give us <a href="https://dd.enterprise.slack.com/archives/C07E3U2QRMM">feedback</a>!
    </sub>

    pr-commenter[bot] pr-commenter[bot] commented on Aug 05, 2026 19:33 UTC
    Bot

    Benchmarks

    Benchmark execution time: 2026-08-05 20:07:05

    Comparing candidate commit 72cd4d5b781f77db63636571dd32282cf1b0803c in PR branch BridgeAR/2026-08-05-browser-bunyan with baseline commit d678882c997c1c0f5b7f6f779cff9995bc84f806 in branch master.

    📊 Benchmarking dashboard

    Found 1 performance improvements and 0 performance regressions! Performance is the same for 2312 metrics, 45 unstable metrics.

    <details>
    <summary><h3>Explanation</h3></summary>

    This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

    🟩 = significantly better candidate vs. baseline
    🟥 = significantly worse candidate vs. baseline

    We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

    If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

    Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

    <details>
    <summary><h4>More details about the CI and significant changes</h4></summary>

    You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

    CIs of the difference of means are often centered around 0%, because often changes are not that big:

    ---------------------------------(------|---^--------)-------------------------------->
                                  -0.6%    0%  0.3%     +1.2%
                                     |          |        |
             lower bound of the CI --'          |        |
    sample mean (center of the CI) -------------'        |
             upper bound of the CI ----------------------'
    

    As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

    For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

    ----------------------------------------|---------|---(---------^---------)---------->
                                           0%        1%  1.3%      2.2%      3.1%
                                                      |   |         |         |
           significant impact threshold --------------'   |         |         |
                          lower bound of CI --------------'         |         |
           sample mean (center of the CI) --------------------------'         |
                          upper bound of CI ----------------------------------'
    

    </details>

    </details>

    scenario:encoders-0.4-events-native-20

  • 🟩 max_rss_usage [-9.994MB; -2.958MB] or [-7.087%; -2.098%]
  • <details>
    <summary><h3>Unstable benchmarks</h3></summary>

    These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

    scenario:appsec-appsec-enabled-24

  • unstable execution_time [-209799.506µs; +211755.340µs] or [-7.795%; +7.868%]
  • scenario:appsec-appsec-enabled-26

  • unstable execution_time [-243022.855µs; +242135.655µs] or [-9.420%; +9.386%]
  • scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-161.108ms; +153.407ms] or [-5.200%; +4.951%]
  • scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-184.305ms; +192.142ms] or [-6.322%; +6.591%]
  • scenario:appsec-control-20

  • unstable execution_time [-92.337ms; +73.141ms] or [-5.649%; +4.475%]
  • scenario:appsec-control-24

  • unstable execution_time [-117.877ms; +90.881ms] or [-9.543%; +7.358%]
  • scenario:appsec-control-26

  • unstable execution_time [-118.051ms; +128.763ms] or [-9.519%; +10.383%]
  • scenario:appsec-iast-no-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-13.142ms; +15.168ms] or [-5.130%; +5.921%]
  • scenario:appsec-iast-with-vulnerability-control-20

  • unstable execution_time [-27.248ms; +32.950ms] or [-4.971%; +6.012%]
  • scenario:debugger-line-probe-with-snapshot-default-24

  • unstable cpu_user_time [-821.789ms; +1718.147ms] or [-10.285%; +21.503%]

  • unstable execution_time [-802.263ms; +1674.012ms] or [-9.207%; +19.212%]

  • unstable instructions [-7.0G instructions; +14.4G instructions] or [-10.838%; +22.217%]

  • unstable throughput [-589.447op/s; +261.289op/s] or [-15.839%; +7.021%]
  • scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable cpu_user_time [-531.696ms; +1016.164ms] or [-6.785%; +12.967%]

  • unstable execution_time [-504.692ms; +1016.936ms] or [-5.913%; +11.914%]

  • unstable instructions [-4.8G instructions; +8.9G instructions] or [-7.587%; +13.924%]

  • unstable throughput [-414.380op/s; +205.869op/s] or [-10.955%; +5.443%]
  • scenario:debugger-line-probe-without-snapshot-24

  • unstable cpu_user_time [-2.761s; +0.365s] or [-31.096%; +4.110%]

  • unstable execution_time [-2.759s; +0.373s] or [-28.725%; +3.885%]

  • unstable instructions [-23.4G instructions; +3.2G instructions] or [-32.240%; +4.349%]

  • unstable throughput [-101.427op/s; +731.544op/s] or [-2.898%; +20.902%]
  • scenario:debugger-line-probe-without-snapshot-26

  • unstable cpu_user_time [-4.646s; +0.020s] or [-41.840%; +0.183%]

  • unstable execution_time [-4.679s; +0.058s] or [-39.503%; +0.488%]

  • unstable instructions [-41.6G instructions; -0.0G instructions] or [-44.521%; -0.003%]

  • unstable max_rss_usage [-15.807MB; +0.603MB] or [-9.695%; +0.370%]

  • unstable throughput [-24.523op/s; +909.364op/s] or [-0.839%; +31.095%]
  • scenario:dogstatsd-aggregated-20

  • unstable cpu_usage_percentage [-7.010%; +4.670%]

  • unstable execution_time [-85.959ms; +136.067ms] or [-6.638%; +10.508%]

  • unstable throughput [-871104.710op/s; +552879.901op/s] or [-7.433%; +4.718%]
  • scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-393.219ms; +237.134ms] or [-8.317%; +5.016%]

  • unstable execution_time [-392.767ms; +235.364ms] or [-8.180%; +4.902%]

  • unstable throughput [-84176.333op/s; +138842.117op/s] or [-4.818%; +7.947%]
  • scenario:plugin-graphql-long-with-depth-and-collapse-off-20

  • unstable max_rss_usage [-35.582MB; +43.361MB] or [-8.830%; +10.761%]
  • scenario:plugin-graphql-long-with-depth-off-26

  • unstable max_rss_usage [-29994.918KB; +28724.633KB] or [-14.387%; +13.778%]
  • scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable cpu_user_time [-585.260ms; +606.489ms] or [-5.069%; +5.253%]

  • unstable execution_time [-596.486ms; +621.853ms] or [-5.065%; +5.280%]

  • unstable throughput [-3.643op/s; +3.468op/s] or [-5.330%; +5.076%]
  • scenario:plugin-graphql-long-with-depth-on-max-26

  • unstable max_rss_usage [-14.017MB; +10.234MB] or [-6.185%; +4.515%]
  • scenario:plugin-pg-service-20

  • unstable cpu_usage_percentage [-6.234%; +4.065%]

  • unstable execution_time [-87.813ms; +139.680ms] or [-5.282%; +8.403%]

  • unstable throughput [-239359.970op/s; +150916.136op/s] or [-6.578%; +4.148%]
  • scenario:plugin-pg-service-26

  • unstable cpu_usage_percentage [-6.886%; +4.620%]

  • unstable execution_time [-70.253ms; +93.798ms] or [-7.903%; +10.552%]

  • unstable throughput [-520562.618op/s; +418131.712op/s] or [-7.600%; +6.104%]
  • scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-4199.483KB; +6176.817KB] or [-5.227%; +7.688%]
  • </details>

    codecov[bot] codecov[bot] commented on Aug 05, 2026 19:37 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 98.51%. Comparing base (d678882) to head (72cd4d5).
    :warning: Report is 37 commits behind head on master.

    <details><summary>Additional details and impacted files</summary>

    @@           Coverage Diff            @@
    ##           master    #9705    +/-   ##
    ========================================
      Coverage   98.51%   98.51%            
    ========================================
      Files         963      966     +3     
      Lines      135796   135824    +28     
      Branches    11984    11743   -241     
    ========================================
    + Hits       133785   133813    +28     
      Misses       2011     2011            
    

    | Flag | Coverage Δ | |
    |---|---|---|
    | aiguard | 56.97% <100.00%> (-0.03%) | :arrow_down: |
    | aiguard-integration | 55.82% <100.00%> (+<0.01%) | :arrow_up: |
    | apm-bucket-0 | 57.22% <100.00%> (-0.03%) | :arrow_down: |
    | apm-bucket-1 | 63.31% <100.00%> (-0.02%) | :arrow_down: |
    | apm-bucket-2 | 62.11% <100.00%> (-0.02%) | :arrow_down: |
    | apm-bucket-3 | 59.66% <78.12%> (-0.02%) | :arrow_down: |
    | apm-capabilities-tracing | 62.62% <93.75%> (+<0.01%) | :arrow_up: |
    | apm-integrations-aerospike | 56.27% <100.00%> (-0.03%) | :arrow_down: |
    | apm-integrations-confluentinc-kafka-javascript | 60.93% <100.00%> (-0.06%) | :arrow_down: |
    | apm-integrations-couchbase | 56.69% <100.00%> (-0.03%) | :arrow_down: |
    | apm-integrations-http | 62.10% <100.00%> (-0.02%) | :arrow_down: |
    | apm-integrations-kafkajs | 61.54% <100.00%> (-0.03%) | :arrow_down: |
    | apm-integrations-next | 59.26% <100.00%> (-0.02%) | :arrow_down: |
    | apm-integrations-prisma | 58.28% <100.00%> (-0.02%) | :arrow_down: |
    | appsec | 72.02% <100.00%> (-0.02%) | :arrow_down: |
    | appsec-express_fastify_graphql | 69.45% <100.00%> (-0.02%) | :arrow_down: |
    | appsec-integration | 50.23% <55.26%> (+<0.01%) | :arrow_up: |
    | appsec-kafka_ldapjs_lodash | 63.36% <100.00%> (+0.01%) | :arrow_up: |
    | appsec-mongodb-core_mongoose_mysql | 66.96% <100.00%> (-0.02%) | :arrow_down: |
    | appsec-next | 56.68% <100.00%> (-0.02%) | :arrow_down: |
    | appsec-node-serialize_passport_postgres | 66.61% <100.00%> (-0.02%) | :arrow_down: |
    | appsec-sourcing_stripe_template | 64.98% <100.00%> (-0.03%) | :arrow_down: |
    | debugger | 64.19% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-0 | 51.57% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-1 | 59.60% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-10 | 61.50% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-11 | 51.49% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-12 | 52.28% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-13 | 51.60% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-2 | 53.39% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-3 | 58.66% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-4 | 52.12% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-5 | 57.16% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-6 | 60.24% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-7 | 58.02% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-bucket-8 | 58.99% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-bucket-9 | 61.05% <100.00%> (-0.02%) | :arrow_down: |
    | instrumentations-instrumentation-couchbase | 50.84% <100.00%> (-0.03%) | :arrow_down: |
    | instrumentations-integration-esbuild | 33.95% <55.26%> (+0.01%) | :arrow_up: |
    | llmobs-ai_anthropic_bedrock | 62.81% <100.00%> (-0.02%) | :arrow_down: |
    | llmobs-bucket-1 | 61.29% <100.00%> (-0.02%) | :arrow_down: |
    | llmobs-openai | 61.77% <100.00%> (-0.02%) | :arrow_down: |
    | llmobs-openai-agents_vertex-ai | 59.75% <100.00%> (-0.02%) | :arrow_down: |
    | llmobs-sdk | 66.46% <100.00%> (-0.03%) | :arrow_down: |
    | master-coverage | 98.51% <100.00%> (?) | |
    | openfeature | 55.61% <100.00%> (+<0.01%) | :arrow_up: |
    | openfeature-unit | 53.14% <100.00%> (-0.03%) | :arrow_down: |
    | platform-core_esbuild_instrumentations-misc | 40.55% <55.26%> (-0.01%) | :arrow_down: |
    | platform-integration | 60.48% <100.00%> (+<0.01%) | :arrow_up: |
    | platform-shimmer_unit-guardrails_webpack | 38.81% <55.26%> (-0.01%) | :arrow_down: |
    | plugins-browser-bunyan_bullmq_cassandra | 61.41% <100.00%> (?) | |
    | plugins-bucket-0 | 56.78% <100.00%> (-0.02%) | :arrow_down: |
    | plugins-bucket-1 | 53.92% <100.00%> (+<0.01%) | :arrow_up: |
    | plugins-bucket-11 | ? | |
    | plugins-bucket-12 | 61.64% <100.00%> (?) | |
    | plugins-bucket-15 | 58.75% <100.00%> (?) | |
    | plugins-bucket-18 | 61.24% <100.00%> (-0.14%) | :arrow_down: |
    | plugins-bucket-19 | 58.04% <100.00%> (-1.55%) | :arrow_down: |
    | plugins-bucket-20 | 61.28% <100.00%> (-0.31%) | :arrow_down: |
    | plugins-bucket-21 | 61.58% <100.00%> (?) | |
    | plugins-bucket-4 | 56.30% <100.00%> (-1.90%) | :arrow_down: |
    | plugins-bullmq_cassandra_cookie | ? | |
    | plugins-cookie-parser_crypto_dd-trace-api | ? | |
    | plugins-cookie_cookie-parser_crypto | 51.11% <100.00%> (?) | |
    | plugins-fastify_fetch_fs | 60.50% <100.00%> (?) | |
    | plugins-fetch_fs_generic-pool | ? | |
    | plugins-generic-pool_google-cloud-pubsub_grpc | 64.06% <100.00%> (?) | |
    | plugins-google-cloud-pubsub_grpc_handlebars | ? | |
    | plugins-handlebars_hapi_hono | 58.38% <100.00%> (?) | |
    | plugins-hapi_hono_ioredis | ? | |
    | plugins-ioredis_jest_knex | 57.41% <100.00%> (?) | |
    | plugins-jest_knex_langgraph | ? | |
    | plugins-langgraph_ldapjs_light-my-request | 57.68% <100.00%> (?) | |
    | plugins-ldapjs_light-my-request_limitd-client | ? | |
    | plugins-limitd-client_lodash_mariadb | 57.52% <100.00%> (?) | |
    | plugins-lodash_mariadb_memcached | ? | |
    | plugins-memcached_mercurius_microgateway-core | 60.90% <100.00%> (?) | |
    | plugins-moleculer_mongodb_mongodb-core | ? | |
    | plugins-mongodb-core_mongoose_multer | 58.85% <100.00%> (?) | |
    | plugins-mongoose_multer_mysql | ? | |
    | plugins-mysql2_nats_node-serialize | ? | |
    | plugins-mysql_mysql2_nats | 60.40% <100.00%> (?) | |
    | plugins-opensearch_passport-http_pino | ? | |
    | plugins-pino_postgres_process | 58.65% <100.00%> (?) | |
    | plugins-postgres_process_pug | ? | |
    | plugins-pug_redis_router | 61.45% <100.00%> (?) | |
    | plugins-redis_router_sequelize | ? | |
    | plugins-test-and-upstream-rhea_undici_url | ? | |
    | plugins-url_valkey_vm | 57.12% <100.00%> (?) | |
    | plugins-valkey_vm_winston | ? | |
    | plugins-winston_ws | 59.44% <100.00%> (?) | |
    | plugins-ws | ? | |
    | profiling | 61.44% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-aws-sdk | 54.86% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-base-inject-field | 50.79% <100.00%> (-0.03%) | :arrow_down: |
    | serverless-aws-sdk-bedrockruntime | 54.50% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-client | 56.10% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-dynamodb | 55.37% <100.00%> (-0.01%) | :arrow_down: |
    | serverless-aws-sdk-eventbridge | 49.36% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-kinesis | 58.88% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-lambda | 57.03% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-s3 | 55.45% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-serverless-peer-service | 59.28% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-sns | 59.70% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-sqs | 60.13% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-stepfunctions | 55.29% <100.00%> (-0.02%) | :arrow_down: |
    | serverless-aws-sdk-util | 51.33% <100.00%> (-0.03%) | :arrow_down: |
    | serverless-bucket-0 | 54.00% <100.00%> (+<0.01%) | :arrow_up: |
    | serverless-bucket-1 | 58.82% <100.00%> (-0.02%) | :arrow_down: |
    | test-optimization-cucumber | 71.48% <100.00%> (+0.03%) | :arrow_up: |
    | test-optimization-cypress | 65.17% <100.00%> (+0.03%) | :arrow_up: |
    | test-optimization-jest | 72.96% <100.00%> (-0.13%) | :arrow_down: |
    | test-optimization-mocha | 72.52% <100.00%> (+0.05%) | :arrow_up: |
    | test-optimization-playwright-playwright-atr | 60.15% <100.00%> (+<0.01%) | :arrow_up: |
    | test-optimization-playwright-playwright-efd | 60.29% <100.00%> (+0.02%) | :arrow_up: |
    | test-optimization-playwright-playwright-final-status | 60.46% <100.00%> (+0.01%) | :arrow_up: |
    | test-optimization-playwright-playwright-impacted-tests | 59.99% <100.00%> (+0.16%) | :arrow_up: |
    | test-optimization-playwright-playwright-reporting | 61.17% <100.00%> (-0.09%) | :arrow_down: |
    | test-optimization-playwright-playwright-test-management | 60.98% <100.00%> (-0.09%) | :arrow_down: |
    | test-optimization-playwright-playwright-test-span | 60.21% <100.00%> (-0.05%) | :arrow_down: |
    | test-optimization-selenium | 59.39% <100.00%> (-0.13%) | :arrow_down: |
    | test-optimization-testopt | 57.89% <100.00%> (+0.07%) | :arrow_up: |
    | test-optimization-vitest | 73.63% <100.00%> (+0.11%) | :arrow_up: |
    | test-optimization-vitest-browser | 59.04% <100.00%> (+0.07%) | :arrow_up: |
    | test-optimization-webdriverio | 64.88% <100.00%> (+0.05%) | :arrow_up: |

    Flags with carried forward coverage won't be shown. Click here to find out more.
    </details>

    :umbrella: View full report in Codecov by Harness.
    :loudspeaker: Have feedback on the report? Share it here.
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    crysmags crysmags commented on Aug 14, 2026 16:42 UTC
    Reviewer

    Could you share why we chose Shimmer here instead of Orchestrion? I checked all the published 1.x versions, including the different package layouts, and _emit appears to be targetable in each of them using version-specific paths. I may be missing another constraint. If the concern is performance, especially allocations in the logging hot path, it would be helpful to document that tradeoff and include measurements so we understand why this should be an exception.

    BridgeAR BridgeAR commented on Aug 14, 2026 17:44 UTC
    Author

    @crysmags this is a user PR port, so I did not start the implementation. I just changed a few things. It works well as is, so I did not feel like rewriting the instrumentation again

    rochdev rochdev approved these changes on Aug 17, 2026 04:23 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    BridgeAR BridgeAR
    Labels
    risk: low confidence: 81.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.3% (HIGH) · Higher = larger blast radius
    68.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 81.1% · Lower = rushed or shallow review
    81.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 12.9% · Safe to merge
    12.9%