Trickier disabling honeycomb instrumentation

Hm, okay, so the documented way to not instrument anything doesn't actually stop them from patching Module._load. But this undocumented option sure does! So, woo, let's try it! lol
This commit is contained in:
Emi Matchu 2021-08-08 00:23:57 -07:00
parent e5081dab7e
commit ba8e4d8aa7
9 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
import fetch from "node-fetch";

View file

@ -15,7 +15,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
const { chromium } = require("playwright");

View file

@ -5,7 +5,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
samplerHook,
});

View file

@ -31,7 +31,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
sampleRate: 10,
});

View file

@ -19,7 +19,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
import escapeHtml from "escape-html";

View file

@ -5,7 +5,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
import sendgridMail from "@sendgrid/mail";

View file

@ -5,7 +5,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
const AWS = require("aws-sdk");
const Jimp = require("jimp");

View file

@ -5,7 +5,7 @@ const beeline = require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-gql-server",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
import connectToDb from "../src/server/db";
import { getPoseFromPetState, normalizeRow } from "../src/server/util";

View file

@ -7,7 +7,7 @@ require("honeycomb-beeline")({
? "Dress to Impress (2020)"
: "Dress to Impress (2020, dev)",
serviceName: "impress-2020-build-process",
enabledInstrumentations: [],
disableInstrumentationOnLoad: true,
});
const fs = require("fs").promises;
const path = require("path");