Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -3,6 +3,7 @@ import { afterEach, describe, expect, it } from "vitest";
|
||||
import {
|
||||
__getApiOtelConfigForTests,
|
||||
__resetApiOtelForTests,
|
||||
createApiInstrumentations,
|
||||
initApiOtel,
|
||||
parseOtlpHeaders,
|
||||
parseSamplerArg,
|
||||
@@ -94,6 +95,17 @@ describe("readApiOtelConfig", () => {
|
||||
});
|
||||
|
||||
describe("initApiOtel", () => {
|
||||
it("registers only the remote I/O and logging instrumentations used by the API", () => {
|
||||
expect(createApiInstrumentations().map((instrumentation) => instrumentation.instrumentationName)).toEqual([
|
||||
"@opentelemetry/instrumentation-http",
|
||||
"@opentelemetry/instrumentation-undici",
|
||||
"@opentelemetry/instrumentation-pg",
|
||||
"@opentelemetry/instrumentation-ioredis",
|
||||
"@opentelemetry/instrumentation-aws-sdk",
|
||||
"@opentelemetry/instrumentation-pino",
|
||||
]);
|
||||
});
|
||||
|
||||
it("is a no-op when OTEL_EXPORTER_OTLP_ENDPOINT is unset", () => {
|
||||
const sdk = initApiOtel({
|
||||
endpoint: undefined,
|
||||
|
||||
Reference in new issue
Block a user