Skip to content

Commit 754ba5f

Browse files
authored
Disabled GCP Tracing (#1412)
closes https://linear.app/ghost/issue/BER-2948 - The team uses Sentry and this is costing us 1,000$ a month.
1 parent b8e1aef commit 754ba5f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/instrumentation.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { IncomingMessage } from 'node:http';
22

33
import { DiagConsoleLogger, DiagLogLevel, diag } from '@opentelemetry/api';
4-
import {
5-
BatchSpanProcessor,
6-
SimpleSpanProcessor,
7-
} from '@opentelemetry/sdk-trace-base';
4+
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
85
import * as Sentry from '@sentry/node';
96

107
import { beforeSend } from '@/sentry';
@@ -61,15 +58,6 @@ export async function setupInstrumentation() {
6158
],
6259
});
6360

64-
if (process.env.K_SERVICE) {
65-
const { TraceExporter } = await import(
66-
'@google-cloud/opentelemetry-cloud-trace-exporter'
67-
);
68-
sentryClient?.traceProvider?.addSpanProcessor(
69-
new BatchSpanProcessor(new TraceExporter({})),
70-
);
71-
}
72-
7361
if (process.env.NODE_ENV === 'development') {
7462
const { OTLPTraceExporter } = await import(
7563
'@opentelemetry/exporter-trace-otlp-proto'

0 commit comments

Comments
 (0)