Skip to content

Commit ed6c078

Browse files
committed
support pyroscope from LOOP plugins
1 parent 980066b commit ed6c078

17 files changed

Lines changed: 102 additions & 87 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: 3 additions & 3 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.20260401185621-720567ef9343
50+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403144432-c34dca710a8c
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
@@ -508,7 +508,7 @@ require (
508508
github.com/smartcontractkit/chainlink-protos/rmn/v1.6/go v0.0.0-20250131130834-15e0d4cde2a6 // indirect
509509
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 // indirect
510510
github.com/smartcontractkit/chainlink-protos/svr v1.1.1-0.20260203131522-bb8bc5c423b3 // indirect
511-
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260217043601-5cc966896c4f // indirect
511+
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260323124644-faea187e6997 // indirect
512512
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20260331131550-45e89529badc // indirect
513513
github.com/smartcontractkit/chainlink-solana/contracts v0.0.0-20260217175957-8f1af02c5075 // indirect
514514
github.com/smartcontractkit/chainlink-sui v0.0.0-20260401201231-8b06d312c965 // indirect

core/scripts/go.sum

Lines changed: 6 additions & 6 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: 4 additions & 4 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.20260401185621-720567ef9343
47+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403144432-c34dca710a8c
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
@@ -233,7 +233,7 @@ require (
233233
github.com/felixge/httpsnoop v1.0.4 // indirect
234234
github.com/ferranbt/fastssz v0.1.4 // indirect
235235
github.com/fsnotify/fsnotify v1.9.0 // indirect
236-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
236+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
237237
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
238238
github.com/gagliardetto/treeout v0.1.4 // indirect
239239
github.com/gagliardetto/utilz v0.1.3 // indirect
@@ -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
@@ -440,7 +440,7 @@ require (
440440
github.com/smartcontractkit/chainlink-protos/rmn/v1.6/go v0.0.0-20250131130834-15e0d4cde2a6 // indirect
441441
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 // indirect
442442
github.com/smartcontractkit/chainlink-protos/svr v1.1.1-0.20260203131522-bb8bc5c423b3 // indirect
443-
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260217043601-5cc966896c4f // indirect
443+
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260323124644-faea187e6997 // indirect
444444
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 // indirect
445445
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 // indirect
446446
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20260218133534-cbd44da2856b // indirect

deployment/go.sum

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

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/esote/minmaxheap v1.0.0
2222
github.com/ethereum/go-ethereum v1.17.1
2323
github.com/fatih/color v1.18.0
24-
github.com/fxamacker/cbor/v2 v2.7.0
24+
github.com/fxamacker/cbor/v2 v2.9.0
2525
github.com/gagliardetto/binary v0.8.0
2626
github.com/gagliardetto/solana-go v1.13.0
2727
github.com/getsentry/sentry-go v0.27.0
@@ -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.20260401185621-720567ef9343
88+
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260403144432-c34dca710a8c
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
@@ -103,7 +103,7 @@ require (
103103
github.com/smartcontractkit/chainlink-protos/orchestrator v0.10.0
104104
github.com/smartcontractkit/chainlink-protos/ring/go v0.0.0-20260128151123-605e9540b706
105105
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0
106-
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260217043601-5cc966896c4f
106+
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20260323124644-faea187e6997
107107
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20260331131550-45e89529badc
108108
github.com/smartcontractkit/chainlink-sui v0.0.0-20260401201231-8b06d312c965
109109
github.com/smartcontractkit/chainlink-ton v0.0.0-20260331005855-7b5a4b3384f8

0 commit comments

Comments
 (0)