Skip to content

Commit

Permalink
HOTFIX: Remove metrics exporter (#4450)
Browse files Browse the repository at this point in the history
* fix(condo) HOTFIX: Remove metrics exporter

* fix(condo) HOTFIX: Remove metrics exporter
  • Loading branch information
toplenboren authored Mar 6, 2024
1 parent 19b96c3 commit c92d86a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/keystone/tracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,19 @@ const KEYSTONE_MUTATION_QUERY_REGEX = /(?:mutation|query)\s+(\w+)/
const IS_OTEL_TRACING_ENABLED = conf.IS_OTEL_TRACING_ENABLED === '1'
const OTEL_CONFIG = conf.OTEL_CONFIG ? JSON.parse(conf.OTEL_CONFIG) : {}

const { tracesUrl, metricsUrl, headers = {} } = OTEL_CONFIG
const { tracesUrl, headers = {} } = OTEL_CONFIG

const tracers = {}

if (IS_OTEL_TRACING_ENABLED) {

const sdk = new otelSdk.NodeSDK({
serviceName: `condo${DELIMETER}${SERVER_URL.replace(/^(https?:\/\/)/, '')}`,

traceExporter: new OTLPTraceExporter({
url: tracesUrl,
headers: headers,
}),
metricReader: new PeriodicExportingMetricReader({
exporter: new OTLPMetricExporter({
url: metricsUrl,
headers: headers,
concurrencyLimit: 1,
}),
}),

instrumentations: [
new PgInstrumentation(),
Expand Down

0 comments on commit c92d86a

Please sign in to comment.