Skip to content

Commit 6f4b965

Browse files
authored
[DJM-814] Set intaller span tag to true only when len > 0 (#36744)
1 parent 2de7720 commit 6f4b965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/fleet/installer/setup/djm/databricks.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ func setClearIfExists(s *common.Setup, envKey, tagKey string, normalize func(str
208208

209209
func setHostTag(s *common.Setup, tagKey, value string) {
210210
s.Config.DatadogYAML.Tags = append(s.Config.DatadogYAML.Tags, tagKey+":"+value)
211-
s.Span.SetTag("host_tag_set."+tagKey, "true")
211+
isTagPresent := "false"
212+
if value != "" {
213+
isTagPresent = "true"
214+
}
215+
s.Span.SetTag("host_tag_set."+tagKey, isTagPresent)
212216
}
213217

214218
func setClearHostTag(s *common.Setup, tagKey, value string) {

0 commit comments

Comments
 (0)