ballerina/observe.mockextension : 0.9.0

Module Overview

This module provides an API for accessing observability mock functionality.

Following functions are provided.

1var metrics = mockextension:getMetrics();
2
3var spans = mockextension:getFinishedSpans();

Modules

[2]

observe

This module provides an API for observing Ballerina services.

observe.mockextension

This module provides an API for accessing observability mock functionality.

Functions

[2]

getFinishedSpans

Get all the finished spans.

getMetrics

Get all the current metrics.

Records

[11]

Counter

Holds counter related metrics data.

Event

Holds the event data.

Gauge

Holds gauge related metrics data.

MetricId

Holds parameters required to id a metric.

Metrics

Holds metrics data.

PercentileValue

Holds percentile and value.

PolledGauge

Holds polled gauge related metrics data.

Snapshot

Holds a snapshot of statistics.

Span

Holds the span data.

Tag

Holds the key and value of tag.

TimeWindow

Holds a time duration.