Segment Analytics

as far as I understand, the primary beneficiary of including @segment/analytics-next in @neo4j-nvl is not me as the end-user, but rather the authors of the @neo4j-nvl package.

The Network Tab in my next.js app is full of blocked requests to https://api.segment.io
and the console periodically shows the error:

next-dev.js:20 Error sending segment performance metrics TypeError: Failed to fetch
at fetch (fetch.js:12:48)
at RemoteMetrics.eval (remote-metrics.js:95:44)
at step (tslib.es6.mjs:147:1)
at Object.eval [as next] (tslib.es6.mjs:128:44)
at eval (tslib.es6.mjs:121:1)
at new Promise ()
at __awaiter (tslib.es6.mjs:117:1)
at RemoteMetrics.send (remote-metrics.js:88:25)
at RemoteMetrics.eval (remote-metrics.js:76:1)
at step (tslib.es6.mjs:147:1)
at Object.eval [as next] (tslib.es6.mjs:128:44)
at eval (tslib.es6.mjs:121:1)
at new Promise ()
at __awaiter (tslib.es6.mjs:117:1)
at RemoteMetrics.flush (remote-metrics.js:68:25)
at run_1 (remote-metrics.js:39:1)

how do I configure or opt-out of the interaction with segment-analytics?

https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/supported-browsers/
Brave browser is listed as supported

I initiated AnalyticsBrowser with writeKey exposed in Network Payload:

Resolved by turning off the shields for localhost:

Hi @yuchistyakov, apologies for the late reply. You can turn off telemetry by setting the disableTelemetry option to false when initializing NVL.

Hope this helps, please let me know if you have any questions or comments!

disableTelemetry: true does work.

thanks.

https://res.cloudinary.com/dzd5mddlm/video/upload/v1768342920/Discord/t1qjlcxrdrjpxqetzyul.mp4