diff --git a/experiments/otel-callback/.gitignore b/experiments/otel-callback/.gitignore new file mode 100644 index 0000000..ced9306 --- /dev/null +++ b/experiments/otel-callback/.gitignore @@ -0,0 +1,2 @@ +/vendor/ +/__pycache__/ diff --git a/experiments/otel-callback/README.md b/experiments/otel-callback/README.md new file mode 100644 index 0000000..bfd8733 --- /dev/null +++ b/experiments/otel-callback/README.md @@ -0,0 +1,64 @@ +# OTel callback feasibility experiment + +This is an opt-in development experiment, not an application integration. It reads the current +OpenTelemetry context in a native Excimer callback and forwards that log exactly once to the real +Tracewick sampler. It does not implement correlated stacks, schema 2 or metadata delivery. + +See [METHOD.md](../../METHOD.md). A fixed-work CLI loop is used instead of k6 because this probe +isolates in-process callback cost and final log processing; no HTTP or server capacity is measured. +The [report](../../reports/2026-11-17-otel-callback-preflight.md) records versions and limitations. + +Requirements: Linux, PHP 8.5 with Excimer 1.2.7, Composer, and coreutils `timeout`. Use a local core +checkout with its Composer dependencies installed. OTel dependencies are isolated here; they are +not required by Tracewick. The committed lock pins this experiment's dependency graph. + +```bash +composer install --working-dir=experiments/otel-callback +export TRACEWICK_SOURCE=/absolute/path/to/tracewick +mkdir -p reports/_local/otel-callback +php -d pcov.enabled=0 -d opcache.enable_cli=0 experiments/otel-callback/sdk.php +php -d pcov.enabled=0 -d opcache.enable_cli=0 experiments/otel-callback/sdk.php --rotation +php -d pcov.enabled=0 -d opcache.enable_cli=0 experiments/otel-callback/run.php \ + reports/_local/otel-callback/overhead.json 7 500 +``` + +The runner uses 7 rounds and targets approximately 500 ms of unprofiled work per row by default. +It calibrates a fixed iteration count, then shuffles four modes within every round using seed +20261117. All rows run in separate PHP processes with the same recording SDK span active: + +- `off`: no sampler. +- `batched`: the real sampler with a 10,000-entry native threshold. +- `immediate`: one-entry threshold, with an observer wrapper but no OTel reads. +- `otel`: the same wrapper plus a valid-local-context read and trace/span pair construction. + +Modes run at 100/1000 Hz and configured depths 48/256. The recursive workload reaches those +depth caps. Coverage and CLI opcache are disabled. `work_wall_ns` times only the equal work; +`total_wall_ns` and `total_cpu_ns` also include start/stop and final flush, so the batched mode's +deferred aggregation is counted. SDK setup and span export are outside these intervals. Each +worker has a 15-second outer timeout. The runner checks workload checksum and sampler failures; +a partial output file after failure is not a completed result. + +`sdk.php` separately exercises real recording and nonrecording SDK spans, nested scopes, +restoration, an ended-but-still-active span, remote-parent omission and a local child. It checks +frame-marked observations, weight conservation, callback autoload/warnings and exporter entry. +The `--rotation` mode also exercises real automatic UoW rotation and deferred sink delivery. +Core classes are not manually preloaded by the probe. `experimentContext()` is called once at +bootstrap to initialize the optional reader path before collection. + +For a targeted syscall check, install `strace` in the test environment and run: + +```bash +OTEL_PROBE_MARKERS=1 strace -f -qq -s 512 -e trace=%file,%network,read,write,close \ + -o reports/_local/otel-callback/sdk.strace \ + php -d pcov.enabled=0 experiments/otel-callback/sdk.php \ + 3>reports/_local/otel-callback/sdk-markers.log +python3 experiments/otel-callback/trace.py reports/_local/otel-callback/sdk.strace +``` + +Marker writes are intentional instrumentation and excluded. This checks the selected syscall set, +not every possible side effect. Do not use strace or these markers for overhead measurements. +Keep raw traces local: they include source and environment paths. + +These short runs are not a memory soak, supported-PHP matrix, production overhead guarantee or +validation of custom OTel storage. The future correlation-aware builder adds work not present +here and must be measured when implemented. Do not run this experiment on an occupied soak VPS. diff --git a/experiments/otel-callback/bootstrap.php b/experiments/otel-callback/bootstrap.php new file mode 100644 index 0000000..2f52ff8 --- /dev/null +++ b/experiments/otel-callback/bootstrap.php @@ -0,0 +1,27 @@ +getContext(); + + return $context->isValid() && !$context->isRemote() + ? [$context->getTraceId(), $context->getSpanId()] + : null; +} + +function experimentProvider(?OpenTelemetry\SDK\Trace\SamplerInterface $sampler = null, array $processors = []): OpenTelemetry\SDK\Trace\TracerProvider +{ + return new OpenTelemetry\SDK\Trace\TracerProvider( + spanProcessors: $processors, + sampler: $sampler ?? new OpenTelemetry\SDK\Trace\Sampler\AlwaysOnSampler(), + resource: OpenTelemetry\SDK\Resource\ResourceInfo::create( + OpenTelemetry\SDK\Common\Attribute\Attributes::create(['service.name' => 'otel-callback-experiment']), + ), + ); +} diff --git a/experiments/otel-callback/composer.json b/experiments/otel-callback/composer.json new file mode 100644 index 0000000..a16aefe --- /dev/null +++ b/experiments/otel-callback/composer.json @@ -0,0 +1,18 @@ +{ + "name": "tracewick/otel-callback-experiment", + "description": "Isolated development dependencies for callback feasibility probes.", + "type": "project", + "license": "Apache-2.0", + "require": { + "php": "~8.5.0", + "open-telemetry/api": "^1.11.0", + "open-telemetry/context": "^1.6.0", + "open-telemetry/sdk": "^1.16.1" + }, + "config": { + "allow-plugins": { + "php-http/discovery": false + }, + "sort-packages": true + } +} diff --git a/experiments/otel-callback/composer.lock b/experiments/otel-callback/composer.lock new file mode 100644 index 0000000..deaaf2b --- /dev/null +++ b/experiments/otel-callback/composer.lock @@ -0,0 +1,1110 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "74c2ded3df99a25a490a45144b3654c1", + "packages": [ + { + "name": "brick/math", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "2effe05d2177c451b86c6a073196a4034c02f211" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/2effe05d2177c451b86c6a073196a4034c02f211", + "reference": "2effe05d2177c451b86c6a073196a4034c02f211", + "shasum": "" + }, + "require": { + "php": "^8.2" + }, + "require-dev": { + "phpstan/phpstan": "2.2.13", + "phpstan/phpstan-phpunit": "2.0.18", + "phpunit/phpunit": "^11.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "bignumber", + "brick", + "decimal", + "integer", + "math", + "mathematics", + "rational" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/1.0.0" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2026-09-12T10:28:18+00:00", + "published-time": "2026-09-12T12:23:30+00:00" + }, + { + "name": "composer/semver", + "version": "3.6.0", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/d92543b7ede9c4ec6b59853cefb061e39866d2cf", + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Version comparison library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.6.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + } + ], + "time": "2026-10-29T09:13:34+00:00", + "published-time": "2026-10-29T09:14:11+00:00" + }, + { + "name": "nyholm/psr7-server", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/Nyholm/psr7-server.git", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nyholm/psr7-server/zipball/4335801d851f554ca43fa6e7d2602141538854dc", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "require-dev": { + "nyholm/nsa": "^1.1", + "nyholm/psr7": "^1.3", + "phpunit/phpunit": "^7.0 || ^8.5 || ^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Nyholm\\Psr7Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "description": "Helper classes to handle PSR-7 server requests", + "homepage": "http://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/Nyholm/psr7-server/issues", + "source": "https://github.com/Nyholm/psr7-server/tree/1.1.0" + }, + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2023-11-08T09:30:43+00:00", + "published-time": "2023-11-08T09:33:01+00:00" + }, + { + "name": "open-telemetry/api", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/api.git", + "reference": "bc169d9ecd11858e941657770dc708c6a15fc5f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/bc169d9ecd11858e941657770dc708c6a15fc5f4", + "reference": "bc169d9ecd11858e941657770dc708c6a15fc5f4", + "shasum": "" + }, + "require": { + "open-telemetry/context": "^1.4", + "php": "^8.2", + "psr/log": "^1.1|^2.0|^3.0" + }, + "conflict": { + "open-telemetry/sdk": "<=1.11", + "open-telemetry/sdk-configuration": "<0.10" + }, + "suggest": { + "symfony/config": "To implement a ComponentProvider for declarative configuration" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Configuration\\Config\\ComponentProvider": [ + "OpenTelemetry\\API\\Baggage\\Propagation\\Config\\TextMapPropagatorBaggage", + "OpenTelemetry\\API\\Trace\\Propagation\\Config\\TextMapPropagatorTraceContext" + ], + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.11.x-dev" + } + }, + "autoload": { + "files": [ + "Trace/functions.php" + ], + "psr-4": { + "OpenTelemetry\\API\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "API for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "api", + "apm", + "logging", + "opentelemetry", + "otel", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/languages/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2026-11-05T11:54:49+00:00", + "published-time": "2026-11-05T12:00:54+00:00" + }, + { + "name": "open-telemetry/context", + "version": "1.6.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/context.git", + "reference": "711e7291d9cf8a984c059c5afd926e45ab444b7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/context/zipball/711e7291d9cf8a984c059c5afd926e45ab444b7f", + "reference": "711e7291d9cf8a984c059c5afd926e45ab444b7f", + "shasum": "" + }, + "require": { + "php": "^8.2" + }, + "suggest": { + "ext-ffi": "To allow context switching in Fibers" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.6.x-dev" + } + }, + "autoload": { + "files": [ + "fiber/initialize_fiber_handler.php" + ], + "psr-4": { + "OpenTelemetry\\Context\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Context implementation for OpenTelemetry PHP.", + "keywords": [ + "Context", + "opentelemetry", + "otel" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/languages/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2026-11-05T11:54:49+00:00", + "published-time": "2026-11-05T12:00:45+00:00" + }, + { + "name": "open-telemetry/sdk", + "version": "1.16.1", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sdk.git", + "reference": "51ebca2563dd580d682d4f32b1611c1779424dac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/51ebca2563dd580d682d4f32b1611c1779424dac", + "reference": "51ebca2563dd580d682d4f32b1611c1779424dac", + "shasum": "" + }, + "require": { + "ext-json": "*", + "nyholm/psr7-server": "^1.1", + "open-telemetry/api": "^1.11", + "open-telemetry/context": "^1.4", + "open-telemetry/sem-conv": "^1.45.0", + "php": "^8.2", + "php-http/discovery": "^1.14", + "psr/http-client": "^1.0", + "psr/http-client-implementation": "^1.0", + "psr/http-factory-implementation": "^1.0", + "psr/http-message": "^1.0.1|^2.0", + "psr/log": "^1.1|^2.0|^3.0", + "ramsey/uuid": "^3.0 || ^4.0", + "symfony/polyfill-mbstring": "^1.23", + "tbachert/spi": "^1.0.5" + }, + "suggest": { + "ext-gmp": "To support unlimited number of synchronous metric readers", + "ext-mbstring": "To increase performance of string operations", + "open-telemetry/sdk-configuration": "File-based OpenTelemetry SDK configuration" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Configuration\\ConfigEnv\\EnvComponentLoader": [ + "OpenTelemetry\\API\\Instrumentation\\Configuration\\General\\ConfigEnv\\EnvComponentLoaderHttpConfig", + "OpenTelemetry\\API\\Instrumentation\\Configuration\\General\\ConfigEnv\\EnvComponentLoaderPeerConfig", + "OpenTelemetry\\SDK\\ConfigEnv\\Trace\\SpanSuppressionStrategySemConv", + "OpenTelemetry\\SDK\\ConfigEnv\\Trace\\SpanSuppressionStrategySpanKind", + "OpenTelemetry\\SDK\\ConfigEnv\\Distribution\\DistributionConfigurationSdk" + ], + "OpenTelemetry\\SDK\\Common\\Configuration\\Resolver\\ResolverInterface": [ + "OpenTelemetry\\SDK\\Common\\Configuration\\Resolver\\SdkConfigurationResolver" + ], + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.16.x-dev" + } + }, + "autoload": { + "files": [ + "Common/Util/functions.php", + "Logs/Exporter/_register.php", + "Metrics/MetricExporter/_register.php", + "Propagation/_register.php", + "Trace/SpanExporter/_register.php", + "Common/Dev/Compatibility/_load.php", + "_autoload.php" + ], + "psr-4": { + "OpenTelemetry\\SDK\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "SDK for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "sdk", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/languages/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2026-11-06T02:25:35+00:00", + "published-time": "2026-11-06T02:32:38+00:00" + }, + { + "name": "open-telemetry/sem-conv", + "version": "1.45.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sem-conv.git", + "reference": "7a42562cf5891f56f6f8ea2ecc945f31108c8806" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/7a42562cf5891f56f6f8ea2ecc945f31108c8806", + "reference": "7a42562cf5891f56f6f8ea2ecc945f31108c8806", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "OpenTelemetry\\SemConv\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Semantic conventions for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "semantic conventions", + "semconv", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/languages/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2026-11-03T22:37:22+00:00", + "published-time": "2026-11-03T22:42:45+00:00" + }, + { + "name": "php-http/discovery", + "version": "1.20.0", + "source": { + "type": "git", + "url": "https://github.com/php-http/discovery.git", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0|^2.0", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "nyholm/psr7": "<1.0", + "zendframework/zend-diactoros": "*" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "*", + "psr/http-factory-implementation": "*", + "psr/http-message-implementation": "*" + }, + "require-dev": { + "composer/composer": "^1.0.2|^2.0", + "graham-campbell/phpspec-skip-example-extension": "^5.0", + "php-http/httplug": "^1.0 || ^2.0", + "php-http/message-factory": "^1.0", + "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", + "sebastian/comparator": "^3.0.5 || ^4.0.8", + "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" + }, + "type": "composer-plugin", + "extra": { + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Http\\Discovery\\": "src/" + }, + "exclude-from-classmap": [ + "src/Composer/Plugin.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + } + ], + "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", + "homepage": "http://php-http.org", + "keywords": [ + "adapter", + "client", + "discovery", + "factory", + "http", + "message", + "psr17", + "psr7" + ], + "support": { + "issues": "https://github.com/php-http/discovery/issues", + "source": "https://github.com/php-http/discovery/tree/1.20.0" + }, + "time": "2024-10-02T11:20:13+00:00", + "published-time": "2024-10-02T11:21:00+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00", + "published-time": "2023-09-23T14:18:12+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00", + "published-time": "2024-05-10T07:32:19+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "published-time": "2023-04-04T09:55:35+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00", + "published-time": "2024-09-11T13:21:14+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00", + "published-time": "2025-03-22T05:39:22+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.10.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/f9aa3efc8015fcbc013d84d699583b268ccb593a", + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14 || ^0.15 || ^0.16 || ^0.17 || ^0.18 || ^0.19 || ^0.20 || ^1.0", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.29.3", + "captainhook/plugin-composer": "^5.3.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.2.1", + "mockery/mockery": "^1.6.15", + "paragonie/random-lib": "^2.0.3", + "php-mock/php-mock": "^2.7.0", + "php-mock/php-mock-mockery": "^1.5.0", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.3.5", + "phpstan/phpstan-mockery": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.1.2", + "phpunit/phpunit": "^9.6.39", + "slevomat/coding-standard": "^8.31.3", + "squizlabs/php_codesniffer": "^4.0.4" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.10.0" + }, + "time": "2026-11-14T23:23:20+00:00", + "published-time": "2026-11-14T23:35:39+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.43.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-28T09:35:49+00:00", + "published-time": "2026-10-28T10:07:45+00:00" + }, + { + "name": "tbachert/spi", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/Nevay/spi.git", + "reference": "e7078767866d0a9e0f91d3f9d42a832df5e39002" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nevay/spi/zipball/e7078767866d0a9e0f91d3f9d42a832df5e39002", + "reference": "e7078767866d0a9e0f91d3f9d42a832df5e39002", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "composer/semver": "^1.0 || ^2.0 || ^3.0", + "php": "^8.1" + }, + "require-dev": { + "composer/composer": "^2.0", + "infection/infection": "^0.27.9", + "phpunit/phpunit": "^10.5", + "psalm/phar": "^5.18" + }, + "type": "composer-plugin", + "extra": { + "class": "Nevay\\SPI\\Composer\\Plugin", + "branch-alias": { + "dev-main": "1.0.x-dev" + }, + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Nevay\\SPI\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Service provider loading facility", + "keywords": [ + "service provider" + ], + "support": { + "issues": "https://github.com/Nevay/spi/issues", + "source": "https://github.com/Nevay/spi/tree/v1.0.5" + }, + "time": "2025-06-29T15:42:06+00:00", + "published-time": "2025-06-30T18:37:38+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": "~8.5.0" + }, + "platform-dev": {}, + "plugin-api-version": "2.11.0" +} diff --git a/experiments/otel-callback/run.php b/experiments/otel-callback/run.php new file mode 100644 index 0000000..2e35cdb --- /dev/null +++ b/experiments/otel-callback/run.php @@ -0,0 +1,65 @@ + ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes); + if (!is_resource($process)) { throw new RuntimeException('Cannot start worker.'); } + fclose($pipes[0]); + $stdout = stream_get_contents($pipes[1]); $stderr = stream_get_contents($pipes[2]); + fclose($pipes[1]); fclose($pipes[2]); + $exit = proc_close($process); + if ($exit !== 0) { throw new RuntimeException("Worker $mode/$hz/$depth exited $exit: $stderr $stdout"); } + return json_decode($stdout, true, flags: JSON_THROW_ON_ERROR); +} + +$cpu = file_get_contents('/proc/cpuinfo'); +preg_match('/model name\s*:\s*(.+)/', $cpu, $match); +$metadata = [ + 'started_utc' => gmdate('c'), 'php' => PHP_VERSION, 'excimer' => phpversion('excimer'), + 'kernel' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('m'), 'cpu_model' => $match[1] ?? 'unknown', + 'memory_total' => preg_match('/MemTotal:\s*(.+)/', file_get_contents('/proc/meminfo'), $mem) ? $mem[1] : null, + 'cpu_max' => @file_get_contents('/sys/fs/cgroup/cpu.max'), + 'cpu_stat_before' => @file_get_contents('/sys/fs/cgroup/cpu.stat'), + 'pcov_enabled' => ini_get('pcov.enabled'), 'opcache_cli' => ini_get('opcache.enable_cli'), + 'sdk' => '1.16.1', 'api' => '1.11.0', 'context' => '1.6.0', + 'rounds' => $rounds, 'target_baseline_ms' => $targetMs, 'random_seed' => 20261117, + 'method' => 'Fixed iterations; randomized four-mode order within each round; separate PHP process per row. Total includes sampler start/stop/final flush. All modes have the same active SDK span. No strace or coverage.', +]; +$calibration = runWorker('off', 100, 48, 1_000_000); +$iterations = max(1_000_000, (int) ceil(1_000_000 * $targetMs * 1_000_000 / $calibration['work_wall_ns'])); +$rows = []; +mt_srand(20261117); +foreach ([48, 256] as $depth) { + foreach ([100, 1000] as $hz) { + for ($round = 1; $round <= $rounds; ++$round) { + $modes = ['off', 'batched', 'immediate', 'otel']; shuffle($modes); + foreach ($modes as $position => $mode) { + $row = runWorker($mode, $hz, $depth, $iterations); + $row['round'] = $round; $row['position'] = $position; + if ($row['checksum'] !== $calibration['checksum'] && $row['iterations'] === $calibration['iterations']) { + throw new RuntimeException('Calibration checksum mismatch.'); + } + $rows[] = $row; + file_put_contents($output, json_encode(['metadata' => $metadata, 'calibration' => $calibration, 'rows' => $rows], JSON_PRETTY_PRINT) . "\n"); + } + } + echo "Completed depth=$depth hz=$hz ($rounds randomized rounds)\n"; + } +} +$checksums = array_unique(array_column($rows, 'checksum')); +if (count($checksums) !== 1) { throw new RuntimeException('Workload differs across rows.'); } +$metadata['finished_utc'] = gmdate('c'); +$metadata['cpu_stat_after'] = @file_get_contents('/sys/fs/cgroup/cpu.stat'); +file_put_contents($output, json_encode(['metadata' => $metadata, 'calibration' => $calibration, 'rows' => $rows], JSON_PRETTY_PRINT) . "\n"); +echo 'Saved ', count($rows), " measured rows\n"; diff --git a/experiments/otel-callback/sdk.php b/experiments/otel-callback/sdk.php new file mode 100644 index 0000000..618667d --- /dev/null +++ b/experiments/otel-callback/sdk.php @@ -0,0 +1,167 @@ + 0, 'nativeWeight' => 0, 'mismatches' => 0, 'multiEntryLogs' => 0, + 'exportsInCallback' => 0, 'autoloads' => [], 'warnings' => [], 'phases' => [], 'expected' => [], + 'sinkInCallback' => 0, 'deliveredWeight' => 0, +]; +$exporter = new class($state) extends InMemoryExporter { + public function __construct(private object $state) { parent::__construct(); } + protected function doExport(iterable $spans): bool + { + if ($this->state->depth > 0) { ++$this->state->exportsInCallback; } + return parent::doExport($spans); + } +}; +$provider = experimentProvider(processors: [new SimpleSpanProcessor($exporter)]); +$offProvider = experimentProvider(new AlwaysOffSampler()); +$tracer = $provider->getTracer('callback-preflight'); +$offTracer = $offProvider->getTracer('callback-preflight-off'); +$remote = Span::wrap(SpanContext::createFromRemoteParent(str_repeat('3', 32), str_repeat('4', 16), 1)); +$pair = static fn($span): array => [$span->getContext()->getTraceId(), $span->getContext()->getSpanId()]; +$state->expected = [ + 'sdkNone' => null, 'sdkParent' => null, 'sdkChild' => null, + 'sdkRestored' => null, 'sdkEndedActive' => null, + 'sdkUnsampled' => null, 'sdkRemote' => null, + 'sdkLocalChild' => null, 'sdkAfterDetach' => null, +]; +// Prepare only the optional reader path; no manual core-type preload is used. +experimentContext(); +$sampler = new ExcimerSampler(new SamplerConfig(periodNs: 1_000_000, maxDepth: 48, maxSamples: 1)); +$clock = new class implements Tracewick\Clock\Clock { + public int $now = 1_000_000_000_000_000_000; + public function nowNs(): int { return $this->now; } +}; +$runtime = null; +if (in_array('--rotation', $argv, true)) { + $sink = new class($state) implements Sink { + public function __construct(private object $state) {} + public function send(Profile $profile): Delivery + { + if ($this->state->depth > 0) { ++$this->state->sinkInCallback; } + foreach ($profile->stacks as $stack) { $this->state->deliveredWeight += $stack->count; } + return Delivery::delivered(); + } + }; + $runtime = new UnitOfWorkProfiler($sampler, $sink, + new ProfilerConfig(sampleRate: 1.0, maxProfileDurationSeconds: 1), clock: $clock); +} +$native = (new ReflectionProperty($sampler, 'profiler'))->getValue($sampler); +$original = (new ReflectionMethod($sampler, 'onNativeFlush'))->getClosure($sampler); +$marker = getenv('OTEL_PROBE_MARKERS') === '1' ? fopen('php://fd/3', 'w') : null; +$autoloadObserver = static function (string $class) use ($state): void { + if ($state->depth > 0) { $state->autoloads[$class] = true; } +}; +spl_autoload_register($autoloadObserver, true, true); +set_error_handler(static function (int $type, string $message) use ($state): bool { + $state->warnings[] = ['callback' => $state->depth > 0, 'message' => $message]; + return true; +}); +$native->setFlushCallback(static function (ExcimerLog $log) use ($state, $original, $marker): void { + if (is_resource($marker)) { fwrite($marker, "OTEL_CB_BEGIN\n"); } + ++$state->depth; + try { + $state->nativeWeight += $log->getEventCount(); + if (count($log) > 1) { ++$state->multiEntryLogs; } + $actual = count($log) === 1 ? experimentContext() : null; + foreach ($log as $entry) { + foreach ($entry->getTrace() as $frame) { + $phase = $frame['function'] ?? ''; + if (array_key_exists($phase, $state->expected)) { + $state->phases[$phase] = ($state->phases[$phase] ?? 0) + $entry->getEventCount(); + if ($actual !== $state->expected[$phase]) { ++$state->mismatches; } + break; + } + } + } + $original($log); + } finally { + --$state->depth; + if (is_resource($marker)) { fwrite($marker, "OTEL_CB_END\n"); } + } +}, 1); + +if ($runtime !== null) { $runtime->start(); } else { $sampler->start(); } +sdkNone(); +$parent = $tracer->spanBuilder('parent')->startSpan(); +$state->expected['sdkParent'] = $state->expected['sdkRestored'] = $pair($parent); +$parentScope = $parent->activate(); +if ($runtime !== null) { $clock->now += 2_000_000_000; } +sdkParent(); +$child = $tracer->spanBuilder('child')->startSpan(); +$state->expected['sdkChild'] = $state->expected['sdkEndedActive'] = $pair($child); +$childScope = $child->activate(); sdkChild(); +$child->end(); sdkEndedActive(); $childScope->detach(); +sdkRestored(); $parentScope->detach(); $parent->end(); +$unsampled = $offTracer->spanBuilder('unsampled')->startSpan(); +$state->expected['sdkUnsampled'] = $pair($unsampled); +$offScope = $unsampled->activate(); sdkUnsampled(); $offScope->detach(); $unsampled->end(); +$remoteScope = $remote->activate(); sdkRemote(); +$localChild = $tracer->spanBuilder('local-child')->startSpan(); +$state->expected['sdkLocalChild'] = $pair($localChild); +$localScope = $localChild->activate(); sdkLocalChild(); $localScope->detach(); $localChild->end(); +sdkRemote(); $remoteScope->detach(); sdkAfterDetach(); +if ($runtime !== null) { + $runtime->stop(); $runtime->flush(); + $weight = $state->deliveredWeight; +} else { + $sampler->stop(); $weight = $sampler->flush()->eventCount(); +} +$emptyWeight = $sampler->flush()->eventCount(); +spl_autoload_unregister($autoloadObserver); +restore_error_handler(); +$result = [ + 'php' => PHP_VERSION, 'excimer' => phpversion('excimer'), + 'recording_span_class' => get_debug_type($parent), + 'unsampled_span_class' => get_debug_type($unsampled), + 'unsampled_valid_local' => $unsampled->getContext()->isValid() && !$unsampled->getContext()->isRemote() && !$unsampled->getContext()->isSampled(), + 'native_weight' => $state->nativeWeight, 'batch_weight' => $weight, 'second_flush_weight' => $emptyWeight, + 'phases' => $state->phases, 'context_mismatches' => $state->mismatches, + 'callback_autoloads' => array_keys($state->autoloads), 'warnings' => $state->warnings, + 'exports_in_callback' => $state->exportsInCallback, 'exported_spans' => count($exporter->getSpans()), + 'multi_entry_logs' => $state->multiEntryLogs, + 'rotation_collected' => $runtime?->diagnostics()->collectedProfiles, + 'sink_in_callback' => $state->sinkInCallback, +]; +$result['pass'] = $state->nativeWeight === $weight && $weight > 0 && $emptyWeight === 0 + && count($state->phases) === count($state->expected) && $state->mismatches === 0 + && $state->autoloads === [] && $state->warnings === [] && $state->exportsInCallback === 0 + && $result['exported_spans'] === 3 && $result['unsampled_valid_local'] && $state->multiEntryLogs === 0; +if ($runtime !== null) { $result['pass'] = $result['pass'] && $result['rotation_collected'] >= 2 && $state->sinkInCallback === 0; } +$provider->shutdown(); $offProvider->shutdown(); +echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), "\n"; +exit($result['pass'] ? 0 : 1); diff --git a/experiments/otel-callback/trace.py b/experiments/otel-callback/trace.py new file mode 100644 index 0000000..7639e43 --- /dev/null +++ b/experiments/otel-callback/trace.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 +"""Check targeted strace calls between explicit callback markers.""" +import argparse +import json +import re +from pathlib import Path + +parser = argparse.ArgumentParser(description=__doc__) +parser.add_argument('trace', type=Path) +args = parser.parse_args() +depth = 0 +markers = 0 +calls = [] +marker_pattern = re.compile(r'^\s*(?:\d+\s+)?write\(\d+,\s*"OTEL_CB_(BEGIN|END)\\n"') +for line in args.trace.read_text().splitlines(): + marker = marker_pattern.match(line) + if marker and marker.group(1) == 'BEGIN': + depth += 1 + markers += 1 + elif marker and marker.group(1) == 'END': + depth -= 1 + if depth < 0: + raise SystemExit('Unbalanced callback markers') + elif depth: + calls.append(line) +result = {'marked_callbacks': markers, 'targeted_syscalls': len(calls), + 'balanced_markers': depth == 0, 'examples': calls[:5]} +result['pass'] = markers > 0 and depth == 0 and not calls +print(json.dumps(result, indent=2)) +raise SystemExit(0 if result['pass'] else 1) diff --git a/experiments/otel-callback/worker.php b/experiments/otel-callback/worker.php new file mode 100644 index 0000000..665b0d5 --- /dev/null +++ b/experiments/otel-callback/worker.php @@ -0,0 +1,78 @@ + 0 ? atDepth($depth - 1, $iterations) : fixedWork($iterations); +} +function cpuNs(array $usage): int +{ + return (int) (($usage['ru_utime.tv_sec'] + $usage['ru_stime.tv_sec']) * 1_000_000_000 + + ($usage['ru_utime.tv_usec'] + $usage['ru_stime.tv_usec']) * 1000); +} + +[$script, $mode, $hz, $depth, $iterations] = $argv; +$hz = (int) $hz; $depth = (int) $depth; $iterations = (int) $iterations; +if (!in_array($mode, ['off', 'batched', 'immediate', 'otel'], true) || $hz < 1 || $depth < 1 || $iterations < 1) { + throw new InvalidArgumentException('Invalid measurement parameters.'); +} +if (ini_get('pcov.enabled') === '1' || ini_get('opcache.enable_cli') === '1') { + throw new RuntimeException('Run with PCOV and CLI opcache disabled.'); +} +$provider = experimentProvider(); +$span = $provider->getTracer('callback-overhead')->spanBuilder('measured-work')->startSpan(); +$scope = $span->activate(); +if (!$span->isRecording()) { throw new RuntimeException('Expected a real recording SDK span.'); } +experimentContext(); +$sampler = $mode === 'off' ? null : new ExcimerSampler(new SamplerConfig( + periodNs: intdiv(1_000_000_000, $hz), maxDepth: $depth, + maxSamples: $mode === 'batched' ? 10_000 : 1, +)); +$callbacks = 0; $reads = 0; +if ($sampler !== null && in_array($mode, ['immediate', 'otel'], true)) { + $native = (new ReflectionProperty($sampler, 'profiler'))->getValue($sampler); + $original = (new ReflectionMethod($sampler, 'onNativeFlush'))->getClosure($sampler); + $native->setFlushCallback(static function (ExcimerLog $log) use ($original, $mode, &$callbacks, &$reads): void { + ++$callbacks; + if ($mode === 'otel' && count($log) === 1) { experimentContext(); ++$reads; } + $original($log); + }, 1); +} +// Identical fixed warmup, excluded from the measured workload and sampler window. +atDepth($depth, 100_000); +$beforeCpu = cpuNs(getrusage()); +$start = hrtime(true); +$sampler?->start(); +$workStart = hrtime(true); +$checksum = atDepth($depth, $iterations); +$workEnd = hrtime(true); +$sampler?->stop(); +$batch = $sampler?->flush(); +$end = hrtime(true); +$afterCpu = cpuNs(getrusage()); +$failures = $sampler?->failureCount() ?? 0; +$weight = $batch?->eventCount() ?? 0; +$scope->detach(); $span->end(); $provider->shutdown(); +$result = [ + 'mode' => $mode, 'hz' => $hz, 'depth' => $depth, 'iterations' => $iterations, + 'checksum' => $checksum, 'work_wall_ns' => $workEnd - $workStart, + 'total_wall_ns' => $end - $start, 'total_cpu_ns' => $afterCpu - $beforeCpu, + 'weight' => $weight, 'callbacks' => $callbacks, 'context_reads' => $reads, + 'failures' => $failures, 'stacks' => count($batch?->samples ?? []), +]; +echo json_encode($result, JSON_THROW_ON_ERROR), "\n"; +exit($failures === 0 && ($mode === 'off' || $weight > 0) ? 0 : 1); diff --git a/reports/2026-11-17-otel-callback-preflight.md b/reports/2026-11-17-otel-callback-preflight.md new file mode 100644 index 0000000..ba7ca58 --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight.md @@ -0,0 +1,82 @@ +# OTel callback preflight — 2026-11-17 + +## Result + +The recording SDK context path worked in the exercised sequential cases. The cold callback autoload gap has a separate core fix, [PR #84](https://github.com/tracewick/tracewick/pull/84); it is not merged or released by this report. Neither result implements the proposed correlation-aware model or accepts [ADR 14 / PR #81](https://github.com/tracewick/tracewick/pull/81). + +At 100 Hz, the small differences were not resolved reliably against this shared-host scatter. At 1000 Hz, paired median additional total CPU versus the batched sampler was **7.69% at depth 48** and **8.42% at depth 256**. Individual pairs included negative changes and large positive outliers: these are descriptive preliminary measurements, not a precise production budget. + +The work-only interval also matters: at 1000 Hz its paired median increase was **10.29% / 23.72%** at depths 48/256. The batched path postpones much of its PHP aggregation until final flush; one-entry callbacks perform that work during application execution. Total intervals below include final flush so that postponed work is not omitted. Do not describe this as only the cost of a cheap SDK getter. + +## Method and pins + +Methodology: [METHOD.md](../METHOD.md). [Reproduction](../experiments/otel-callback/README.md) · [raw measurements](2026-11-17-otel-callback-preflight/overhead.json). + +This fixed-work CLI experiment replaces k6 only for isolating in-process callback cost. It measures no HTTP latency distribution, RPS, spool drain capacity or backend performance. Every mode runs the same 71,409,363 arithmetic iterations under the same active recording SDK span; profiling is effectively 100% of the measured window. No linear conversion to a 0.1 request sample rate is claimed. + +| Component | Pin / setting | +| --- | --- | +| Core | 232c5e009514c8ee840bc4f131fe61c6347e1f69 (cold bootstrap fix, PR #84) | +| Benchmarks base | 472be2566a1d03d0f5f636b31ea7e84dca0f73c1 | +| PHP / Excimer | 8.5.12 / 1.2.7 | +| OTel SDK / API / context | 1.16.1 / 1.11.0 / 1.6.0; isolated Composer lock | +| Environment | Shared managed cloud environment; Intel Xeon Platinum 8573C; Linux 6.18.57 x86_64 | +| Visible resources | CPU quota 200000/100000 (2 CPUs); visible MemTotal 10,207,480 kB, not a dedicated-host RAM claim | +| PHP execution | PCOV disabled, CLI opcache disabled, no strace in timing runs | +| Workload | CPU-bound integer loop at a recursive depth that reaches configured caps 48/256 | +| Sampling | wall; 100/1000 Hz; batched threshold 10,000 or immediate threshold 1 | +| Repetitions | 7 rounds × 4 modes × 4 settings = 112 rows; seed 20261117 | +| Timing | 20:48:30–20:49:35 UTC; approximately 500 ms off-mode calibration target | + +Four modes: off; real batched sampler; immediate callback with observer wrapper but no context read; the same immediate wrapper plus local trace/span context read and pair construction. Start, stop and final sampler flush are included in total wall/CPU times. SDK setup, export and worker process startup are excluded. Fresh process per row; randomized mode order inside each round; all row checksums agree. Only the transient container hostname was removed from exported metadata; numerical rows are unchanged. The archived runner now omits that hostname and the separate SDK correctness script was subsequently extended; timing worker/bootstrap code is unchanged. The prototype wrapper adds dispatch overhead absent from an eventual direct integration. The future context-aware builder and wire encoding add unmeasured work. + +Shared cgroup telemetry recorded two additional throttled periods and 12.239 ms additional throttled time over the campaign. Those counters may include neighboring work; they do not prove the process had a dedicated CPU. Raw rows expose the observed scatter. + +## Total CPU time + +Medians are in milliseconds for the same fixed work. Paired change is the median of seven OTel/batched ratios in the matching rounds; it is not the ratio of the two displayed marginal medians. Min/max describe those seven ratios, not a confidence interval. + +| Depth | Hz | Off | Batched | Immediate | OTel | Paired OTel/batched | Pair min…max | +| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | +| 48 | 100 | 499.69 | 506.01 | 502.45 | 508.26 | -0.29% | -14.36%…+2.92% | +| 48 | 1000 | 499.23 | 516.14 | 542.04 | 555.35 | +7.69% | -6.23%…+42.04% | +| 256 | 100 | 488.18 | 519.87 | 518.24 | 513.27 | -1.27% | -17.19%…+10.68% | +| 256 | 1000 | 510.60 | 611.02 | 641.79 | 661.41 | +8.42% | -4.63%…+40.64% | + +## Wall time and placement of aggregation + +All values below are milliseconds, except the two paired changes. Work time excludes final flush; total includes it. + +| Depth | Hz | Off total | Batched total | OTel total | Work-only paired change | Total paired change | +| ---: | ---: | ---: | ---: | ---: | ---: | ---: | +| 48 | 100 | 499.66 | 505.73 | 507.76 | +0.10% | -0.33% | +| 48 | 1000 | 503.71 | 518.26 | 546.55 | +10.29% | +6.95% | +| 256 | 100 | 490.41 | 520.35 | 514.12 | +0.48% | -1.20% | +| 256 | 1000 | 512.74 | 611.76 | 651.84 | +23.72% | +7.04% | + +The immediate/no-read mode shows that callback frequency and eager aggregation are substantial parts of the difference. SDK-only paired changes were inconsistent in sign at depth 48, and around +2% at depth 256. This run cannot assign a stable isolated cost to the SDK getter. + +## Real SDK and cold-bootstrap correctness + +[SDK result](2026-11-17-otel-callback-preflight/sdk.json) · [SDK with rotation](2026-11-17-otel-callback-preflight/sdk-rotation.json) · [cold-rotation result](2026-11-17-otel-callback-preflight/cold-rotation.json). + +- Actual recording type: OpenTelemetry\SDK\Trace\Span; valid unsampled local type: OpenTelemetry\SDK\Trace\NonRecordingSpan. +- 378 native event weight equals 378 batch weight; next flush weight 0. Nine marked phases observed, zero wrong context associations. +- Spans are created while the profiler is already running, not only activated after preconstruction. +- Cases: no span, parent, child, parent restoration, ended-but-still-active child, unsampled local span, remote-parent omission, local child of remote parent, no context after detach. Ending a span does not detach its scope; this probe intentionally validates that distinction. +- Three spans were exported through SimpleSpanProcessor/InMemoryExporter, all outside callbacks. No callback-time warning or autoload was observed. +- Cold automatic rotation used normal core constructors without the prior manual preload list. 53 native weight equals 53 disk weight across 6 files, with no callback autoload or boundary violation. +- SDK + automatic rotation collected 2 profiles, preserving 405 native weight as 405 delivered weight; no sink call occurred inside the callback. +- Separate strace 6.1 checks recorded 358 SDK callbacks, 315 SDK-with-rotation callbacks and 65 cold-rotation callbacks with zero selected file/network/read/write/close calls inside them, excluding explicit marker writes. [Trace check summaries](2026-11-17-otel-callback-preflight/trace-checks.json). Raw traces remain local because they contain paths. The checked-in trace parser anchors syscall records so source text containing fwrite markers is not mistaken for an actual marker. +- Core maintained regressions run in fresh PHP processes, preventing PHPUnit class-loading order from hiding the cold paths. All three failed on the old source and passed with the fix. The complete local core suite/coverage passed: 838 tests, 5920 assertions, 8 existing optional skips. Local composer audit remains blocked by a proxy HTTP 403; CI status belongs to PR #84. + +## What this does not prove + +- No final correlation-aware aggregation, compact payload schema 2 or PHP/Go metadata delivery is implemented by this experiment. +- No memory leak, long-duration stability, known-function-share accuracy, custom context storage, full PHP/OTel compatibility matrix or concurrent span attribution claim. +- No production-wide overhead percentage, HTTP p99 claim, default-enable recommendation or extrapolation from CPU-only work to I/O-heavy applications. +- The running 72-hour soak uses its original pinned versions. These experiments neither alter it nor validate future correlation-enabled stability. + +## Next decision + +Review the sequential, opt-in design with its actual hot-path cost visible. Keep the cold-bootstrap fix independent. A production implementation needs maintained context/lifecycle regressions, explicit unsupported-context behavior, bounded correlation-aware stacks, shared wire fixtures and new measurements on its final code. No release gate is closed merely by accepting the proposal. diff --git a/reports/2026-11-17-otel-callback-preflight/cold-rotation.json b/reports/2026-11-17-otel-callback-preflight/cold-rotation.json new file mode 100644 index 0000000..6d3e347 --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight/cold-rotation.json @@ -0,0 +1,28 @@ +{ + "case": "rotation", + "cold": true, + "status": "pass", + "failure": null, + "php": "8.5.12", + "excimer": "1.2.7", + "native_entries": 52, + "native_weight": 53, + "callbacks": 65, + "max_callback_depth": 3, + "nested_nonempty_logs": 2, + "context_reads": 52, + "context_read_failures": 0, + "context_weights": { + "none": 23, + "1111111111111111": 20, + "2222222222222222": 10 + }, + "fiber_entries_omitted": 0, + "callback_autoloads": [], + "callback_warnings": [], + "callback_boundary_violations": [], + "spool_files": 6, + "spool_weight": 53, + "intentional_buffer_drop_weight": 0, + "production_correlation_wire_tested": false +} diff --git a/reports/2026-11-17-otel-callback-preflight/overhead.json b/reports/2026-11-17-otel-callback-preflight/overhead.json new file mode 100644 index 0000000..3722a4e --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight/overhead.json @@ -0,0 +1,1953 @@ +{ + "metadata": { + "started_utc": "2026-11-17T20:48:30+00:00", + "php": "8.5.12", + "excimer": "1.2.7", + "kernel": "Linux 6.18.57 x86_64", + "cpu_model": "INTEL(R) XEON(R) PLATINUM 8573C", + "memory_total": "10207480 kB", + "cpu_max": "200000 100000\n", + "cpu_stat_before": "usage_usec 4452940971\nuser_usec 1774181505\nsystem_usec 2678759465\nnice_usec 0\nnr_periods 369633\nnr_throttled 3953\nthrottled_usec 324243061\nnr_bursts 0\nburst_usec 0\n", + "pcov_enabled": "0", + "opcache_cli": "0", + "sdk": "1.16.1", + "api": "1.11.0", + "context": "1.6.0", + "rounds": 7, + "target_baseline_ms": 500, + "random_seed": 20261117, + "method": "Fixed iterations; randomized four-mode order within each round; separate PHP process per row. Total includes sampler start/stop/final flush. All modes have the same active SDK span. No strace or coverage.", + "finished_utc": "2026-11-17T20:49:35+00:00", + "cpu_stat_after": "usage_usec 4519416510\nuser_usec 1840657044\nsystem_usec 2678759465\nnice_usec 0\nnr_periods 370283\nnr_throttled 3955\nthrottled_usec 324255300\nnr_bursts 0\nburst_usec 0\n", + "core_ref": "232c5e009514c8ee840bc4f131fe61c6347e1f69", + "benchmarks_base": "472be2566a1d03d0f5f636b31ea7e84dca0f73c1", + "archived_harness_sha256": { + "bootstrap.php": "bc61ec461fa346afa8c04f58e4e180a76bf4a2eed490cfac5f4a08160a40f559", + "run.php": "c4a01f8ddb25ad056f1ab18250168993daf64df79ee29f2e277d7e13a64160dd", + "sdk.php": "3ff338aceda3be4f6ffde45832bdd725cc1d0f494540853fa56a6d3ffdfe7f95", + "worker.php": "3aa0f25bcfedd6c20cd26dee14f1986070ddebdd1b848a4a01b5adb13d0779a8" + }, + "metadata_note": "Only the transient container hostname was removed from exported metadata. Numerical measurement rows are unchanged. The archived runner omits that hostname by default; worker/bootstrap timing code is unchanged. SDK correctness script was subsequently extended to create spans during collection and exercise rotation." + }, + "calibration": { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 1000000, + "checksum": 1794897017, + "work_wall_ns": 7001883, + "total_wall_ns": 7002596, + "total_cpu_ns": 7008000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0 + }, + "rows": [ + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 499661933, + "total_wall_ns": 499663014, + "total_cpu_ns": 499690000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 1, + "position": 0 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 500429671, + "total_wall_ns": 500897395, + "total_cpu_ns": 501617000, + "weight": 50, + "callbacks": 51, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 1 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 501427160, + "total_wall_ns": 501727514, + "total_cpu_ns": 502471000, + "weight": 50, + "callbacks": 51, + "context_reads": 50, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 2 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 515246190, + "total_wall_ns": 517152052, + "total_cpu_ns": 513684000, + "weight": 51, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 3 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 500768500, + "total_wall_ns": 500769848, + "total_cpu_ns": 500754000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 2, + "position": 0 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 500898793, + "total_wall_ns": 503489029, + "total_cpu_ns": 503983000, + "weight": 50, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 499971734, + "total_wall_ns": 502666699, + "total_cpu_ns": 503816000, + "weight": 50, + "callbacks": 51, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 2 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 501396914, + "total_wall_ns": 501833569, + "total_cpu_ns": 502514000, + "weight": 51, + "callbacks": 52, + "context_reads": 51, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 3 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 495454773, + "total_wall_ns": 497389981, + "total_cpu_ns": 498102000, + "weight": 50, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 0 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 510795540, + "total_wall_ns": 511105594, + "total_cpu_ns": 511604000, + "weight": 51, + "callbacks": 52, + "context_reads": 51, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 478863268, + "total_wall_ns": 479388481, + "total_cpu_ns": 479868000, + "weight": 48, + "callbacks": 49, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 499107910, + "total_wall_ns": 499109215, + "total_cpu_ns": 498035000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 3, + "position": 3 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 503115366, + "total_wall_ns": 505335215, + "total_cpu_ns": 506015000, + "weight": 50, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 0 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 516740627, + "total_wall_ns": 516742007, + "total_cpu_ns": 509930000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 4, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 504696018, + "total_wall_ns": 505123430, + "total_cpu_ns": 505792000, + "weight": 50, + "callbacks": 51, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 2 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 497486930, + "total_wall_ns": 497826673, + "total_cpu_ns": 498249000, + "weight": 49, + "callbacks": 50, + "context_reads": 49, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 3 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 496796840, + "total_wall_ns": 496797508, + "total_cpu_ns": 496338000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 5, + "position": 0 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 505176782, + "total_wall_ns": 505729600, + "total_cpu_ns": 502454000, + "weight": 51, + "callbacks": 52, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 1 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 536936199, + "total_wall_ns": 537450884, + "total_cpu_ns": 538335000, + "weight": 53, + "callbacks": 54, + "context_reads": 53, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 2 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 614244180, + "total_wall_ns": 619413352, + "total_cpu_ns": 628623000, + "weight": 61, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 3 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 507071892, + "total_wall_ns": 509586253, + "total_cpu_ns": 501817000, + "weight": 51, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 0 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 523675259, + "total_wall_ns": 525196294, + "total_cpu_ns": 516467000, + "weight": 52, + "callbacks": 53, + "context_reads": 52, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 490909204, + "total_wall_ns": 491396185, + "total_cpu_ns": 491766000, + "weight": 50, + "callbacks": 51, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 494986485, + "total_wall_ns": 494987187, + "total_cpu_ns": 493240000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 6, + "position": 3 + }, + { + "mode": "off", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 529306298, + "total_wall_ns": 529307387, + "total_cpu_ns": 529240000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 7, + "position": 0 + }, + { + "mode": "otel", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 507175550, + "total_wall_ns": 507756199, + "total_cpu_ns": 508262000, + "weight": 51, + "callbacks": 52, + "context_reads": 51, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 1 + }, + { + "mode": "batched", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 503228333, + "total_wall_ns": 505732643, + "total_cpu_ns": 506649000, + "weight": 50, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 2 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 516935833, + "total_wall_ns": 517273141, + "total_cpu_ns": 518188000, + "weight": 51, + "callbacks": 52, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 3 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 532985466, + "total_wall_ns": 550078226, + "total_cpu_ns": 553966000, + "weight": 533, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 0 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 542102527, + "total_wall_ns": 542610646, + "total_cpu_ns": 549243000, + "weight": 542, + "callbacks": 543, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 587841364, + "total_wall_ns": 588303903, + "total_cpu_ns": 596585000, + "weight": 588, + "callbacks": 588, + "context_reads": 587, + "failures": 0, + "stacks": 6, + "round": 1, + "position": 2 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 520921246, + "total_wall_ns": 520922086, + "total_cpu_ns": 520843000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 1, + "position": 3 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 503709588, + "total_wall_ns": 503710697, + "total_cpu_ns": 499227000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 2, + "position": 0 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 526173743, + "total_wall_ns": 543225047, + "total_cpu_ns": 550236000, + "weight": 526, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 1 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 532312056, + "total_wall_ns": 532623384, + "total_cpu_ns": 537172000, + "weight": 532, + "callbacks": 533, + "context_reads": 0, + "failures": 0, + "stacks": 2, + "round": 2, + "position": 2 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 510381559, + "total_wall_ns": 510975649, + "total_cpu_ns": 515962000, + "weight": 510, + "callbacks": 510, + "context_reads": 509, + "failures": 0, + "stacks": 2, + "round": 2, + "position": 3 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 543435588, + "total_wall_ns": 546551219, + "total_cpu_ns": 555345000, + "weight": 543, + "callbacks": 537, + "context_reads": 536, + "failures": 0, + "stacks": 4, + "round": 3, + "position": 0 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 489394902, + "total_wall_ns": 504601559, + "total_cpu_ns": 508831000, + "weight": 489, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 1 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 519403478, + "total_wall_ns": 519404731, + "total_cpu_ns": 518932000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 3, + "position": 2 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 626920967, + "total_wall_ns": 630731458, + "total_cpu_ns": 637951000, + "weight": 627, + "callbacks": 603, + "context_reads": 0, + "failures": 0, + "stacks": 9, + "round": 3, + "position": 3 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 598963468, + "total_wall_ns": 599368021, + "total_cpu_ns": 612258000, + "weight": 599, + "callbacks": 543, + "context_reads": 0, + "failures": 0, + "stacks": 3, + "round": 4, + "position": 0 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 626472856, + "total_wall_ns": 626899551, + "total_cpu_ns": 758772000, + "weight": 627, + "callbacks": 493, + "context_reads": 492, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 1 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 512391921, + "total_wall_ns": 528717252, + "total_cpu_ns": 534185000, + "weight": 513, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 2 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 502531981, + "total_wall_ns": 502532999, + "total_cpu_ns": 498104000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 4, + "position": 3 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 530586811, + "total_wall_ns": 530587690, + "total_cpu_ns": 529813000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 5, + "position": 0 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 525229442, + "total_wall_ns": 525579442, + "total_cpu_ns": 531311000, + "weight": 525, + "callbacks": 525, + "context_reads": 0, + "failures": 0, + "stacks": 2, + "round": 5, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 518760195, + "total_wall_ns": 519050958, + "total_cpu_ns": 524453000, + "weight": 519, + "callbacks": 520, + "context_reads": 519, + "failures": 0, + "stacks": 2, + "round": 5, + "position": 2 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 503399729, + "total_wall_ns": 518262610, + "total_cpu_ns": 516139000, + "weight": 502, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 3 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 476507823, + "total_wall_ns": 476508598, + "total_cpu_ns": 476512000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 6, + "position": 0 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 487192738, + "total_wall_ns": 501289662, + "total_cpu_ns": 506606000, + "weight": 487, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 582020281, + "total_wall_ns": 582415530, + "total_cpu_ns": 586457000, + "weight": 582, + "callbacks": 568, + "context_reads": 567, + "failures": 0, + "stacks": 4, + "round": 6, + "position": 2 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 499467019, + "total_wall_ns": 500063634, + "total_cpu_ns": 506901000, + "weight": 499, + "callbacks": 496, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 3 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 545164934, + "total_wall_ns": 545587130, + "total_cpu_ns": 542041000, + "weight": 545, + "callbacks": 518, + "context_reads": 0, + "failures": 0, + "stacks": 5, + "round": 7, + "position": 0 + }, + { + "mode": "off", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 485570946, + "total_wall_ns": 485571940, + "total_cpu_ns": 482682000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 7, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 521324529, + "total_wall_ns": 521914925, + "total_cpu_ns": 527692000, + "weight": 521, + "callbacks": 522, + "context_reads": 521, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 2 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 48, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 473737082, + "total_wall_ns": 490054057, + "total_cpu_ns": 494930000, + "weight": 473, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 3 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 480134787, + "total_wall_ns": 489139374, + "total_cpu_ns": 490367000, + "weight": 48, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 0 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 484588248, + "total_wall_ns": 484978928, + "total_cpu_ns": 485599000, + "weight": 48, + "callbacks": 49, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 1 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 499160799, + "total_wall_ns": 499596202, + "total_cpu_ns": 500356000, + "weight": 50, + "callbacks": 51, + "context_reads": 50, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 484633588, + "total_wall_ns": 484634322, + "total_cpu_ns": 484585000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 1, + "position": 3 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 523101564, + "total_wall_ns": 524176842, + "total_cpu_ns": 524854000, + "weight": 52, + "callbacks": 53, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 0 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 540756649, + "total_wall_ns": 543796345, + "total_cpu_ns": 542584000, + "weight": 54, + "callbacks": 55, + "context_reads": 54, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 1 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 593166017, + "total_wall_ns": 606361451, + "total_cpu_ns": 613626000, + "weight": 60, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 502111627, + "total_wall_ns": 502112982, + "total_cpu_ns": 501148000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 2, + "position": 3 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 513709992, + "total_wall_ns": 514118577, + "total_cpu_ns": 513270000, + "weight": 52, + "callbacks": 53, + "context_reads": 52, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 0 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 507835298, + "total_wall_ns": 507837053, + "total_cpu_ns": 502494000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 3, + "position": 1 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 511281204, + "total_wall_ns": 520345831, + "total_cpu_ns": 519870000, + "weight": 51, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 2 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 520011135, + "total_wall_ns": 520354016, + "total_cpu_ns": 520404000, + "weight": 52, + "callbacks": 52, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 3 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 506710848, + "total_wall_ns": 507030106, + "total_cpu_ns": 507072000, + "weight": 51, + "callbacks": 52, + "context_reads": 51, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 0 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 490413382, + "total_wall_ns": 490414719, + "total_cpu_ns": 485114000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 4, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 512821915, + "total_wall_ns": 515303479, + "total_cpu_ns": 516493000, + "weight": 51, + "callbacks": 52, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 2 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 523057127, + "total_wall_ns": 532543916, + "total_cpu_ns": 532375000, + "weight": 52, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 3 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 513308510, + "total_wall_ns": 513848602, + "total_cpu_ns": 508420000, + "weight": 51, + "callbacks": 52, + "context_reads": 51, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 0 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 507045254, + "total_wall_ns": 507416723, + "total_cpu_ns": 505205000, + "weight": 50, + "callbacks": 51, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 1 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 495205372, + "total_wall_ns": 504073369, + "total_cpu_ns": 504809000, + "weight": 50, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 495020167, + "total_wall_ns": 495020986, + "total_cpu_ns": 494453000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 5, + "position": 3 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 528069623, + "total_wall_ns": 528440951, + "total_cpu_ns": 524812000, + "weight": 53, + "callbacks": 54, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 0 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 488474191, + "total_wall_ns": 488475246, + "total_cpu_ns": 488178000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 6, + "position": 1 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 498560538, + "total_wall_ns": 506285430, + "total_cpu_ns": 507373000, + "weight": 49, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 2 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 562519563, + "total_wall_ns": 562950544, + "total_cpu_ns": 561565000, + "weight": 56, + "callbacks": 53, + "context_reads": 52, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 3 + }, + { + "mode": "batched", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 630029049, + "total_wall_ns": 640454168, + "total_cpu_ns": 640437000, + "weight": 63, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 0 + }, + { + "mode": "otel", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 529602058, + "total_wall_ns": 530062839, + "total_cpu_ns": 530330000, + "weight": 53, + "callbacks": 54, + "context_reads": 53, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 1 + }, + { + "mode": "immediate", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 514838102, + "total_wall_ns": 517166767, + "total_cpu_ns": 518240000, + "weight": 51, + "callbacks": 52, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 2 + }, + { + "mode": "off", + "hz": 100, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 479385725, + "total_wall_ns": 479386597, + "total_cpu_ns": 478794000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 7, + "position": 3 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 528713810, + "total_wall_ns": 611830727, + "total_cpu_ns": 611019000, + "weight": 528, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 1, + "position": 0 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 654105849, + "total_wall_ns": 654886183, + "total_cpu_ns": 662443000, + "weight": 654, + "callbacks": 651, + "context_reads": 650, + "failures": 0, + "stacks": 2, + "round": 1, + "position": 1 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 645821709, + "total_wall_ns": 646186831, + "total_cpu_ns": 655344000, + "weight": 646, + "callbacks": 647, + "context_reads": 0, + "failures": 0, + "stacks": 5, + "round": 1, + "position": 2 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 507387991, + "total_wall_ns": 507389209, + "total_cpu_ns": 497552000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 1, + "position": 3 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 501532601, + "total_wall_ns": 577192005, + "total_cpu_ns": 582614000, + "weight": 502, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 2, + "position": 0 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 504975006, + "total_wall_ns": 504975908, + "total_cpu_ns": 504955000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 2, + "position": 1 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 596793265, + "total_wall_ns": 598448822, + "total_cpu_ns": 602016000, + "weight": 597, + "callbacks": 583, + "context_reads": 0, + "failures": 0, + "stacks": 10, + "round": 2, + "position": 2 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 667383339, + "total_wall_ns": 668208471, + "total_cpu_ns": 675916000, + "weight": 667, + "callbacks": 654, + "context_reads": 653, + "failures": 0, + "stacks": 11, + "round": 2, + "position": 3 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 522886481, + "total_wall_ns": 522896884, + "total_cpu_ns": 522668000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 3, + "position": 0 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 687929057, + "total_wall_ns": 688695626, + "total_cpu_ns": 693693000, + "weight": 688, + "callbacks": 679, + "context_reads": 0, + "failures": 0, + "stacks": 11, + "round": 3, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 814700498, + "total_wall_ns": 815345540, + "total_cpu_ns": 833285000, + "weight": 815, + "callbacks": 732, + "context_reads": 731, + "failures": 0, + "stacks": 14, + "round": 3, + "position": 2 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 510444417, + "total_wall_ns": 587011723, + "total_cpu_ns": 592513000, + "weight": 510, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 3, + "position": 3 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 594107975, + "total_wall_ns": 679666932, + "total_cpu_ns": 693496000, + "weight": 594, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 4, + "position": 0 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 516607281, + "total_wall_ns": 516608561, + "total_cpu_ns": 514878000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 4, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 651289114, + "total_wall_ns": 651842595, + "total_cpu_ns": 661410000, + "weight": 651, + "callbacks": 652, + "context_reads": 651, + "failures": 0, + "stacks": 5, + "round": 4, + "position": 2 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 599427366, + "total_wall_ns": 599884092, + "total_cpu_ns": 604107000, + "weight": 599, + "callbacks": 595, + "context_reads": 0, + "failures": 0, + "stacks": 3, + "round": 4, + "position": 3 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 518384786, + "total_wall_ns": 518386346, + "total_cpu_ns": 510597000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 5, + "position": 0 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 492598728, + "total_wall_ns": 568028584, + "total_cpu_ns": 572904000, + "weight": 493, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 5, + "position": 1 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 624876761, + "total_wall_ns": 625193105, + "total_cpu_ns": 631428000, + "weight": 625, + "callbacks": 625, + "context_reads": 624, + "failures": 0, + "stacks": 2, + "round": 5, + "position": 2 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 620792867, + "total_wall_ns": 621336820, + "total_cpu_ns": 628619000, + "weight": 621, + "callbacks": 619, + "context_reads": 0, + "failures": 0, + "stacks": 7, + "round": 5, + "position": 3 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 556437181, + "total_wall_ns": 648545658, + "total_cpu_ns": 657931000, + "weight": 557, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 0 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 649073351, + "total_wall_ns": 649552433, + "total_cpu_ns": 657295000, + "weight": 649, + "callbacks": 650, + "context_reads": 649, + "failures": 0, + "stacks": 1, + "round": 6, + "position": 1 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 492098100, + "total_wall_ns": 492099215, + "total_cpu_ns": 492075000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 6, + "position": 2 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 679256871, + "total_wall_ns": 679868547, + "total_cpu_ns": 690970000, + "weight": 679, + "callbacks": 670, + "context_reads": 0, + "failures": 0, + "stacks": 9, + "round": 6, + "position": 3 + }, + { + "mode": "immediate", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 632506605, + "total_wall_ns": 632953890, + "total_cpu_ns": 641788000, + "weight": 632, + "callbacks": 633, + "context_reads": 0, + "failures": 0, + "stacks": 2, + "round": 7, + "position": 0 + }, + { + "mode": "otel", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 644716235, + "total_wall_ns": 645153625, + "total_cpu_ns": 654442000, + "weight": 645, + "callbacks": 646, + "context_reads": 645, + "failures": 0, + "stacks": 2, + "round": 7, + "position": 1 + }, + { + "mode": "batched", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 528549059, + "total_wall_ns": 611755954, + "total_cpu_ns": 617451000, + "weight": 529, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 1, + "round": 7, + "position": 2 + }, + { + "mode": "off", + "hz": 1000, + "depth": 256, + "iterations": 71409363, + "checksum": 1076438950, + "work_wall_ns": 512743365, + "total_wall_ns": 512744401, + "total_cpu_ns": 512499000, + "weight": 0, + "callbacks": 0, + "context_reads": 0, + "failures": 0, + "stacks": 0, + "round": 7, + "position": 3 + } + ] +} diff --git a/reports/2026-11-17-otel-callback-preflight/sdk-rotation.json b/reports/2026-11-17-otel-callback-preflight/sdk-rotation.json new file mode 100644 index 0000000..f2d3d30 --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight/sdk-rotation.json @@ -0,0 +1,30 @@ +{ + "php": "8.5.12", + "excimer": "1.2.7", + "recording_span_class": "OpenTelemetry\\SDK\\Trace\\Span", + "unsampled_span_class": "OpenTelemetry\\SDK\\Trace\\NonRecordingSpan", + "unsampled_valid_local": true, + "native_weight": 405, + "batch_weight": 405, + "second_flush_weight": 0, + "phases": { + "sdkNone": 35, + "sdkParent": 35, + "sdkChild": 37, + "sdkEndedActive": 38, + "sdkRestored": 35, + "sdkUnsampled": 36, + "sdkRemote": 69, + "sdkLocalChild": 35, + "sdkAfterDetach": 35 + }, + "context_mismatches": 0, + "callback_autoloads": [], + "warnings": [], + "exports_in_callback": 0, + "exported_spans": 3, + "multi_entry_logs": 0, + "rotation_collected": 2, + "sink_in_callback": 0, + "pass": true +} diff --git a/reports/2026-11-17-otel-callback-preflight/sdk.json b/reports/2026-11-17-otel-callback-preflight/sdk.json new file mode 100644 index 0000000..b396e77 --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight/sdk.json @@ -0,0 +1,30 @@ +{ + "php": "8.5.12", + "excimer": "1.2.7", + "recording_span_class": "OpenTelemetry\\SDK\\Trace\\Span", + "unsampled_span_class": "OpenTelemetry\\SDK\\Trace\\NonRecordingSpan", + "unsampled_valid_local": true, + "native_weight": 378, + "batch_weight": 378, + "second_flush_weight": 0, + "phases": { + "sdkNone": 35, + "sdkParent": 35, + "sdkChild": 35, + "sdkEndedActive": 35, + "sdkRestored": 35, + "sdkUnsampled": 35, + "sdkRemote": 70, + "sdkLocalChild": 35, + "sdkAfterDetach": 35 + }, + "context_mismatches": 0, + "callback_autoloads": [], + "warnings": [], + "exports_in_callback": 0, + "exported_spans": 3, + "multi_entry_logs": 0, + "rotation_collected": null, + "sink_in_callback": 0, + "pass": true +} diff --git a/reports/2026-11-17-otel-callback-preflight/trace-checks.json b/reports/2026-11-17-otel-callback-preflight/trace-checks.json new file mode 100644 index 0000000..67b6fe1 --- /dev/null +++ b/reports/2026-11-17-otel-callback-preflight/trace-checks.json @@ -0,0 +1,23 @@ +{ + "direct": { + "marked_callbacks": 358, + "targeted_syscalls": 0, + "balanced_markers": true, + "examples": [], + "pass": true + }, + "rotation": { + "marked_callbacks": 315, + "targeted_syscalls": 0, + "balanced_markers": true, + "examples": [], + "pass": true + }, + "cold_rotation": { + "marked_callbacks": 65, + "targeted_syscalls": 0, + "balanced_markers": true, + "examples": [], + "pass": true + } +}