Skip to content

Commit 872c1f7

Browse files
authored
fix: Remove debug logs for export failures. (#218)
## Summary Remove error logs associated with otel export. ## How did you test this change? <!-- Frontend - Leave a screencast or a screenshot to visually describe the changes. --> ## Are there any deployment considerations? <!-- Backend - Do we need to consider migrations or backfilling data? -->
1 parent 1409207 commit 872c1f7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sdk/highlight-run/src/client/otel/exporter.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ export class OTLPTraceExporterBrowserWithXhrRetry extends OTLPTraceExporter {
5454
}
5555
retries++
5656
if (retries > MAX_PUBLIC_GRAPH_RETRY_ATTEMPTS) {
57-
console.error(
58-
`[@launchdarkly/observability] failed to export OTeL traces: ${result.error?.message}`,
59-
result.error,
60-
)
6157
return resultCallback({
6258
code: ExportResultCode.FAILED,
6359
error: result.error,
@@ -69,10 +65,6 @@ export class OTLPTraceExporterBrowserWithXhrRetry extends OTLPTraceExporter {
6965
BASE_DELAY_MS + BACKOFF_DELAY_MS * Math.pow(2, retries),
7066
),
7167
).then(() => {
72-
console.warn(
73-
`[@launchdarkly/observability] retry ${retries}, failed to export OTeL traces: ${result.error?.message}`,
74-
result.error,
75-
)
7668
super.export(sampledItems, retry)
7769
})
7870
}

0 commit comments

Comments
 (0)