Skip to content

Unable to display information in External calls panel #1852

Open
@FournyP

Description

@FournyP

Bug description

Hi everyone, I'm a newby so I have maybe make some mistakes
I face some issues to display external calls from my http client in Golang

I have follow the step 4 of this article : https://signoz.io/blog/distributed-tracing-golang/ without using gorilla/mux

My initTracer :

func initTracer(insecure bool, serviceName, collectorURL string) func(context.Context) error {
	secureOption := otlptracegrpc.WithTLSCredentials(credentials.NewClientTLSFromCert(nil, ""))
	if insecure {
		secureOption = otlptracegrpc.WithInsecure()
	}

	exporter, err := otlptrace.New(
		context.Background(),
		otlptracegrpc.NewClient(
			secureOption,
			otlptracegrpc.WithEndpoint(collectorURL),
		),
	)

	if err != nil {
		log.Fatal(err)
	}
	resources, err := resource.New(
		context.Background(),
		resource.WithAttributes(
			attribute.String("service.name", serviceName),
			attribute.String("library.language", "go"),
		),
	)
	if err != nil {
		log.Printf("Could not set resources: ", err)
	}

	otel.SetTracerProvider(
		sdktrace.NewTracerProvider(
			sdktrace.WithSampler(sdktrace.AlwaysSample()),
			sdktrace.WithBatcher(exporter),
			sdktrace.WithResource(resources),
		),
	)
	return exporter.Shutdown
}

I have create my HttpClient like this :

func NewHttpClient() *http.Client {
	return &http.Client{
		Transport: otelhttp.NewTransport(http.DefaultTransport),
	}
}

And in my service, I use the same http client using google wire :

func NewPingExchangesUseCase(httpClient *http.Client, ...) *PingExchangesUseCase {
	return &PingExchangesUseCase{
		httpClient:            httpClient,
                ...
	}
}

And I use the httpClient like this :

func (pingUseCase *PingExchangesUseCase) Execute(message *PingExchangesMessage) ([]*PingExchangesResponse, error) {
        ...
	response, err := pingUseCase.httpClient.Get(path)
        ...
}

And nothing is display in the external calls panel.

There is js errors when I open the console (image below)

Expected behavior

image

Actual behavior

image

image

image

image

All responses are the same

Overview metrics and database calls work perfectly as you can see :

image

image

Do you know if it's a bug or I've done something wrong ?

Version information

  • Signoz version: 0.11.4
  • Browser version: Brave version 1.46.140 (Based on Chromium 108.0.5359.99)
  • Your OS and version: Windows 11 using WSL with Ubuntu 20.04.2
  • Your CPU Architecture(ARM/Intel): Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 1.99 GHz

Have a good day and thanks for your work !

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions