Skip to content

Verify that service.name is required for data to be sent #921

@beniwohli

Description

@beniwohli

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.

service_name = _ConfigValue("SERVICE_NAME", validators=[RegexValidator("^[a-zA-Z0-9 _-]+$")], required=True)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions