https://signoz.io logo
#support
Title
# support
s

Sanjiv

02/28/2023, 9:02 PM
I added the following code but where “my-service-name” matches the service name from the automatic instrumentation and what appears in SigNoz. However the operation “my-operation-name” never appears anywhere.
Copy code
Tracer tracer = GlobalOpenTelemetry.getTracer("my-service-name");

        Span childSpan = tracer.spanBuilder("my-operation-name").setSpanKind(SpanKind.SERVER).startSpan();
        childSpan.setAttribute("foo", "bar");
I was able to figure this out with a fair amount of difficulty. The docs in this area should be improved