How do I fill in the method for my traces? I thoug...
# support
t
How do I fill in the method for my traces? I thought it was just the http.method tag but that seems to be set already
a
It should be there cc: @Vishal Sharma
t
I should add that this is outgoing http request, incoming requests work correctly. Also this is go instrumentation and I am using the net/http opentelemetry contribution
a
noted...it should not matter. If a span has
http.method
in span attributes, it should be shown at the column in trace filter page too IMO
v
@Timothy Wigginton Is it the same span?
t
@Vishal Sharma Yes the span that does not have the method displayed also has the tag http.method
v
Can you please share response of getFilteredSpans API, it can be checked from network tab in browser dev console? You can mask sensitive data.
t
getfilter.json
Copy code
{
  "timestamp": "2023-02-23T18:12:50.441997003Z",
  "spanID": "4814d1557f673028",
  "traceID": "606ab4ab46b4d0b4a101007573ca5d61",
  "serviceName": "switch-manager-otel-dev-switch-manager",
  "operation": "/prm-otel/switch-mgmt/switches/mac_address/{mac-address}/associate",
  "durationNano": 8651989367,
  "HttpMethod": "",
  "method": "",
  "statusCode": "200",
  "RPCMethod": ""
}
This is the issue span
v
Can you please send response that you receive when you open trace detail page by clicking on this span?
t
getspan.json
v
@Timothy Wigginton By analysing the data I think this span records an external span and span kind is client. More details on opentelemetry spec: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#spankind We are not recording this as normal http method and instead store it as external http method and thus not showing in the table. Please create an issue in public repo we will investigate it further and fix it. cc: @Ankit Nayan
t
okay I can do that, do you think changing the span kind will resolve the issue?
By changing the spankind to Internal it works correctly
v
Yes @Timothy Wigginton Did you manually instrument the app? Or using auto instrumentation?
t
I used the net/http library to instrument our Client
v
Ok, you don’t need to change spanKind. We will merge a fix on this soon. (Here’s the PR: https://github.com/SigNoz/signoz-otel-collector/pull/105) For now you can change the spankind.