aws_xray_sdk.core.models.default_dynamic_naming

Module Contents

class DefaultDynamicNaming(pattern, fallback)

Bases:object

Decides what name to use on a segment generated from an incoming request. By default it takes the host name and compares it to a pre-defined pattern. If the host name matches that pattern, it returns the host name, otherwise it returns the fallback name. The host name usually comes from the incoming request’s headers.

get_name(self, host_name)

Returns the segment name based on the input host name.