Skip to content

Botomongo - S3 spans throwing an "validation error: span: context: destination: service: 'name' required" #1089

@tonyman19

Description

@tonyman19

Flask Python application doesn't record the SPAN with S3 call:

To Reproduce

  1. Flask Application doing S3 call
  2. In console you will see the exception Failed to submit message: 'HTTP 400: {"accepted":3,"errors":[{"message":"validation error: span: context: destination: service: \'name\' required",...

Environment (please complete the following information)

  • OS: Linux
  • Python version: 3.6
  • Framework and version: Flask 1.1.2
  • APM Server version: v7.12.0
  • Agent version: 6.1.0

From the APM version 7.12 name field is required

Problem is located here:
elasticapm/instrumentation/packages/botocore.py
context["destination"]["service"] = {"type": span_type}
for destination.service there is no destination.service.name element

IMHO: destination.service.name should be set as in the elasticapm/instrumentation/packages/elasticsearch.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions