Skip to content
Merged
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
9 changes: 7 additions & 2 deletions flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,7 @@ func (a *FlowableActivity) RecordSlotSizes(ctx context.Context) error {
}

var config protos.FlowConnectionConfigs
err = proto.Unmarshal(configProto, &config)
if err != nil {
if err := proto.Unmarshal(configProto, &config); err != nil {
return nil, err
}

Expand Down Expand Up @@ -816,6 +815,12 @@ func (a *FlowableActivity) RecordSlotSizes(ctx context.Context) error {
attribute.String(otel_metrics.FlowStatusKey, status.String()),
attribute.Bool(otel_metrics.IsFlowActiveKey, info.isActive),
)))

if flowMetadata.Status == protos.FlowStatus_STATUS_COMPLETED ||
flowMetadata.Status == protos.FlowStatus_STATUS_TERMINATED {
Comment on lines +819 to +820

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure if this will be populated, on phone rn. There's also status variable we are using above

return
}

srcConn, err := connectors.GetByNameAs[connectors.CDCPullConnector](ctx, nil, a.CatalogPool, info.config.SourceName)
if err != nil {
if !errors.Is(err, errors.ErrUnsupported) {
Expand Down