Skip to content

Conversation

pkcll
Copy link
Contributor

@pkcll pkcll commented Oct 1, 2025

Add beholder heartbeat
Based of #1566

Copy link

github-actions bot commented Oct 1, 2025

apidiff results - backwards-incompatible changes detected ❌

Module: github-com-smartcontractkit-chainlink-common

Status: ❌ 4 incompatible, 32 compatible

Incompatible Changes (4)

Element Change
./pkg/types.CCIPProviderArgs.OffRampAddress changed from string to github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.UnknownAddress
./pkg/types.CCIPProviderArgs.PluginType changed from uint32 to github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.PluginType
./pkg/types/ccipocr3.ExtraDataCodec removed
./pkg/types/ccipocr3.PriceReader.GetFeeQuoterTokenUpdates changed from func(context.Context, []UnknownEncodedAddress, ChainSelector) (map[UnknownEncodedAddress]TimestampedUnixBig, error) to func(context.Context, []UnknownAddress) (map[UnknownEncodedAddress]TimestampedUnixBig, error)

(Full summary: https://github.com/smartcontractkit/chainlink-common/actions/runs/18159633055/#summary-51687290021)

@pkcll pkcll force-pushed the INFOPLAT-2938-logs-streaming-loopp-heartbeat branch from 597278b to c7fce9e Compare October 1, 2025 07:40
@pkcll pkcll force-pushed the INFOPLAT-2938-logs-streaming-loopp-heartbeat branch from c7fce9e to 9913741 Compare October 1, 2025 08:42
@pkcll pkcll force-pushed the INFOPLAT-2938-logs-streaming-loopp-heartbeat branch from 9913741 to 7bb83e1 Compare October 1, 2025 09:27
Comment on lines +84 to +102
func WithEmitter(emitter Emitter) HeartbeatOpt {
return func(h *Heartbeat) {
h.Emitter = emitter
}
}

// WithMeter sets a custom meter for the heartbeat
func WithMeter(meter metric.Meter) HeartbeatOpt {
return func(h *Heartbeat) {
h.Meter = meter
}
}

// WithTracer sets a custom tracer for the heartbeat
func WithTracer(tracer trace.Tracer) HeartbeatOpt {
return func(h *Heartbeat) {
h.Tracer = tracer
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will pollute the beholder pkg namespace. might be better to use a config struct like heartbeatConfig

@pkcll pkcll force-pushed the INFOPLAT-2938-logs-streaming-loopp branch from 0f06f1d to c913da4 Compare October 6, 2025 22:01
Base automatically changed from INFOPLAT-2938-logs-streaming-loopp to main October 7, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants