
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
Convenience wrapper for
gotto that adds opentracing spans to the request.
Copied then adapted for opentracing from gl-got Assumes you already use opentracing-javascript in your project.
$ npm install --save ot-got
or
$ yarn add ot-got
This package can be used like you would use normal got with the exception of if you want to trace the requests, you must add a config, like so:
const otGot = require('ot-got');
otGot('https://your-microservice.io', {
tracingOptions: {
parentSpan: span,
injectHeaders: true
}
}).then(res => {
// response
});
Same as got (including the stream API and aliases), but with some additional options below.
Type: object
Shared config for all your tracing. See below for possible properties.
Type: Tracer
Default: globalTracer()
Can be set manually, but if not this will use the opentracing package globalTracer() function.
Type: Span
Passes in a span used as childOf ref to the span we create in ot-got for requests.
Type: boolean
Default: false
Wether you want the client do close the parent span or not
Type: boolean
Default: false
Wether you want the client to inject headers to the request or not. By doing this the service you are calling will be able to continue the trace.
MIT © Sindre Sorhus © Fredrik Pettersen
FAQs
Convenience wrapper for got to add opentracing spans to requests
We found that ot-got demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.