but i have a some issues. If my microservice transporter is GRPC, trace giving me currentSpan. If transporter is TCP, currentSpan is null. Do you have any suggestion?
Copy code
Calling TCP micro service
let x = await firstValueFrom(
this.serviceClient.send("SERVICE_METHOD", data),
).catch(error => { return { status: 500, success: false, message: null, errorCode: error.stack, data: null, errors: error } });
Copy code
Get Current Span
import { context, trace } from '@opentelemetry/api';
const currentSpan = trace.getSpan(context.active());
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.