otel4devs icon indicating copy to clipboard operation
otel4devs copied to clipboard

Build issue with the tailtracer tutorial

Open darint00 opened this issue 3 years ago • 1 comments

I'm walking through the tailtracer demo and I'm at the point where the tailtracer.NewFactory() has been added to the components.go file. The instructions say to build the collector and re-run it. I'm doing that with go build as previously explained and get the following errors:

go build

github.com/rquedas/otel4devs/collector/receiver/trace-receiver/tailtracer

/home/darint/go/pkg/mod/github.com/rquedas/otel4devs/collector/receiver/trace-receiver/[email protected]/factory.go:46:32: not enough arguments in call to component.WithTracesReceiver have (func(_ context.Context, params component.ReceiverCreateSettings, baseCfg config.Receiver, consumer consumer.Traces) (component.TracesReceiver, error)) want (component.CreateTracesReceiverFunc, component.StabilityLevel) /home/darint/go/pkg/mod/github.com/rquedas/otel4devs/collector/receiver/trace-receiver/[email protected]/model.go:126:13: atmAttrs.InsertInt undefined (type pcommon.Map has no field or method InsertInt)

.......

darint00 avatar Oct 10 '22 20:10 darint00

Seems the Code needs to be updated to include StabilityLevel when calling WithTracesReceiver.

After the above change, Building the collector at this point in the demo/tutorial will work

darint00 avatar Oct 10 '22 22:10 darint00