Skip to content

SDK: Lifecycle [Listener|Decorator|Interceptor] for [Scope|Span] #295

@tylerbenson

Description

@tylerbenson

We should have a way to be notified of state changes for these important objects such as:

Span

  • afterStart(span)
  • beforeFinish(span)

Scope

  • updated(old, new)

Span Builder (maybe?)

  • beforeStart(builder)

We may want to be able to define these on each span/scope instance, a span.builder, or on the tracer which would be applied to each individual instance automatically.

These types of hooks are useful for supporting features like MDC.

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