Module otel_resource_detector

Resource detectors are responsible for reading in attributes about the runtime environment of a node (such as an environment variable or some metadata endpoint provided by a cloud host) and returning a otel_resource:t() made from those attributes.

Behaviours: gen_statem.

This module defines the otel_resource_detector behaviour.
Required callback functions: get_resource/1.

Description

Resource detectors are responsible for reading in attributes about the runtime environment of a node (such as an environment variable or some metadata endpoint provided by a cloud host) and returning a otel_resource:t() made from those attributes.

The state machine will spawn a process for each detector and collect the results of running each and merge in the order they are defined. Once in the ready state it will reply to get_resource calls with the final otel_resource:t().

Function Index

callback_mode/0
get_resource/0
get_resource/1
handle_event/4
init/1
start_link/1

Function Details

callback_mode/0

callback_mode() -> any()

get_resource/0

get_resource() -> any()

get_resource/1

get_resource(Timeout) -> any()

handle_event/4

handle_event(X1, X2, X3, Data) -> any()

init/1

init(X1) -> any()

start_link/1

start_link(Opts) -> any()


Generated by EDoc