aws_xray_sdk.core.models.facade_segment

Module Contents

MUTATION_UNSUPPORTED_MESSAGE = FacadeSegments cannot be mutated.
class FacadeSegment(name, entityid, traceid, sampled)

Bases:aws_xray_sdk.core.models.segment.Segment

This type of segment should only be used in an AWS Lambda environment. It holds the same id, traceid and sampling decision as the segment generated by Lambda service but its properties cannot be mutated except for its subsegments. If this segment is created before Lambda worker finishes initializatioin, all the child subsegments will be discarded.

close(self, end_time=None)

Unsupported operation. Will raise an exception.

put_http_meta(self, key, value)

Unsupported operation. Will raise an exception.

put_annotation(self, key, value)

Unsupported operation. Will raise an exception.

put_metadata(self, key, value, namespace='default')

Unsupported operation. Will raise an exception.

set_aws(self, aws_meta)

Unsupported operation. Will raise an exception.

set_user(self, user)

Unsupported operation. Will raise an exception.

add_throttle_flag(self)

Unsupported operation. Will raise an exception.

add_fault_flag(self)

Unsupported operation. Will raise an exception.

add_error_flag(self)

Unsupported operation. Will raise an exception.

add_exception(self, exception, stack, remote=False)

Unsupported operation. Will raise an exception.

apply_status_code(self, status_code)

Unsupported operation. Will raise an exception.

serialize(self)

Unsupported operation. Will raise an exception.

ready_to_send(self)

Facade segment should never be sent out. This always return False.

increment(self)

Increment total subsegments counter by 1.

decrement_ref_counter(self)

No-op

_is_initializing(self, entityid, traceid, sampled)