Skip to content

Update opentelemetry Rust crates#8013

Open
hash-worker[bot] wants to merge 1 commit intomainfrom
deps/rs/opentelemetry-rust-crates
Open

Update opentelemetry Rust crates#8013
hash-worker[bot] wants to merge 1 commit intomainfrom
deps/rs/opentelemetry-rust-crates

Conversation

@hash-worker
Copy link
Contributor

@hash-worker hash-worker bot commented Nov 5, 2025

This PR contains the following updates:

Package Type Update Change
opentelemetry (source) workspace.dependencies minor 0.30.0 -> 0.31.0
opentelemetry-appender-tracing (source) workspace.dependencies minor 0.30.1 -> 0.31.0
opentelemetry-otlp (source) workspace.dependencies minor 0.30.0 -> 0.31.0
opentelemetry-semantic-conventions (source) workspace.dependencies minor 0.30.0 -> 0.31.0
opentelemetry_sdk (source) workspace.dependencies minor 0.30.0 -> 0.31.0
tracing-opentelemetry workspace.dependencies minor 0.31.0 -> 0.32.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

open-telemetry/opentelemetry-rust (opentelemetry)

v0.31.0

Compare Source

Released 2025-Sep-25

  • Breaking Change return type of opentelemetry::global::set_tracer_provider to Unit to align with metrics counterpart
  • Add get_all method to opentelemetry::propagation::Extractor to return all values of the given propagation key and provide a default implementation.
  • Add an IntoIterator implementation for opentelemetry::trace::TraceState to allow iterating through its key-value pair collection.
open-telemetry/opentelemetry-rust (opentelemetry-appender-tracing)

v0.31.1

Released 2025-Oct-1

  • Bump tracing-opentelemetry to 0.32

v0.31.0

Released 2025-Sep-25

  • Updated opentelemetry dependency to version 0.31.0.
open-telemetry/opentelemetry-rust (opentelemetry-otlp)

v0.31.0

Compare Source

Released 2025-Sep-25

  • Update opentelemetry-proto and opentelemetry-http dependency version to 0.31.0
  • Add HTTP compression support with gzip-http and zstd-http feature flags
  • Add retry with exponential backoff and throttling support for HTTP and gRPC exporters
    This behaviour is opt in via the experimental-grpc-retry and experimental-http-retry flags on this crate. You can customize the retry policy using the with_retry_policy on the exporter builders.
open-telemetry/opentelemetry-rust (opentelemetry-semantic-conventions)

v0.31.0

Compare Source

Released 2025-Sep-25

  • Update to v1.34.0 of the semantic conventions.
open-telemetry/opentelemetry-rust (opentelemetry_sdk)

v0.31.0

Compare Source

