Skip to content

Commit 92a114c

Browse files
committed
support pyroscope from LOOP plugins
1 parent 0e5dbb7 commit 92a114c

17 files changed

Lines changed: 69 additions & 54 deletions

File tree

core/cmd/shell_local_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ func resetShellForTest(shell *cmd.Shell) {
6060
func genTestEVMRelayers(t *testing.T, cfg chainlink.GeneralConfig, ds sqlutil.DataSource, ethKeystore keystore.Eth, csaKeystore core.Keystore) *chainlink.CoreRelayerChainInteroperators {
6161
lggr := logger.TestLogger(t)
6262
f := chainlink.RelayerFactory{
63-
Logger: lggr,
64-
LoopRegistry: plugins.NewLoopRegistry(lggr, cfg.AppID().String(), cfg.Feature().LogPoller(), cfg.Database(), cfg.Mercury(), cfg.Tracing(), cfg.Telemetry(), nil, "", cfg.LOOPP()),
63+
Logger: lggr,
64+
LoopRegistry: plugins.NewLoopRegistry(lggr, cfg.AppID().String(), cfg.Feature().LogPoller(), cfg.Database(),
65+
cfg.Mercury(), cfg.Pyroscope(), cfg.AutoPprof(), cfg.Tracing(), cfg.Telemetry(), nil, "", cfg.LOOPP()),
6566
CapabilitiesRegistry: capabilities.NewRegistry(lggr),
6667
}
6768

core/scripts/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ require (
4747
github.com/smartcontractkit/chain-selectors v1.0.97
4848
github.com/smartcontractkit/chainlink-automation v0.8.1
4949
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260317185256-d5f7db87ae70
50-
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403093224-b39dab3bfe2a
50+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403145423-c2464aae7d0c
5151
github.com/smartcontractkit/chainlink-common/keystore v1.0.2
5252
github.com/smartcontractkit/chainlink-data-streams v0.1.13
5353
github.com/smartcontractkit/chainlink-deployments-framework v0.86.3
@@ -315,7 +315,7 @@ require (
315315
github.com/gorilla/sessions v1.2.2 // indirect
316316
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
317317
github.com/grafana/otel-profiling-go v0.5.1 // indirect
318-
github.com/grafana/pyroscope-go v1.2.7 // indirect
318+
github.com/grafana/pyroscope-go v1.2.8 // indirect
319319
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect
320320
github.com/graph-gophers/dataloader v5.0.0+incompatible // indirect
321321
github.com/graph-gophers/graphql-go v1.5.0 // indirect

core/scripts/go.sum

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/services/chainlink/application.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ import (
4545
"github.com/smartcontractkit/chainlink-evm/pkg/mercury"
4646
"github.com/smartcontractkit/chainlink-evm/pkg/txmgr"
4747
evmutils "github.com/smartcontractkit/chainlink-evm/pkg/utils"
48-
"github.com/smartcontractkit/chainlink/v2/core/services/ring"
49-
"github.com/smartcontractkit/chainlink/v2/core/services/shardorchestrator"
50-
51-
"github.com/smartcontractkit/chainlink/v2/core/services/ccv/ccvcommitteeverifier"
52-
"github.com/smartcontractkit/chainlink/v2/core/services/ccv/ccvexecutor"
53-
"github.com/smartcontractkit/chainlink/v2/core/services/cresettings"
5448

5549
"github.com/smartcontractkit/chainlink/v2/core/bridges"
5650
"github.com/smartcontractkit/chainlink/v2/core/build"
@@ -62,7 +56,10 @@ import (
6256
"github.com/smartcontractkit/chainlink/v2/core/services"
6357
"github.com/smartcontractkit/chainlink/v2/core/services/blockhashstore"
6458
"github.com/smartcontractkit/chainlink/v2/core/services/blockheaderfeeder"
59+
"github.com/smartcontractkit/chainlink/v2/core/services/ccv/ccvcommitteeverifier"
60+
"github.com/smartcontractkit/chainlink/v2/core/services/ccv/ccvexecutor"
6561
"github.com/smartcontractkit/chainlink/v2/core/services/cre"
62+
"github.com/smartcontractkit/chainlink/v2/core/services/cresettings"
6663
"github.com/smartcontractkit/chainlink/v2/core/services/cron"
6764
"github.com/smartcontractkit/chainlink/v2/core/services/directrequest"
6865
"github.com/smartcontractkit/chainlink/v2/core/services/feeds"
@@ -74,14 +71,15 @@ import (
7471
"github.com/smartcontractkit/chainlink/v2/core/services/keystore"
7572
"github.com/smartcontractkit/chainlink/v2/core/services/llo/retirement"
7673
"github.com/smartcontractkit/chainlink/v2/core/services/nodestatusreporter/bridgestatus"
77-
7874
"github.com/smartcontractkit/chainlink/v2/core/services/ocr"
7975
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2"
8076
"github.com/smartcontractkit/chainlink/v2/core/services/ocrbootstrap"
8177
"github.com/smartcontractkit/chainlink/v2/core/services/ocrcommon"
8278
"github.com/smartcontractkit/chainlink/v2/core/services/periodicbackup"
8379
"github.com/smartcontractkit/chainlink/v2/core/services/pipeline"
8480
"github.com/smartcontractkit/chainlink/v2/core/services/relay"
81+
"github.com/smartcontractkit/chainlink/v2/core/services/ring"
82+
"github.com/smartcontractkit/chainlink/v2/core/services/shardorchestrator"
8583
"github.com/smartcontractkit/chainlink/v2/core/services/standardcapabilities"
8684
"github.com/smartcontractkit/chainlink/v2/core/services/streams"
8785
"github.com/smartcontractkit/chainlink/v2/core/services/telemetry"
@@ -289,7 +287,8 @@ func NewApplication(ctx context.Context, opts ApplicationOpts) (Application, err
289287
return nil, fmt.Errorf("failed to build Beholder auth: %w", err)
290288
}
291289
loopRegistry := plugins.NewLoopRegistry(globalLogger, cfg.AppID().String(), cfg.Feature().LogPoller(),
292-
cfg.Database(), cfg.Mercury(), cfg.Tracing(), cfg.Telemetry(), beholderAuthHeaders, csaPubKeyHex, cfg.LOOPP())
290+
cfg.Database(), cfg.Mercury(), cfg.Pyroscope(), cfg.AutoPprof(), cfg.Tracing(), cfg.Telemetry(),
291+
beholderAuthHeaders, csaPubKeyHex, cfg.LOOPP())
293292

294293
relayerFactory := RelayerFactory{
295294
Logger: opts.Logger,

deployment/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260224214816-cb23ec38649f
4545
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260310183131-8d0f0e383288
4646
github.com/smartcontractkit/chainlink-ccip/deployment v0.0.0-20260317175207-e9ff89561326
47-
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403093224-b39dab3bfe2a
47+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403145423-c2464aae7d0c
4848
github.com/smartcontractkit/chainlink-common/keystore v1.0.2
4949
github.com/smartcontractkit/chainlink-deployments-framework v0.86.3
5050
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260330133421-5151ea0c3b05
@@ -284,7 +284,7 @@ require (
284284
github.com/gorilla/sessions v1.2.2 // indirect
285285
github.com/gorilla/websocket v1.5.3 // indirect
286286
github.com/grafana/otel-profiling-go v0.5.1 // indirect
287-
github.com/grafana/pyroscope-go v1.2.7 // indirect
287+
github.com/grafana/pyroscope-go v1.2.8 // indirect
288288
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect
289289
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
290290
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect

deployment/go.sum

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ require (
4242
github.com/gorilla/sessions v1.2.2
4343
github.com/gorilla/websocket v1.5.3
4444
github.com/grafana/otel-profiling-go v0.5.1
45-
github.com/grafana/pyroscope-go v1.2.7
45+
github.com/grafana/pyroscope-go v1.2.8
4646
github.com/graph-gophers/dataloader v5.0.0+incompatible
4747
github.com/graph-gophers/graphql-go v1.5.0
4848
github.com/hashicorp/go-envparse v0.1.0
@@ -85,7 +85,7 @@ require (
8585
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260224214816-cb23ec38649f
8686
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5
8787
github.com/smartcontractkit/chainlink-ccv v0.0.0-20260324000441-d4cfddc9f7d2
88-
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403093224-b39dab3bfe2a
88+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403145423-c2464aae7d0c
8989
github.com/smartcontractkit/chainlink-common/keystore v1.0.2
9090
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10
9191
github.com/smartcontractkit/chainlink-data-streams v0.1.13

go.sum

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require (
3838
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260317185256-d5f7db87ae70
3939
github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260310183131-8d0f0e383288
4040
github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260310183131-8d0f0e383288
41-
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403093224-b39dab3bfe2a
41+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403145423-c2464aae7d0c
4242
github.com/smartcontractkit/chainlink-common/keystore v1.0.2
4343
github.com/smartcontractkit/chainlink-deployments-framework v0.86.3
4444
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260330133421-5151ea0c3b05
@@ -269,7 +269,7 @@ require (
269269
github.com/gorilla/sessions v1.2.2 // indirect
270270
github.com/gorilla/websocket v1.5.3 // indirect
271271
github.com/grafana/otel-profiling-go v0.5.1 // indirect
272-
github.com/grafana/pyroscope-go v1.2.7 // indirect
272+
github.com/grafana/pyroscope-go v1.2.8 // indirect
273273
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect
274274
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
275275
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect

integration-tests/go.sum

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)