CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 15:42:39 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neo4j/neo4j-javascript-driver.git
etag: W/"6ef336c15bf98eab90bc8f80959abcd5"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=skXgyZmFFprMPfBixUfTe1IT1dQrSCiq8sHc0DfkNpH61SCEURh0PWJTqnx%2FrFggrtlNbZdwP5C77ru6I0v03HfVKb3MQn%2FfsPRTd%2F4bEKHvaRfBoL1zaULqwHoBviw7ZwGWP1a51woU501EgqIaEvRtQUXf%2F%2FfK3x1nTWB%2FzQrSZ6ptLSXEyOzM%2Fva9IC4C%2BBJkuOf81Yxa5m4maZM0MNCYRZ6jvymGNXF6ObYOmCxC2I1Fjmo4cJ%2BBmR%2BMHiB8vtIyYdYjxYboQIHOUhQe5A%3D%3D--vet8GCy3WP6mFWXc--NyIVeC8zR1eJze2Qt6cvIg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1148423435.1753198958; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 15:42:38 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 15:42:38 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CC22:CBC1A:EECCA:115D3E:687FB16E
Introduce API Metrics/Telemetry (#1142) · neo4j/neo4j-javascript-driver@266671a · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/create.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/handshake.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/request-message.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/stream-observers.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v1.test.js.snap
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v2.test.js.snap
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 266671a
Introduce API Metrics/Telemetry (#1142)
Neo4j would like to be able to track more information about driver apis usage, so that smarter decisions can be made on improving drivers and their stack.
The collection of metrics must be respectful of users. Thus, the collected metrics are:
1. impossible to be tied back the customer or user
1. transparent to the users that inspect
1. restrained to required metrics
The metric collection is disabled by default in Neo4j. It can be enabled in the server by setting `server.bolt.telemetry.enabled` to `true`.
However, the metric collection is enabled by default in the drivers. It can be disabled in the driver by configuring the driver with `telemetryDisabled` to `true`. Default: `false`.
**Metrics are only collected when enabled both in server and driver instances.**
Disabling metrics on driver:
```typescript
const driver = neo4j.driver(
'neo4j://localhost:7687', neo4j.auth.basic('neo4j', 'password'), { telemetryDisabled: true })
```
Co-authored-by: Robsdedude <dev@rouvenbauer.de>1 parent b774cf3 commit 266671aCopy full SHA for 266671a
File tree
Expand file treeCollapse file tree
70 files changed
+2786
-177
lines changedFilter options
- packages
- bolt-connection
- src
- bolt
- connection
- test
- bolt
- __snapshots__
- behaviour
- connection
- core
- src
- internal
- test
- internal
- neo4j-driver-deno/lib
- bolt-connection
- bolt
- connection
- core
- internal
- neo4j-driver
- src
- test
- internal
- rx
- testkit-backend/src
- feature
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
70 files changed
+2786
-177
lines changedpackages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
454 | 455 |
| |
455 | 456 |
| |
456 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
457 | 476 |
| |
458 | 477 |
| |
459 | 478 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v5x4.js
Copy file name to clipboard+61Lines changed: 61 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + |
packages/bolt-connection/src/bolt/bolt-protocol-v5x4.transformer.js
Copy file name to clipboard+24Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + |
packages/bolt-connection/src/bolt/create.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/create.js+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
222 | 223 |
| |
223 | 224 |
| |
224 | 225 |
| |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
225 | 234 |
| |
226 | 235 |
| |
227 | 236 |
| |
|
packages/bolt-connection/src/bolt/handshake.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/handshake.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
|
packages/bolt-connection/src/bolt/request-message.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/request-message.js+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
| |||
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
| 67 | + | |
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
| |||
367 | 371 |
| |
368 | 372 |
| |
369 | 373 |
| |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
370 | 383 |
| |
371 | 384 |
| |
372 | 385 |
| |
|
packages/bolt-connection/src/bolt/stream-observers.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/stream-observers.js+34-1Lines changed: 34 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
526 | 526 |
| |
527 | 527 |
| |
528 | 528 |
| |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
529 | 561 |
| |
530 | 562 |
| |
531 | 563 |
| |
| |||
708 | 740 |
| |
709 | 741 |
| |
710 | 742 |
| |
711 |
| - | |
| 743 | + | |
| 744 | + | |
712 | 745 |
|
packages/bolt-connection/src/connection/connection-channel.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/connection/connection-channel.js+29-2Lines changed: 29 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
| |||
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
124 |
| - | |
| 125 | + | |
| 126 | + | |
125 | 127 |
| |
126 | 128 |
| |
127 | 129 |
| |
| |||
137 | 139 |
| |
138 | 140 |
| |
139 | 141 |
| |
| 142 | + | |
| 143 | + | |
140 | 144 |
| |
141 | 145 |
| |
142 | 146 |
| |
| |||
157 | 161 |
| |
158 | 162 |
| |
159 | 163 |
| |
| 164 | + | |
160 | 165 |
| |
161 | 166 |
| |
162 | 167 |
| |
163 | 168 |
| |
| 169 | + | |
164 | 170 |
| |
165 | 171 |
| |
166 | 172 |
| |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
167 | 189 |
| |
168 | 190 |
| |
169 | 191 |
| |
| |||
290 | 312 |
| |
291 | 313 |
| |
292 | 314 |
| |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
293 | 320 |
| |
294 | 321 |
| |
295 | 322 |
| |
|
packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v1.test.js.snap
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v1.test.js.snap+4-4Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
|
packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v2.test.js.snap
Copy file name to clipboardExpand all lines: packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v2.test.js.snap+4-4Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
|
You can’t perform that action at this time.
0 commit comments