pepe-http 0.42.1 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +150 -0
- package/completions/_pepe +1 -0
- package/completions/_pepe.ps1 +1 -0
- package/completions/pepe.bash +5 -1
- package/completions/pepe.fish +2 -1
- package/man/pepe.1 +4 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/schema/compare.schema.json +18 -0
- package/schema/run.schema.json +62 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,156 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
|
+
## [0.43.0](https://github.com/omarmhaimdat/pepe/compare/v0.42.2...v0.43.0) - 2026-10-16
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- *(agents)* --otlp says which operation inside the service the time went to, and the loop to make it faster ([#189](https://github.com/omarmhaimdat/pepe/pull/189))
|
|
14
|
+
|
|
15
|
+
## Why
|
|
16
|
+
|
|
17
|
+
Every load tool, pepe included, stops at "p99 is 480 ms". The next
|
|
18
|
+
question is always which part of the code that is, and answering it
|
|
19
|
+
means leaving the tool. This PR answers it in the same command, and
|
|
20
|
+
gives an agent a loop it can close on its own: measure, find the slow
|
|
21
|
+
operation, change the code, measure again, compare.
|
|
22
|
+
|
|
23
|
+
## What it does
|
|
24
|
+
|
|
25
|
+
**`--otlp :4318`** (plain runs for now)
|
|
26
|
+
- Each request carries a `traceparent` of pepe's making. The run id is
|
|
27
|
+
the trace id's high half and the request number, mixed, is the low half.
|
|
28
|
+
The sampled flag is set, so a parent-based sampler keeps every request.
|
|
29
|
+
- pepe runs an OTLP/HTTP receiver at `/v1/traces` that takes protobuf or
|
|
30
|
+
JSON. The protobuf reader is about 150 lines, hand-written, so there's
|
|
31
|
+
no new dependency. It keeps only spans from its own traces.
|
|
32
|
+
- `/v1/metrics` and `/v1/logs` get a 200 and are ignored. Gzip gets a
|
|
33
|
+
415, and the verdict says to set `OTEL_EXPORTER_OTLP_COMPRESSION=none`.
|
|
34
|
+
- When the run ends, pepe waits for the exporters' last batch. It stops
|
|
35
|
+
early once every request that got a response has its root span, and
|
|
36
|
+
gives up after 15 s at most.
|
|
37
|
+
- `spans` in the report: coverage, the server's own time (median, p90,
|
|
38
|
+
p99), and `operations[]`. Each operation has calls per request, median
|
|
39
|
+
and p99 call time, `share_percent` (its own time, less its children's,
|
|
40
|
+
over all requests) and `slowest_share_percent` (the same over requests
|
|
41
|
+
at or above the server's p99).
|
|
42
|
+
- `summary.slowest_requests[]` gains `trace_id`, `server_ms` and `spent`
|
|
43
|
+
(the top 3 operations).
|
|
44
|
+
- Verdict findings: where the time went; an operation that's small at
|
|
45
|
+
the median but large in the tail (it waits on a lock, a pool or a
|
|
46
|
+
queue); the gap between pepe's latency and the server's own time; and
|
|
47
|
+
what to set when no spans arrive.
|
|
48
|
+
- The text report (headless, or after the dashboard closes) prints a
|
|
49
|
+
"Where the server's time went" table.
|
|
50
|
+
|
|
51
|
+
**`pepe compare`**: two reports with spans give `operations[]` (each
|
|
52
|
+
operation before and after) and a finding for each one that moved. The
|
|
53
|
+
verdict still comes from pepe's own measurements.
|
|
54
|
+
|
|
55
|
+
**MCP**
|
|
56
|
+
- `run` takes `otlp`.
|
|
57
|
+
- `run`, `ping`, `ramp`, `api`, `flow` and `replay` take `save`, so an
|
|
58
|
+
agent has a file to pass to `compare`.
|
|
59
|
+
- A `speed-up` prompt (`/pepe:speed-up URL [goal]` in Claude Code) walks
|
|
60
|
+
the loop.
|
|
61
|
+
- Every tool has annotations: `compare` is read-only and the others
|
|
62
|
+
reach outside the machine.
|
|
63
|
+
- The server instructions now lead with the tasks pepe is for. They load
|
|
64
|
+
at session start, while tool definitions may only be looked up later.
|
|
65
|
+
|
|
66
|
+
**Discoverability**
|
|
67
|
+
- The skill's description puts its trigger words first ("slow",
|
|
68
|
+
"faster", "benchmark", "OpenTelemetry"), since that text is what Claude
|
|
69
|
+
and Codex match on. It also has a section on the loop.
|
|
70
|
+
- Codex: a root `plugin.json` and `mcp.json` (the portable format
|
|
71
|
+
OpenAI's docs describe), plus `.agents/plugins/marketplace.json`. Codex
|
|
72
|
+
also reads `.claude-plugin/marketplace.json` as a legacy marketplace.
|
|
73
|
+
- The docs now cover `codex mcp add`, `~/.codex/config.toml`, a Cursor
|
|
74
|
+
install link, and `npx skills add omarmhaimdat/pepe`.
|
|
75
|
+
- `AGENTS.md`, `llms.txt` and the Claude plugin manifests mention the
|
|
76
|
+
loop.
|
|
77
|
+
- This PR includes the marketplace `source` fix from
|
|
78
|
+
omarmhaimdat/pepe#188 (same lines), so it works whichever merges first.
|
|
79
|
+
|
|
80
|
+
## Tested
|
|
81
|
+
|
|
82
|
+
- **End to end against a real service**: a Python service instrumented
|
|
83
|
+
with the official OpenTelemetry SDK (1.45.1, http/protobuf exporter).
|
|
84
|
+
Its `/checkout` makes a cache read and a query that holds a lock.
|
|
85
|
+
- 2,000 requests at 16 concurrent: 100% coverage. `SELECT orders` was
|
|
86
|
+
98% of the slowest requests' server time, and the slowest requests'
|
|
87
|
+
`spent` agreed.
|
|
88
|
+
- With the lock removed: `pepe compare` said "SELECT orders down 95%:
|
|
89
|
+
47.74ms → 2.57ms a call". It also showed the bottleneck *moving* to the
|
|
90
|
+
cache read, which is real: at 1.6k req/s the Python service is
|
|
91
|
+
GIL-bound.
|
|
92
|
+
- The same loop through `pepe mcp` (guardrails `--allow-host 127.0.0.1
|
|
93
|
+
--max-requests 5000`, then `run` with `otlp` and `save`).
|
|
94
|
+
- JSON export accepted, gzip refused with the message, metrics and logs
|
|
95
|
+
answered.
|
|
96
|
+
- **Unit tests**: the breakdown (shares, tail, self time with
|
|
97
|
+
overlapping children, warm-up excluded), the protobuf reader, requests
|
|
98
|
+
framed by length and by chunks, compare by operation, MCP
|
|
99
|
+
prompt/`save`/annotations, schema fit. `cargo +1.98 test`: 367 passed.
|
|
100
|
+
`clippy -D warnings` passes on 1.98.
|
|
101
|
+
- **Performance**: `bench/compare.sh master branch 3`, with `--otlp`
|
|
102
|
+
off. Results below; no regression.
|
|
103
|
+
|
|
104
|
+
| Workload | CPU ms/1k, master | branch | Peak MB, master | branch |
|
|
105
|
+
|---|---|---|---|---|
|
|
106
|
+
| tiny-c64 | 5.55 | 5.45 | 10.1 | 10.2 |
|
|
107
|
+
| body16k-c64 | 6.40 | 6.40 | 10.0 | 10.0 |
|
|
108
|
+
| slow20ms-c1000 | 6.80 | 7.00 | 13.1 | 13.0 |
|
|
109
|
+
| tls-c64 | 5.90 | 5.90 | 13.6 | 13.2 |
|
|
110
|
+
|
|
111
|
+
## Not verified
|
|
112
|
+
- **Codex**: Codex isn't installed here, so the plugin files follow
|
|
113
|
+
OpenAI's documentation but haven't been loaded by Codex. The MCP and
|
|
114
|
+
AGENTS.md routes are standard.
|
|
115
|
+
- **Cursor**: the install link hasn't been clicked.
|
|
116
|
+
|
|
117
|
+
## For 1.0
|
|
118
|
+
This adds a flag (`--otlp`), report fields (`spans`, and the new
|
|
119
|
+
`slowest_requests` fields), a compare field (`operations`), MCP inputs
|
|
120
|
+
(`otlp`, `save`) and a prompt. All of them are additions, and `schema/`
|
|
121
|
+
is updated, but per ROADMAP.md they restart the month-without-changes
|
|
122
|
+
clock.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## [0.42.2](https://github.com/omarmhaimdat/pepe/compare/v0.42.1...v0.42.2) - 2026-10-16
|
|
126
|
+
|
|
127
|
+
### Fixed
|
|
128
|
+
|
|
129
|
+
- *(agents)* the plugin marketplace is one Claude Code takes ([#188](https://github.com/omarmhaimdat/pepe/pull/188))
|
|
130
|
+
|
|
131
|
+
## What was wrong
|
|
132
|
+
|
|
133
|
+
The install line in the docs fails on master:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
$ claude plugin marketplace add omarmhaimdat/pepe
|
|
137
|
+
✘ Failed to add marketplace: … marketplace.json: Invalid schema: … plugins.0.source: Invalid input
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Claude Code wants a plugin's `source` to be a path that starts with
|
|
141
|
+
`./`, and ours was `"."`. Since the marketplace can't be added, `claude
|
|
142
|
+
plugin install pepe@pepe` fails too. I checked it with Claude Code
|
|
143
|
+
2.1.63, adding a checkout of master as a marketplace under a throwaway
|
|
144
|
+
`HOME`.
|
|
145
|
+
|
|
146
|
+
## The fix
|
|
147
|
+
|
|
148
|
+
- `"source": "./"`. `claude plugin validate .` passes now, and the same
|
|
149
|
+
throwaway-`HOME` test adds the marketplace and installs `pepe@pepe`.
|
|
150
|
+
- `metadata.description` on the marketplace, which the validator asks
|
|
151
|
+
for.
|
|
152
|
+
- A test (`the_plugin_marketplace_is_one_claude_code_takes`) that holds
|
|
153
|
+
every plugin source to `./`, so this can't come back unnoticed.
|
|
154
|
+
|
|
155
|
+
It's separate from the agent-loop PR so it can ship on its own as a
|
|
156
|
+
patch release.
|
|
157
|
+
|
|
158
|
+
|
|
9
159
|
## [0.42.1](https://github.com/omarmhaimdat/pepe/compare/v0.42.0...v0.42.1) - 2026-10-15
|
|
10
160
|
|
|
11
161
|
### Fixed
|
package/completions/_pepe
CHANGED
|
@@ -40,6 +40,7 @@ _pepe() {
|
|
|
40
40
|
'--max-concurrency=[Refuse a concurrency above this]:N:_default' \
|
|
41
41
|
'*--fail-if=[End with exit code 4 when the run crosses this, for CI and scripts\: '\''p99 > 300ms'\'', '\''errors > 1%'\''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)]:CONDITION:_default' \
|
|
42
42
|
'--metrics=[Serve the live numbers for Prometheus at http\://ADDR/metrics while the run goes, e.g. \:9100 or 127.0.0.1\:9100, so a soak run or a long ping shows up in Grafana next to the server'\''s own]:ADDR:_default' \
|
|
43
|
+
'--otlp=[Take the service'\''s OpenTelemetry spans at ADDR (OTLP over HTTP, as \:4318) and say where its time went\: each request carries its own traceparent, and the report breaks the server'\''s time down by span. Point the service at it\: OTEL_EXPORTER_OTLP_ENDPOINT=http\://localhost\:4318]:ADDR:_default' \
|
|
43
44
|
'--config=[Read settings from this file instead of ./pepe.toml; flags on the command line win over it]:FILE:_files' \
|
|
44
45
|
'--write-config=[Write the settings as they stand to this file, as a pepe.toml, and exit]:FILE:_files' \
|
|
45
46
|
'(--config)--load=[Run a test saved on the setup screen (ctrl-s)\: ./.pepe/tests/NAME.toml; flags on the command line win over it]:NAME:_default' \
|
package/completions/_pepe.ps1
CHANGED
|
@@ -46,6 +46,7 @@ Register-ArgumentCompleter -Native -CommandName 'pepe' -ScriptBlock {
|
|
|
46
46
|
[CompletionResult]::new('--max-concurrency', '--max-concurrency', [CompletionResultType]::ParameterName, 'Refuse a concurrency above this')
|
|
47
47
|
[CompletionResult]::new('--fail-if', '--fail-if', [CompletionResultType]::ParameterName, 'End with exit code 4 when the run crosses this, for CI and scripts: ''p99 > 300ms'', ''errors > 1%''; repeat for more. The report is still printed. (pepe ping has --slo for the same.)')
|
|
48
48
|
[CompletionResult]::new('--metrics', '--metrics', [CompletionResultType]::ParameterName, 'Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server''s own')
|
|
49
|
+
[CompletionResult]::new('--otlp', '--otlp', [CompletionResultType]::ParameterName, 'Take the service''s OpenTelemetry spans at ADDR (OTLP over HTTP, as :4318) and say where its time went: each request carries its own traceparent, and the report breaks the server''s time down by span. Point the service at it: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318')
|
|
49
50
|
[CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it')
|
|
50
51
|
[CompletionResult]::new('--write-config', '--write-config', [CompletionResultType]::ParameterName, 'Write the settings as they stand to this file, as a pepe.toml, and exit')
|
|
51
52
|
[CompletionResult]::new('--load', '--load', [CompletionResultType]::ParameterName, 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it')
|
package/completions/pepe.bash
CHANGED
|
@@ -107,7 +107,7 @@ _pepe() {
|
|
|
107
107
|
|
|
108
108
|
case "${cmd}" in
|
|
109
109
|
pepe)
|
|
110
|
-
opts="-h -n -z -m -H -t -d -p -k -i -c -u -V --help --number --duration --curl --method --headers --timeout --warmup --threads --rate --body --proxy --insecure --disable-compression --disable-keepalive --disable-redirects --json --trace-header --snapshot --allow-host --max-requests --max-rate --max-concurrency --dry-run --fail-if --metrics --setup --config --write-config --load --keep --record --concurrency --user-agent --version ping ramp compare rerun history api flow replay logs schema mcp self-update completions help"
|
|
110
|
+
opts="-h -n -z -m -H -t -d -p -k -i -c -u -V --help --number --duration --curl --method --headers --timeout --warmup --threads --rate --body --proxy --insecure --disable-compression --disable-keepalive --disable-redirects --json --trace-header --snapshot --allow-host --max-requests --max-rate --max-concurrency --dry-run --fail-if --metrics --otlp --setup --config --write-config --load --keep --record --concurrency --user-agent --version ping ramp compare rerun history api flow replay logs schema mcp self-update completions help"
|
|
111
111
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
|
112
112
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
113
113
|
return 0
|
|
@@ -213,6 +213,10 @@ _pepe() {
|
|
|
213
213
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
214
214
|
return 0
|
|
215
215
|
;;
|
|
216
|
+
--otlp)
|
|
217
|
+
COMPREPLY=($(compgen -f "${cur}"))
|
|
218
|
+
return 0
|
|
219
|
+
;;
|
|
216
220
|
--config)
|
|
217
221
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
218
222
|
return 0
|
package/completions/pepe.fish
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Print an optspec for argparse to handle cmd's options that are independent of any subcommand.
|
|
2
2
|
function __fish_pepe_global_optspecs
|
|
3
|
-
string join \n h/help n/number= z/duration= curl m/method= H/headers= t/timeout= warmup= threads= rate= d/body= p/proxy= k/insecure disable-compression disable-keepalive disable-redirects json trace-header= snapshot= allow-host= max-requests= max-rate= max-concurrency= dry-run fail-if= metrics= i/setup config= write-config= load= keep= record c/concurrency= u/user-agent= V/version
|
|
3
|
+
string join \n h/help n/number= z/duration= curl m/method= H/headers= t/timeout= warmup= threads= rate= d/body= p/proxy= k/insecure disable-compression disable-keepalive disable-redirects json trace-header= snapshot= allow-host= max-requests= max-rate= max-concurrency= dry-run fail-if= metrics= otlp= i/setup config= write-config= load= keep= record c/concurrency= u/user-agent= V/version
|
|
4
4
|
end
|
|
5
5
|
|
|
6
6
|
function __fish_pepe_needs_command
|
|
@@ -42,6 +42,7 @@ complete -c pepe -n "__fish_pepe_needs_command" -l max-rate -d 'Refuse a --rate
|
|
|
42
42
|
complete -c pepe -n "__fish_pepe_needs_command" -l max-concurrency -d 'Refuse a concurrency above this' -r
|
|
43
43
|
complete -c pepe -n "__fish_pepe_needs_command" -l fail-if -d 'End with exit code 4 when the run crosses this, for CI and scripts: \'p99 > 300ms\', \'errors > 1%\'; repeat for more. The report is still printed. (pepe ping has --slo for the same.)' -r
|
|
44
44
|
complete -c pepe -n "__fish_pepe_needs_command" -l metrics -d 'Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server\'s own' -r
|
|
45
|
+
complete -c pepe -n "__fish_pepe_needs_command" -l otlp -d 'Take the service\'s OpenTelemetry spans at ADDR (OTLP over HTTP, as :4318) and say where its time went: each request carries its own traceparent, and the report breaks the server\'s time down by span. Point the service at it: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318' -r
|
|
45
46
|
complete -c pepe -n "__fish_pepe_needs_command" -l config -d 'Read settings from this file instead of ./pepe.toml; flags on the command line win over it' -r -F
|
|
46
47
|
complete -c pepe -n "__fish_pepe_needs_command" -l write-config -d 'Write the settings as they stand to this file, as a pepe.toml, and exit' -r -F
|
|
47
48
|
complete -c pepe -n "__fish_pepe_needs_command" -l load -d 'Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it' -r
|
package/man/pepe.1
CHANGED
|
@@ -8,7 +8,7 @@ pepe \- HTTP load generator
|
|
|
8
8
|
.ie \n(.g .ds Aq \(aq
|
|
9
9
|
.el .ds Aq '
|
|
10
10
|
.SH SYNOPSIS
|
|
11
|
-
\fBpepe\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-n\fR|\fB\-\-number\fR] [\fB\-c\fR|\fB\-\-concurrency\fR] [\fB\-z\fR|\fB\-\-duration\fR] [\fB\-\-curl\fR] [\fB\-m\fR|\fB\-\-method\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-t\fR|\fB\-\-timeout\fR] [\fB\-\-warmup\fR] [\fB\-\-threads\fR] [\fB\-\-rate\fR] [\fB\-d\fR|\fB\-\-body\fR] [\fB\-u\fR|\fB\-\-user\-agent\fR] [\fB\-p\fR|\fB\-\-proxy\fR] [\fB\-k\fR|\fB\-\-insecure\fR] [\fB\-\-disable\-compression\fR] [\fB\-\-disable\-keepalive\fR] [\fB\-\-disable\-redirects\fR] [\fB\-\-json\fR] [\fB\-\-trace\-header\fR] [\fB\-\-snapshot\fR] [\fB\-\-allow\-host\fR] [\fB\-\-max\-requests\fR] [\fB\-\-max\-rate\fR] [\fB\-\-max\-concurrency\fR] [\fB\-\-dry\-run\fR] [\fB\-\-fail\-if\fR] [\fB\-\-metrics\fR] [\fB\-i\fR|\fB\-\-setup\fR] [\fB\-\-config\fR] [\fB\-\-write\-config\fR] [\fB\-\-load\fR] [\fB\-\-keep\fR] [\fB\-\-record\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIURL\fR] [\fIARGS\fR] [\fIsubcommands\fR]
|
|
11
|
+
\fBpepe\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-n\fR|\fB\-\-number\fR] [\fB\-c\fR|\fB\-\-concurrency\fR] [\fB\-z\fR|\fB\-\-duration\fR] [\fB\-\-curl\fR] [\fB\-m\fR|\fB\-\-method\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-t\fR|\fB\-\-timeout\fR] [\fB\-\-warmup\fR] [\fB\-\-threads\fR] [\fB\-\-rate\fR] [\fB\-d\fR|\fB\-\-body\fR] [\fB\-u\fR|\fB\-\-user\-agent\fR] [\fB\-p\fR|\fB\-\-proxy\fR] [\fB\-k\fR|\fB\-\-insecure\fR] [\fB\-\-disable\-compression\fR] [\fB\-\-disable\-keepalive\fR] [\fB\-\-disable\-redirects\fR] [\fB\-\-json\fR] [\fB\-\-trace\-header\fR] [\fB\-\-snapshot\fR] [\fB\-\-allow\-host\fR] [\fB\-\-max\-requests\fR] [\fB\-\-max\-rate\fR] [\fB\-\-max\-concurrency\fR] [\fB\-\-dry\-run\fR] [\fB\-\-fail\-if\fR] [\fB\-\-metrics\fR] [\fB\-\-otlp\fR] [\fB\-i\fR|\fB\-\-setup\fR] [\fB\-\-config\fR] [\fB\-\-write\-config\fR] [\fB\-\-load\fR] [\fB\-\-keep\fR] [\fB\-\-record\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIURL\fR] [\fIARGS\fR] [\fIsubcommands\fR]
|
|
12
12
|
.ie \n(.g .ds Aq \(aq
|
|
13
13
|
.el .ds Aq '
|
|
14
14
|
.SH DESCRIPTION
|
|
@@ -101,6 +101,9 @@ End with exit code 4 when the run crosses this, for CI and scripts: \*(Aqp99 > 3
|
|
|
101
101
|
\fB\-\-metrics\fR \fI<ADDR>\fR
|
|
102
102
|
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server\*(Aqs own
|
|
103
103
|
.TP
|
|
104
|
+
\fB\-\-otlp\fR \fI<ADDR>\fR
|
|
105
|
+
Take the service\*(Aqs OpenTelemetry spans at ADDR (OTLP over HTTP, as :4318) and say where its time went: each request carries its own traceparent, and the report breaks the server\*(Aqs time down by span. Point the service at it: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
|
|
106
|
+
.TP
|
|
104
107
|
\fB\-i\fR, \fB\-\-setup\fR
|
|
105
108
|
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
|
|
106
109
|
.TP
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hasInstallScript": true,
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"name": "pepe-http",
|
|
22
|
-
"version": "0.
|
|
22
|
+
"version": "0.43.0"
|
|
23
23
|
},
|
|
24
24
|
"node_modules/detect-libc": {
|
|
25
25
|
"engines": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"requires": true,
|
|
51
|
-
"version": "0.
|
|
51
|
+
"version": "0.43.0"
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/omarmhaimdat/pepe/releases/download/v0.
|
|
3
|
+
"https://github.com/omarmhaimdat/pepe/releases/download/v0.43.0"
|
|
4
4
|
],
|
|
5
5
|
"author": "Omar MHAIMDAT",
|
|
6
6
|
"bin": {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"zipExt": ".tar.xz"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
"version": "0.
|
|
122
|
+
"version": "0.43.0",
|
|
123
123
|
"volta": {
|
|
124
124
|
"node": "18.14.1",
|
|
125
125
|
"npm": "9.5.0"
|
|
@@ -26,6 +26,24 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
+
"operations": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "Two run reports with spans (--otlp): each operation inside the service before and after, the ones that moved first; absent otherwise",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["name", "before_share_percent", "after_share_percent", "significant"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"name": { "type": "string" },
|
|
37
|
+
"service": { "type": "string" },
|
|
38
|
+
"before_median_ms": { "type": "number", "description": "Its median call before; absent when it wasn't there" },
|
|
39
|
+
"after_median_ms": { "type": "number", "description": "Its median call after; absent when it is gone" },
|
|
40
|
+
"before_share_percent": { "type": "number" },
|
|
41
|
+
"after_share_percent": { "type": "number" },
|
|
42
|
+
"change_percent": { "type": "number" },
|
|
43
|
+
"significant": { "type": "boolean" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
29
47
|
"findings": {
|
|
30
48
|
"type": "array",
|
|
31
49
|
"items": {
|
package/schema/run.schema.json
CHANGED
|
@@ -65,7 +65,22 @@
|
|
|
65
65
|
"latency_ms": { "type": "number" },
|
|
66
66
|
"status": { "type": "integer" },
|
|
67
67
|
"request_id": { "type": "string" },
|
|
68
|
-
"id_header": { "type": "string" }
|
|
68
|
+
"id_header": { "type": "string" },
|
|
69
|
+
"trace_id": { "type": "string", "description": "--otlp: the trace id it was sent with (32 hex digits)" },
|
|
70
|
+
"server_ms": { "type": "number", "description": "--otlp: the server's time for it, from its spans" },
|
|
71
|
+
"spent": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"description": "--otlp: what the server's time went on, most first: each operation's own time, less what it called",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["name", "ms"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"name": { "type": "string" },
|
|
79
|
+
"service": { "type": "string" },
|
|
80
|
+
"ms": { "type": "number" }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
69
84
|
}
|
|
70
85
|
}
|
|
71
86
|
},
|
|
@@ -180,6 +195,52 @@
|
|
|
180
195
|
"left_out": { "type": "object", "additionalProperties": { "type": "integer" } },
|
|
181
196
|
"urls": { "type": "array", "items": { "$ref": "#/$defs/row" } }
|
|
182
197
|
}
|
|
198
|
+
},
|
|
199
|
+
"spans": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"description": "--otlp: where the server's time went, from the OpenTelemetry spans the service sent for the run's requests",
|
|
202
|
+
"required": ["requests", "traces", "spans", "coverage_percent", "operations"],
|
|
203
|
+
"properties": {
|
|
204
|
+
"receiver": { "type": "string", "description": "The address the spans were taken at" },
|
|
205
|
+
"requests": { "type": "integer", "minimum": 0, "description": "Requests measured that the service answered" },
|
|
206
|
+
"traces": { "type": "integer", "minimum": 0, "description": "Of those, the ones the service sent spans for" },
|
|
207
|
+
"spans": { "type": "integer", "minimum": 0 },
|
|
208
|
+
"coverage_percent": { "type": "number" },
|
|
209
|
+
"other_spans": { "type": "integer", "minimum": 0, "description": "Spans of traces pepe didn't start, set aside" },
|
|
210
|
+
"dropped_spans": { "type": "integer", "minimum": 0, "description": "Spans past what is kept, not in the numbers" },
|
|
211
|
+
"refused": { "type": "array", "items": { "type": "string" }, "description": "Why exports were turned away" },
|
|
212
|
+
"server": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"description": "The server's time for each request: its first span, start to end",
|
|
215
|
+
"required": ["median_ms", "p90_ms", "p99_ms", "slowest_requests"],
|
|
216
|
+
"properties": {
|
|
217
|
+
"median_ms": { "type": "number" },
|
|
218
|
+
"p90_ms": { "type": "number" },
|
|
219
|
+
"p99_ms": { "type": "number" },
|
|
220
|
+
"slowest_requests": { "type": "integer", "minimum": 0, "description": "Requests at or over the server's p99: what slowest_share_percent is of" }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"operations": {
|
|
224
|
+
"type": "array",
|
|
225
|
+
"description": "Each operation (service, span name and kind), most of the slowest requests' time first",
|
|
226
|
+
"items": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"required": ["name", "kind", "calls", "calls_per_request", "errors", "median_ms", "p99_ms", "share_percent", "slowest_share_percent"],
|
|
229
|
+
"properties": {
|
|
230
|
+
"name": { "type": "string", "description": "The span's name" },
|
|
231
|
+
"service": { "type": "string", "description": "The service.name of the service that sent it" },
|
|
232
|
+
"kind": { "type": "string", "enum": ["server", "client", "internal", "producer", "consumer", "unspecified"] },
|
|
233
|
+
"calls": { "type": "integer", "minimum": 0 },
|
|
234
|
+
"calls_per_request": { "type": "number" },
|
|
235
|
+
"errors": { "type": "integer", "minimum": 0, "description": "Calls whose status was an error" },
|
|
236
|
+
"median_ms": { "type": "number", "description": "Each call, start to end" },
|
|
237
|
+
"p99_ms": { "type": "number" },
|
|
238
|
+
"share_percent": { "type": "number", "description": "Its own time (less what it called) as a share of the server's time over all requests" },
|
|
239
|
+
"slowest_share_percent": { "type": "number", "description": "The same over the slowest requests" }
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
183
244
|
}
|
|
184
245
|
},
|
|
185
246
|
"$defs": {
|