lib/elastic_apm/spies/sqs.rb in elastic-apm-4.0.0.beta.1 vs lib/elastic_apm/spies/sqs.rb in elastic-apm-4.0.0.beta.2

- old
+ new

@@ -55,12 +55,14 @@ ElasticAPM::Span::Context.new( message: { queue_name: queue_name }, destination: { - resource: [SUBTYPE, queue_name].compact.join('/'), - type: TYPE, - name: SUBTYPE, + service: { + resource: [SUBTYPE, queue_name].compact.join('/'), + type: TYPE, + name: SUBTYPE + }, cloud: cloud } ) end