Skip to content

Commit 0088398

Browse files
authored
Collect metrics of source-linked deployment usage in non-development … (#3894)
…mode ## Changes Adding metrics to ensure that deprecation is safe ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> ## Tests <!-- How have you tested the changes? --> <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent a62cd2f commit 0088398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bundle/config/mutator/apply_source_linked_deployment_preset.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func (m *applySourceLinkedDeploymentPreset) Apply(ctx context.Context, b *bundle
5050
return diags
5151
}
5252

53+
b.Metrics.AddBoolValue("source_linked_set_for_non_development", b.Config.Bundle.Mode != config.Development)
54+
5355
if b.Config.Bundle.Mode != config.Development {
5456
path := dyn.NewPath(dyn.Key("targets"), dyn.Key(target), dyn.Key("presets"), dyn.Key("source_linked_deployment"))
5557
diags = diags.Append(

0 commit comments

Comments
 (0)