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

Timothy Wigginton

02/23/2023, 5:39 PM
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

Ankit Nayan

02/23/2023, 6:15 PM
It should be there cc: @Vishal Sharma
t

Timothy Wigginton

02/23/2023, 6:18 PM
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

Ankit Nayan

02/23/2023, 6:23 PM
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

Vishal Sharma

02/23/2023, 6:26 PM
@Timothy Wigginton Is it the same span?
t

Timothy Wigginton

02/23/2023, 6:29 PM
@Vishal Sharma Yes the span that does not have the method displayed also has the tag http.method
v

Vishal Sharma

02/23/2023, 6:33 PM
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

Timothy Wigginton

02/23/2023, 6:44 PM
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

Vishal Sharma

02/23/2023, 6:49 PM
Can you please send response that you receive when you open trace detail page by clicking on this span?
t

Timothy Wigginton

02/23/2023, 6:53 PM
getspan.json
v

Vishal Sharma

02/23/2023, 7:04 PM
@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

Timothy Wigginton

02/23/2023, 7:07 PM
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

Vishal Sharma

02/24/2023, 4:25 AM
Yes @Timothy Wigginton Did you manually instrument the app? Or using auto instrumentation?
t

Timothy Wigginton

02/24/2023, 2:52 PM
I used the net/http library to instrument our Client
v

Vishal Sharma

02/24/2023, 4:20 PM
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.