Skip to content

Commit b104cd4

Browse files
authored
Use AsString (#9)
1 parent a56bb40 commit b104cd4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exporter/clickhouseexporter/exporter_logs.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@ func (e *logsExporter) pushLogsData(ctx context.Context, ld plog.Logs) error {
108108
case conventions.AttributeServiceName:
109109
serviceName = value.Str()
110110
case conventions.AttributeK8SPodName:
111-
podName = value.Str()
111+
podName = value.AsString()
112112
case conventions.AttributeK8SContainerName:
113-
containerName = value.Str()
113+
containerName = value.AsString()
114114
// TODO use AttributeCloudRegion 'cloud.region'
115115
// https://github.com/ClickHouse/data-plane-application/issues/4155
116116
case "region":
117117
fallthrough
118118
case conventions.AttributeCloudRegion:
119-
region = value.Str()
119+
region = value.AsString()
120120
case conventions.AttributeCloudProvider:
121-
cloudProvider = value.Str()
121+
cloudProvider = value.AsString()
122122
case "cell":
123-
cell = value.Str()
123+
cell = value.AsString()
124124
}
125125
return true
126126
})

0 commit comments

Comments
 (0)