Disable honeycomb auto instrumentation
Huh, well, I can't figure out what in our production env stopped working with Honeycomb's automatic instrumentation… so, oh well! Let's try disabling it for now and see if it works. This means our Honeycomb logs will no longer include _super helpful_ visualizations of how HTTP requests and MySQL queries create a request dependency waterfall… but I haven't opened Honeycomb in a while, and this bug is blocking all of prod, so if this fixes the site then I'm okay with that as a stopgap! Btw the error message was: ``` Unhandled rejection: TypeError: Cannot read property 'id' of undefined at exports.instrumentLoad (/var/task/node_modules/honeycomb-beeline/lib/instrumentation.js:80:14) at Function._load (/var/task/node_modules/honeycomb-beeline/lib/instrumentation.js:164:16) at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29) at ModuleJob.run (internal/modules/esm/module_job.js:169:25) at Loader.import (internal/modules/esm/loader.js:177:24) ``` Oh also, this is the first time eslint has looked at scripts/build-cached-data.js I guess, so I fixed some lint errors in there.
This commit is contained in:
parent
853296cde2
commit
e5081dab7e
9 changed files with 10 additions and 2 deletions
|
@ -5,6 +5,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
|
||||
import fetch from "node-fetch";
|
||||
|
|
|
@ -15,6 +15,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
|
||||
const { chromium } = require("playwright");
|
||||
|
|
|
@ -5,6 +5,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
samplerHook,
|
||||
});
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
sampleRate: 10,
|
||||
});
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
|
||||
import escapeHtml from "escape-html";
|
||||
|
|
|
@ -5,6 +5,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
import sendgridMail from "@sendgrid/mail";
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
const AWS = require("aws-sdk");
|
||||
const Jimp = require("jimp");
|
||||
|
|
|
@ -5,6 +5,7 @@ const beeline = require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-gql-server",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
import connectToDb from "../src/server/db";
|
||||
import { getPoseFromPetState, normalizeRow } from "../src/server/util";
|
||||
|
|
|
@ -7,6 +7,7 @@ require("honeycomb-beeline")({
|
|||
? "Dress to Impress (2020)"
|
||||
: "Dress to Impress (2020, dev)",
|
||||
serviceName: "impress-2020-build-process",
|
||||
enabledInstrumentations: [],
|
||||
});
|
||||
const fs = require("fs").promises;
|
||||
const path = require("path");
|
||||
|
@ -15,7 +16,6 @@ const { ApolloServer } = require("apollo-server");
|
|||
const { createTestClient } = require("apollo-server-testing");
|
||||
const gql = require("graphql-tag");
|
||||
|
||||
const connectToDb = require("../src/server/db");
|
||||
const { config } = require("../src/server");
|
||||
|
||||
const cachedDataPath = path.join(__dirname, "..", "src", "app", "cached-data");
|
||||
|
@ -51,7 +51,7 @@ async function main() {
|
|||
"utf8"
|
||||
);
|
||||
|
||||
console.log(`📚 Wrote zones to ${path.relative(process.cwd(), filePath)}`);
|
||||
console.info(`📚 Wrote zones to ${path.relative(process.cwd(), filePath)}`);
|
||||
}
|
||||
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue