We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1d7e0 commit e889384Copy full SHA for e889384
src/trace/context.ts
@@ -162,7 +162,7 @@ export function sendXraySubsegment(segment: string) {
162
const port = parseInt(parts[1], 10);
163
const address = parts[0];
164
165
- const message = new Buffer(`{\"format\": \"json\", \"version\": 1}\n${segment}`);
+ const message = Buffer.from(`{\"format\": \"json\", \"version\": 1}\n${segment}`);
166
let client: Socket | undefined;
167
try {
168
client = createSocket("udp4");
0 commit comments