diff --git a/exporter/elasticsearchexporter/pdata_serializer.go b/exporter/elasticsearchexporter/pdata_serializer.go index 12054c351672..ec3cd1caea94 100644 --- a/exporter/elasticsearchexporter/pdata_serializer.go +++ b/exporter/elasticsearchexporter/pdata_serializer.go @@ -291,6 +291,7 @@ func writeAttributes(v *json.Visitor, attributes pcommon.Map, stringifyMapValues return true }) geoAttributes.Range(func(k string, val pcommon.Value) bool { + _ = v.OnKey(k) writeValue(v, val, stringifyMapValues) return true })