Skip to content

Adds support for enriching span with attributes #34

Closed
@jcchavezs

Description

@jcchavezs

Currently there is no way to enrich active span with middleware information.

Rationale

Adding tracing support provides an enhanced tracing experience as http-wasm middlewares could give more context on their outcomes e.g. status code mutation, body mutation, etc.

Implementation should allow users to plug in the span extractor or just to provide an attribute setter.

Implementation details

  • method: set_active_span_attribute
  • params:
    • i32 attribute_key
    • i32 attribute_key_len
    • i32 attribute_value
    • i32 attribute_value_len

Ping @anuraaga @mohit-a21

Reference proxy-wasm/spec#5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions