mirror of https://github.com/renovatebot/renovate
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
export function isTracingEnabled(): boolean {
|
|
return isTraceDebuggingEnabled() || isTraceSendingEnabled();
|
|
}
|
|
|
|
export function isTraceDebuggingEnabled(): boolean {
|
|
return !!process.env.RENOVATE_TRACING_CONSOLE_EXPORTER;
|
|
}
|
|
|
|
export function isTraceSendingEnabled(): boolean {
|
|
return !!process.env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
}
|