@payloops/observability 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -112,4 +112,4 @@ declare function recordWorkflowCompleted(workflowType: string, taskQueue: string
|
|
|
112
112
|
declare function recordWorkflowFailed(workflowType: string, taskQueue: string, errorType: string): void;
|
|
113
113
|
declare function recordActivityLatency(activityType: string, durationMs: number, status: 'success' | 'failed'): void;
|
|
114
114
|
|
|
115
|
-
export { CORRELATION_ID_HEADER, type CorrelationContext, REQUEST_ID_HEADER, type TelemetryConfig, activeRequestsGauge, activityLatencyHistogram, createActivityLogger, createContextFromMemo, createPropagationHeaders, createRequestLogger, createWorkflowLogger, dbConnectionGauge, dbQueryHistogram, extractCorrelationId, generateCorrelationId, getCorrelationContext, httpRequestCounter, httpRequestLatencyHistogram, initTelemetry, logger, paymentAmountHistogram, paymentCounter, paymentLatencyHistogram, recordActivityLatency, recordHttpRequest, recordPaymentAmount, recordPaymentAttempt, recordPaymentLatency, recordWebhookDelivery, recordWebhookLatency, recordWorkflowCompleted, recordWorkflowFailed, recordWorkflowStarted, shutdownTelemetry, webhookDeliveryCounter, webhookLatencyHistogram, withCorrelationContext, withCorrelationContextAsync, workflowCompletedCounter, workflowFailedCounter, workflowStartedCounter };
|
|
115
|
+
export { CORRELATION_ID_HEADER, type CorrelationContext, type Logger, REQUEST_ID_HEADER, type TelemetryConfig, activeRequestsGauge, activityLatencyHistogram, createActivityLogger, createContextFromMemo, createPropagationHeaders, createRequestLogger, createWorkflowLogger, dbConnectionGauge, dbQueryHistogram, extractCorrelationId, generateCorrelationId, getCorrelationContext, httpRequestCounter, httpRequestLatencyHistogram, initTelemetry, logger, paymentAmountHistogram, paymentCounter, paymentLatencyHistogram, recordActivityLatency, recordHttpRequest, recordPaymentAmount, recordPaymentAttempt, recordPaymentLatency, recordWebhookDelivery, recordWebhookLatency, recordWorkflowCompleted, recordWorkflowFailed, recordWorkflowStarted, shutdownTelemetry, webhookDeliveryCounter, webhookLatencyHistogram, withCorrelationContext, withCorrelationContextAsync, workflowCompletedCounter, workflowFailedCounter, workflowStartedCounter };
|
package/dist/index.js
CHANGED
|
@@ -388,8 +388,7 @@ function emitToOtel(level, message, attributes) {
|
|
|
388
388
|
env: NODE_ENV,
|
|
389
389
|
...attributes
|
|
390
390
|
},
|
|
391
|
-
timestamp
|
|
392
|
-
// nanoseconds
|
|
391
|
+
// Don't set timestamp - let OTel SDK use current time automatically
|
|
393
392
|
...spanContext && {
|
|
394
393
|
spanId: spanContext.spanId,
|
|
395
394
|
traceId: spanContext.traceId,
|