Released 2025-Sep-25

  • Updated opentelemetry and opentelemetry-http dependencies to version 0.31.0.

  • Feature: Add span flags support for isRemote property in OTLP exporter (#​3153)

  • Updated span and link transformations to properly set flags field (0x100 for local, 0x300 for remote)

  • TODO: Placeholder for Span processor related things

    • Fix SpanProcessor::on_start is no longer called on non recording spans
  • Fix: Restore true parallel exports in the async-native BatchSpanProcessor by honoring OTEL_BSP_MAX_CONCURRENT_EXPORTS (#​2959). A regression in #​2685 inadvertently awaited the export() future directly in opentelemetry-sdk/src/trace/span_processor_with_async_runtime.rs instead of spawning it on the runtime, forcing all exports to run sequentially.

  • Feature: Added Clone implementation to SdkLogger for API consistency with SdkTracer (#​3058).

  • Fix: batch size accounting in BatchSpanProcessor when queue is full (#​3089).

  • Fix: Resolved dependency issue where the "logs" feature incorrectly
    required the "trace" feature flag
    (#​3096).
    The logs functionality now operates independently, while automatic correlation
    between logs and traces continues to work when the "trace" feature is
    explicitly enabled.

  • Fix: Fix shutdown of SimpleLogProcessor and async BatchLogProcessor.

  • Default implementation of LogProcessor::shutdown_with_timeout() will now warn to encourage users to implement proper shutdown.

tokio-rs/tracing-opentelemetry (tracing-opentelemetry)

v0.32.1

Compare Source

Added
  • allow OpenTelemetry context access with SpanRef (#​234)
  • add event-counting filtering layer for spans (#​228)
  • publicly export SetParentError
Fixed
  • fix panic in multithreaded follows-from
Other
  • Remove unwanted dependency on opentelemetry sdk crate (#​241)
  • update README.md links to use the latest version (#​239)
  • remove thiserror and unused dependencies (#​238)

v0.32.0

Compare Source

Added
  • Add configuration for including target in spans (#​222)
Changed
  • OpenTelemetry context activation (#​202)
    • Trace ID and span ID can be obtained from OtelData via dedicated functions. Note that these
      will be available only if the context has already been built. (#​233)
  • Correctly track entered and exited state for timings (#​212)
  • Slightly improve error message on version mismatch (#​211)
  • Remove Lazy for thread_local static (#​215)
  • Update description of special fields and semantic conventions
Breaking Changes
  • The attributes code.filepath, code.lineno, and code.namespace have been renamed to
    code.file.path, and code.line.number, and code.module.name, to align with the opentelemetry
    semantic conventions for code. (#​225)
  • Upgrade from opentelemetry to 0.31.0. Refer to the upstream
    changelog
    for more information. (#​230)
  • Hold onto MetricsProvider in MetricsLayer (#​224)
  • The attribute otel.status_message was changed to otel.status_description to align with the
    opentelemetry semantic conventions for code. (#​209)
  • Remove the metrics_gauge_unstable feature.

Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - "before 4am every weekday,every weekend" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@hash-worker hash-worker bot enabled auto-merge November 5, 2025 00:34
@hash-worker hash-worker bot requested a review from a team November 5, 2025 00:34
@hash-worker
Copy link
Contributor Author

hash-worker bot commented Nov 5, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package opentelemetry@0.30.0 --precise 0.31.0
info: syncing channel updates for 'nightly-2026-02-09-x86_64-unknown-linux-gnu'
info: latest update on 2026-02-09, rust version 1.95.0-nightly (6efa357bf 2026-02-08)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'llvm-tools'
info: downloading component 'miri'
info: downloading component 'rust-analyzer'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustc-codegen-cranelift'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'llvm-tools'
info: installing component 'miri'
info: installing component 'rust-analyzer'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustc-codegen-cranelift'
info: installing component 'rustfmt'
    Updating git repository `https://github.com/hashdeps/oxc`
From https://github.com/hashdeps/oxc
 * [new ref]             73c781b54fdd9b34accca9585ee2ebe091400104 -> refs/commit/73c781b54fdd9b34accca9585ee2ebe091400104
    Updating git repository `https://github.com/specta-rs/specta`
From https://github.com/specta-rs/specta
 * [new ref]         ab7d9245d5e2ace951707c3c383b0211ca7fc8ce -> refs/commit/ab7d9245d5e2ace951707c3c383b0211ca7fc8ce
    Updating crates.io index
    Updating git repository `https://github.com/google/tarpc`
From https://github.com/google/tarpc
 * [new ref]         f55f36d2d876b1868cfcf52f41d0456a60cf726c -> refs/commit/f55f36d2d876b1868cfcf52f41d0456a60cf726c
    Updating git repository `https://github.com/temporalio/sdk-core`
From https://github.com/temporalio/sdk-core
 * [new ref]         231e21cadb8004197a5b1dba2ecb1313596cc34c -> refs/commit/231e21cadb8004197a5b1dba2ecb1313596cc34c
error: failed to select a version for the requirement `opentelemetry = "^0.30.0"`
candidate versions found which didn't match: 0.31.0
location searched: crates.io index
required by package `tarpc v0.36.0 (https://github.com/google/tarpc?rev=f55f36d2d876b1868cfcf52f41d0456a60cf726c#f55f36d2)`
    ... which satisfies git dependency `tarpc` (locked to 0.36.0) of package `hash-graph v0.0.0 (/tmp/renovate/repos/github/hashintel/hash/apps/hash-graph)`

@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ds-theme Ready Ready Preview, Comment Mar 19, 2026 6:44pm
hash Ready Ready Preview, Comment Mar 19, 2026 6:44pm
hashdotdesign Ready Ready Preview, Comment Mar 19, 2026 6:44pm
hashdotdesign-tokens Ready Ready Preview, Comment Mar 19, 2026 6:44pm
petrinaut Ready Ready Preview Mar 19, 2026 6:44pm

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.49%. Comparing base (618964d) to head (054412e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8013      +/-   ##
==========================================
- Coverage   62.60%   62.49%   -0.11%     
==========================================
  Files        1317     1318       +1     
  Lines      133975   134209     +234     
  Branches     5517     5517              
==========================================
  Hits        83877    83877              
- Misses      49183    49417     +234     
  Partials      915      915              
Flag Coverage Δ
apps.hash-ai-worker-ts 1.40% <ø> (ø)
apps.hash-api 0.00% <ø> (ø)
blockprotocol.type-system 40.84% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.24% <ø> (ø)
local.hash-graph-sdk 9.63% <ø> (ø)
local.hash-isomorphic-utils 0.00% <ø> (ø)
rust.antsi 0.00% <ø> (ø)
rust.error-stack 90.88% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.16% <ø> (ø)
rust.harpc-tower 66.80% <ø> (ø)
rust.harpc-types 0.00% <ø> (ø)
rust.harpc-wire-protocol 92.23% <ø> (ø)
rust.hash-codec 72.76% <ø> (ø)
rust.hash-graph-api 2.52% <ø> (ø)
rust.hash-graph-authorization 62.34% <ø> (ø)
rust.hash-graph-postgres-store 26.39% <ø> (-0.34%) ⬇️
rust.hash-graph-store 37.76% <ø> (-0.13%) ⬇️
rust.hash-graph-temporal-versioning 47.95% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hash-graph-validation 83.45% <ø> (ø)
rust.hashql-ast 87.23% <ø> (ø)
rust.hashql-compiletest 29.69% <ø> (ø)
rust.hashql-core 82.29% <ø> (ø)
rust.hashql-diagnostics 72.43% <ø> (ø)
rust.hashql-eval 69.13% <ø> (ø)
rust.hashql-hir 89.06% <ø> (ø)
rust.hashql-mir 92.64% <ø> (ø)
rust.hashql-syntax-jexpr 94.05% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cursor
Copy link

cursor bot commented Jan 12, 2026

PR Summary

Medium Risk
Updates core telemetry dependencies (opentelemetry* and tracing-opentelemetry), which can introduce compile-time breakages or behavior changes in tracing/OTLP export paths. No application logic changes are included, but downstream crates using these APIs may need adjustments.

Overview
Updates workspace telemetry dependencies by bumping opentelemetry, opentelemetry-appender-tracing, opentelemetry-otlp, opentelemetry-semantic-conventions, and opentelemetry_sdk from the 0.30.x line to 0.31.0.

Also bumps tracing-opentelemetry from 0.31.0 to 0.32.0 to stay compatible with the OpenTelemetry update.

Written by Cursor Bugbot for commit 054412e. This will update automatically on new commits. Configure here.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 22, 2026

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing deps/rs/opentelemetry-rust-crates (054412e) with main (1512579)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (618964d) during the generation of this report, so 1512579 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

opentelemetry-appender-tracing = { version = "0.31.0", default-features = false }
opentelemetry-otlp = { version = "0.31.0", default-features = false }
opentelemetry-semantic-conventions = { version = "0.31.0", default-features = false }
opentelemetry_sdk = { version = "0.31.0", default-features = false }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lockfile out of sync with manifest bump

High Severity

The OpenTelemetry dependency versions were bumped in Cargo.toml, but Cargo.lock still pins the old 0.30.x/0.31.0 releases. Builds using --locked will fail because locked versions no longer satisfy the manifest constraints.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

Benchmark results

@rust/hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$25.1 \mathrm{ms} \pm 153 \mathrm{μs}\left({\color{gray}-1.864 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.81 \mathrm{ms} \pm 17.7 \mathrm{μs}\left({\color{gray}2.17 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$11.1 \mathrm{ms} \pm 64.5 \mathrm{μs}\left({\color{gray}-1.420 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$36.4 \mathrm{ms} \pm 238 \mathrm{μs}\left({\color{gray}-2.207 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$10.9 \mathrm{ms} \pm 66.3 \mathrm{μs}\left({\color{gray}-1.556 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$19.8 \mathrm{ms} \pm 116 \mathrm{μs}\left({\color{gray}-3.759 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$26.1 \mathrm{ms} \pm 210 \mathrm{μs}\left({\color{gray}-1.554 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.00 \mathrm{ms} \pm 13.3 \mathrm{μs}\left({\color{gray}-0.989 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$12.1 \mathrm{ms} \pm 106 \mathrm{μs}\left({\color{gray}-0.235 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.09 \mathrm{ms} \pm 20.8 \mathrm{μs}\left({\color{gray}-0.582 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.35 \mathrm{ms} \pm 11.0 \mathrm{μs}\left({\color{gray}-0.682 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$2.68 \mathrm{ms} \pm 15.3 \mathrm{μs}\left({\color{gray}-0.918 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$4.34 \mathrm{ms} \pm 26.6 \mathrm{μs}\left({\color{gray}-0.868 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.86 \mathrm{ms} \pm 14.2 \mathrm{μs}\left({\color{gray}-0.075 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$3.39 \mathrm{ms} \pm 21.7 \mathrm{μs}\left({\color{gray}-0.925 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$3.70 \mathrm{ms} \pm 22.6 \mathrm{μs}\left({\color{gray}-0.224 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.76 \mathrm{ms} \pm 14.1 \mathrm{μs}\left({\color{gray}-0.075 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$3.35 \mathrm{ms} \pm 28.7 \mathrm{μs}\left({\color{gray}0.945 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.17 \mathrm{ms} \pm 12.9 \mathrm{μs}\left({\color{gray}-0.146 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.12 \mathrm{ms} \pm 11.3 \mathrm{μs}\left({\color{gray}-0.764 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.21 \mathrm{ms} \pm 9.61 \mathrm{μs}\left({\color{gray}-0.239 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.39 \mathrm{ms} \pm 9.07 \mathrm{μs}\left({\color{gray}-1.085 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.27 \mathrm{ms} \pm 12.0 \mathrm{μs}\left({\color{gray}0.369 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.48 \mathrm{ms} \pm 13.6 \mathrm{μs}\left({\color{gray}-1.203 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$2.46 \mathrm{ms} \pm 13.7 \mathrm{μs}\left({\color{gray}-0.699 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.26 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}2.29 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$2.33 \mathrm{ms} \pm 10.7 \mathrm{μs}\left({\color{gray}-1.433 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.11 \mathrm{ms} \pm 30.0 \mathrm{μs}\left({\color{red}9.59 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.41 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}0.397 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$2.65 \mathrm{ms} \pm 18.0 \mathrm{μs}\left({\color{gray}0.438 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$2.74 \mathrm{ms} \pm 12.4 \mathrm{μs}\left({\color{gray}-0.407 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.41 \mathrm{ms} \pm 12.1 \mathrm{μs}\left({\color{gray}-0.591 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$2.64 \mathrm{ms} \pm 11.4 \mathrm{μs}\left({\color{gray}0.009 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$38.0 \mathrm{ms} \pm 173 \mathrm{μs}\left({\color{gray}-0.357 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$74.6 \mathrm{ms} \pm 286 \mathrm{μs}\left({\color{gray}-2.061 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$40.8 \mathrm{ms} \pm 168 \mathrm{μs}\left({\color{gray}-4.350 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$46.2 \mathrm{ms} \pm 265 \mathrm{μs}\left({\color{gray}-0.382 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$51.9 \mathrm{ms} \pm 290 \mathrm{μs}\left({\color{gray}-1.798 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$39.5 \mathrm{ms} \pm 159 \mathrm{μs}\left({\color{gray}-2.456 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$410 \mathrm{ms} \pm 736 \mathrm{μs}\left({\color{gray}-3.322 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$86.4 \mathrm{ms} \pm 396 \mathrm{μs}\left({\color{gray}-2.672 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$88.9 \mathrm{ms} \pm 294 \mathrm{μs}\left({\color{gray}-1.621 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$254 \mathrm{ms} \pm 619 \mathrm{μs}\left({\color{gray}-3.722 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$16.3 \mathrm{ms} \pm 70.8 \mathrm{μs}\left({\color{lightgreen}-8.816 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$16.7 \mathrm{ms} \pm 78.5 \mathrm{μs}\left({\color{lightgreen}-7.800 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$16.9 \mathrm{ms} \pm 65.5 \mathrm{μs}\left({\color{lightgreen}-8.701 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$16.9 \mathrm{ms} \pm 75.9 \mathrm{μs}\left({\color{lightgreen}-7.583 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$20.8 \mathrm{ms} \pm 96.7 \mathrm{μs}\left({\color{lightgreen}-6.519 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$16.4 \mathrm{ms} \pm 73.1 \mathrm{μs}\left({\color{lightgreen}-7.745 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$16.4 \mathrm{ms} \pm 72.4 \mathrm{μs}\left({\color{lightgreen}-7.669 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$16.2 \mathrm{ms} \pm 69.1 \mathrm{μs}\left({\color{lightgreen}-9.270 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$16.7 \mathrm{ms} \pm 68.1 \mathrm{μs}\left({\color{lightgreen}-8.614 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$27.2 \mathrm{ms} \pm 817 \mathrm{μs}\left({\color{red}12.0 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$31.3 \mathrm{ms} \pm 269 \mathrm{μs}\left({\color{gray}-2.222 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$29.9 \mathrm{ms} \pm 302 \mathrm{μs}\left({\color{gray}-4.617 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$30.4 \mathrm{ms} \pm 259 \mathrm{μs}\left({\color{gray}2.82 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$29.1 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{lightgreen}-5.788 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$30.4 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{gray}-3.729 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$29.5 \mathrm{ms} \pm 262 \mathrm{μs}\left({\color{gray}-2.565 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$29.5 \mathrm{ms} \pm 294 \mathrm{μs}\left({\color{gray}-2.183 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$28.9 \mathrm{ms} \pm 236 \mathrm{μs}\left({\color{lightgreen}-5.472 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$29.2 \mathrm{ms} \pm 285 \mathrm{μs}\left({\color{gray}-3.751 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$6.70 \mathrm{ms} \pm 23.0 \mathrm{μs}\left({\color{gray}-1.892 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$87.7 \mathrm{ms} \pm 362 \mathrm{μs}\left({\color{gray}-2.103 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$129 \mathrm{ms} \pm 398 \mathrm{μs}\left({\color{gray}-1.611 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$93.0 \mathrm{ms} \pm 354 \mathrm{μs}\left({\color{gray}-2.997 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$99.7 \mathrm{ms} \pm 350 \mathrm{μs}\left({\color{gray}-2.181 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$107 \mathrm{ms} \pm 361 \mathrm{μs}\left({\color{gray}-1.652 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$113 \mathrm{ms} \pm 405 \mathrm{μs}\left({\color{gray}-1.053 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$93.6 \mathrm{ms} \pm 364 \mathrm{μs}\left({\color{gray}-1.280 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$117 \mathrm{ms} \pm 400 \mathrm{μs}\left({\color{gray}-0.111 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$99.8 \mathrm{ms} \pm 460 \mathrm{μs}\left({\color{gray}-1.196 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$106 \mathrm{ms} \pm 385 \mathrm{μs}\left({\color{gray}-2.271 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$108 \mathrm{ms} \pm 422 \mathrm{μs}\left({\color{gray}-1.009 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$108 \mathrm{ms} \pm 368 \mathrm{μs}\left({\color{gray}-0.848 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$126 \mathrm{ms} \pm 317 \mathrm{μs}\left({\color{gray}4.49 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$133 \mathrm{ms} \pm 424 \mathrm{μs}\left({\color{gray}0.776 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$88.1 \mathrm{ms} \pm 305 \mathrm{μs}\left({\color{red}141 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$524 \mathrm{ms} \pm 2.59 \mathrm{ms}\left({\color{red}5.71 \mathrm{\%}}\right) $$ Flame Graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deps Relates to third-party dependencies (area)

Development

Successfully merging this pull request may close these issues.

2 participants