The types defined here, and referencing records in opentelemetry.hrl are used to store trace information while being collected on the Erlang node.
Thus, while the types are based on protos found in the opentelemetry-proto repo: src/opentelemetry/proto/trace/v1/trace.proto, they are not exact translations because further processing is done after the span has finished and can be vendor specific. For example, there is no count of the number of dropped attributes in the span record. And an attribute's value can be a function to only evaluate the value if it is actually used (at the time of exporting). And the stacktrace is a regular Erlang stack trace.
Convert a native monotonic timestamp to POSIX time of any
Meaning the time since Epoch. Epoch is defined to be 00:00:00 UTC, 1970-01-01.
events(List) -> any()
Generates a 64 bit random integer to use as a span id.
Generates a 128 bit random integer to use as a trace id.
get_text_map_extractors() -> any()
get_text_map_injectors() -> any()
set_text_map_extractors(List) -> any()
set_text_map_injectors(List) -> any()
A monotonically increasing time provided by the Erlang runtime system in the native time unit. This value is the most accurate and precise timestamp available from the Erlang runtime and should be used for finding durations or any timestamp that can be converted to a system time before being sent to another system.
Convert a native monotonic timestamp to nanosecond POSIX time. Meaning the time since Epoch. Epoch is defined to be 00:00:00 UTC, 1970-01-01.