Ujjwal Rastogi
10/04/2024, 2:46 AMInstrumentation suppressed, returning Noop Span
@opentelemetry/instrumentation-http http instrumentation outgoingRequest
@opentelemetry/instrumentation-http http.ClientRequest return request
@opentelemetry/instrumentation-http outgoingRequest on response()
@opentelemetry/instrumentation-http outgoingRequest on end()
statusCode: 200 {"partialSuccess":{}}
@opentelemetry/instrumentation-http outgoingRequest on request close()
i have inabled debugging in my instumentation, i am getting these errors while sending otlp data to signoz and i am not seeing all my traces in signoz, what could be the issue here, in my promethues otelcollector metrics i cant see any dropped traces or metrics ?Vishal Sharma
10/04/2024, 7:48 AMUjjwal Rastogi
10/04/2024, 8:59 AMUjjwal Rastogi
10/04/2024, 9:01 AMVishal Sharma
10/04/2024, 2:09 PMVishal Sharma
10/04/2024, 2:09 PMUjjwal Rastogi
10/04/2024, 2:11 PM'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const process = require('process');
const opentelemetry = require('@opentelemetry/sdk-node');
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http');
const { Resource } = require('@opentelemetry/resources');
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
const { CompositePropagator } = require('@opentelemetry/core');
const { B3Propagator, B3InjectEncoding } = require('@opentelemetry/propagator-b3');
const api = require('@opentelemetry/api');
const exporterOptions = {
url: '<endpoint>'
};
const traceExporter = new OTLPTraceExporter(exporterOptions);
const sdk = new opentelemetry.NodeSDK({
traceExporter,
instrumentations: [getNodeAutoInstrumentations()],
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'kyc-app'
}),
});
// initialize the SDK and register with the OpenTelemetry API
// this enables the API to record telemetry
sdk.start();
// <http://logger.info|logger.info>("======Started Tracing======")
api.propagation.setGlobalPropagator(new CompositePropagator({
propagators: [new B3Propagator(), new B3Propagator({ injectEncoding: B3InjectEncoding.MULTI_HEADER })]
}));
// gracefully shut down the SDK on process exit
process.on('SIGTERM', () => {
sdk.shutdown()
.then(() => console.log('Tracing terminated'))
.catch((error) => {
if (error instanceof Error) {
console.log('Error terminating tracing', error.message);
}
else {
console.log('Error terminating tracing', error);
}
})
.finally(() => process.exit(0));
});
exports.default = sdk;
//# sourceMappingURL=tracing.js.map
Ujjwal Rastogi
10/04/2024, 2:12 PMUjjwal Rastogi
10/04/2024, 2:21 PMUjjwal Rastogi
10/05/2024, 1:14 PMUjjwal Rastogi
10/05/2024, 1:25 PMUjjwal Rastogi
10/08/2024, 8:20 AM