-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Labels
Description
We got reports of data from the Python agent making it to the APM Server without service.name being set. service_name is a required configuration, and we set disable_send to True if it is missing, so there might be a bug somewhere there.
apm-agent-python/elasticapm/conf/__init__.py
Line 255 in 1d8f183
| service_name = _ConfigValue("SERVICE_NAME", validators=[RegexValidator("^[a-zA-Z0-9 _-]+$")], required=True) |
apm-agent-python/elasticapm/base.py
Lines 106 to 110 in 1d8f183
| config = Config(config, inline_dict=inline) | |
| if config.errors: | |
| for msg in config.errors.values(): | |
| self.error_logger.error(msg) | |
| config.disable_send = True |
cc @simitt