I'm using python 3.0.4 agent and APM server is 6.5.1.
It looks like apm agent sent message that is not valid mapping.
But as I saw python agent source code, to_dict
method of Span
class is fine.
And I can discover span messages well also.
Here is error trace example.
[2018-12-11T01:50:32,268][DEBUG][o.e.a.b.TransportShardBulkAction] [ip-172-31-15-57] [apm-6.5.1-span-2018.12.11][15] failed to execute bulk item (index) index {[apm-6.5.1-span-2018.12.11][doc][WyD1mmcBcjb07ngVYyA4], source[n/a, actual length: [5.1kb], max length: 2kb]}
org.elasticsearch.index.mapper.MapperParsingException: object mapping for [context.service] tried to parse field [service] as object, but found a concrete value