Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ monitoring-docker-images: ## Pull images for monitoring
docker pull ghcr.io/hyperledger-labs/explorer:latest
docker pull prom/prometheus:latest
docker pull grafana/grafana:latest
docker pull jaegertracing/all-in-one:latest
docker pull cr.jaegertracing.io/jaegertracing/jaeger:2.12.0

.PHONY: testing-docker-images
testing-docker-images: ## Pull images for system testing
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ require (
go.opentelemetry.io/otel/metric v1.37.0 // indirect
go.opentelemetry.io/otel/sdk v1.37.0
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
go.opentelemetry.io/proto/otlp v1.3.1
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
go.uber.org/fx v1.23.0 // indirect
go.uber.org/mock v0.5.0 // indirect
Expand Down
39 changes: 0 additions & 39 deletions integration/nwo/monitoring/otlp/docker-compose.yaml

This file was deleted.

11 changes: 1 addition & 10 deletions integration/nwo/monitoring/otlp/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ import (
"context"

"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/hyperledger-labs/fabric-smart-client/integration/nwo/common/docker"
"github.com/onsi/gomega"
)

const (
JaegerTracing = "jaegertracing/all-in-one:latest"
JaegerTracing = "cr.jaegertracing.io/jaegertracing/jaeger:2.12.0"
JaegerQueryPort = 16685
JaegerCollectorPort = 4317
JaegerUIPort = 16686
Expand Down Expand Up @@ -64,14 +63,6 @@ func (n *Extension) startJaeger() {
},
&container.HostConfig{
PortBindings: docker.PortBindings([]int{JaegerCollectorPort, JaegerQueryPort, JaegerUIPort, JaegerAdminPort}...),
Mounts: []mount.Mount{
// To avoid error: "error reading server preface: EOF"
{
Type: mount.TypeBind,
Source: n.jaegerHostsPath(),
Target: "/etc/hosts",
},
},
},
&network.NetworkingConfig{
EndpointsConfig: map[string]*network.EndpointSettings{
Expand Down
10 changes: 0 additions & 10 deletions integration/nwo/monitoring/otlp/optl.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func (n *Extension) GenerateArtifacts() {
}

gomega.Expect(os.MkdirAll(n.configFileDir(), 0o777)).NotTo(gomega.HaveOccurred())
gomega.Expect(os.WriteFile(n.configFilePath(), []byte(ConfigTemplate), 0o644)).NotTo(gomega.HaveOccurred())
gomega.Expect(os.WriteFile(n.jaegerHostsPath(), []byte(JaegerHosts), 0o644)).NotTo(gomega.HaveOccurred())
}

func (n *Extension) PostRun(bool) {
Expand All @@ -66,11 +64,3 @@ func (n *Extension) configFileDir() string {
"otlp",
)
}

func (n *Extension) configFilePath() string {
return filepath.Join(n.configFileDir(), "otlp-collector-config.yaml")
}

func (n *Extension) jaegerHostsPath() string {
return filepath.Join(n.configFileDir(), "jaeger_hosts")
}
47 changes: 0 additions & 47 deletions integration/nwo/monitoring/otlp/otel-collector-config.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion integration/reporting/jaeger/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

const defaultSearchDepth = 20

type Reporter interface {
FindTraces(nodeName, operationName string) (iterators.Iterator[*api_v2.SpansResponseChunk], error)
GetServices() ([]string, error)
Expand Down Expand Up @@ -64,7 +66,7 @@ func (c *reporter) FindTraces(nodeName, operationName string) (iterators.Iterato
if len(nodeName) == 0 {
return nil, errors.New("no node name passed")
}
params := &api_v2.TraceQueryParameters{ServiceName: nodeName, RawTraces: true}
params := &api_v2.TraceQueryParameters{ServiceName: nodeName, RawTraces: true, SearchDepth: defaultSearchDepth}
if len(operationName) > 0 {
params.OperationName = operationName
}
Expand Down
29 changes: 0 additions & 29 deletions integration/reporting/jaeger/predicates.go

This file was deleted.

41 changes: 0 additions & 41 deletions integration/reporting/jaeger/transformers.go

This file was deleted.

Loading