in pkg/tracegen/otlp.go [163:172]
func newOTLPExporters(ctx context.Context, endpointURL *url.URL, cfg Config) (*otlpExporters, error) {
switch cfg.otlpProtocol {
case "grpc":
return newOTLPGRPCExporters(ctx, endpointURL, cfg)
case "http/protobuf":
return newOTLPHTTPExporters(ctx, endpointURL, cfg)
default:
return nil, fmt.Errorf("invalid protocol %q", cfg.otlpProtocol)
}
}