# Class LittleGhost::Instrumentation::Handle

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Instrumentation/Handle.html

A Handle represents work between Instrumentation.start and #finish.

Non-detached handles are fiber-owned and must finish in LIFO order after their
children. Detached handles may finish outside the creating fiber but still
cannot finish while local children remain active.

## Inheritance

`LittleGhost::Instrumentation::Handle < Object`

## Attributes

<a id="attribute-i-name"></a>
### `name` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

<a id="attribute-i-operation_id"></a>
### `operation_id` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

<a id="attribute-i-parent_operation_id"></a>
### `parent_operation_id` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

<a id="attribute-i-payload"></a>
### `payload` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

<a id="attribute-i-previous"></a>
### `previous` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

<a id="attribute-i-started_at"></a>
### `started_at` (R)

Operation identity, inherited attributes, previous local handle, and monotonic
start time.

## Instance methods

<a id="method-i-active-3F"></a>
### `#active?`

```ruby
#active?()
```

Indicates whether this handle is still active.

<a id="method-i-detached-3F"></a>
### `#detached?`

```ruby
#detached?()
```

Indicates whether this handle is outside the fiber-local operation stack.

<a id="method-i-finish"></a>
### `#finish`

```ruby
#finish(**attributes)
```

Completes this operation with additional attributes.

<a id="method-i-local_parent-3F"></a>
### `#local_parent?`

```ruby
#local_parent?()
```

Indicates whether the parent is another active handle on this bus.

<a id="method-i-owner-3F"></a>
### `#owner?`

```ruby
#owner?()
```

Indicates whether this handle belongs to the current fiber.
