ScoutApm.Logging.OTLP.Resource (scout_apm v2.0.0)

Copy Markdown

Builds OTLP Resource attributes for log records.

The Resource represents the entity producing telemetry and includes attributes like service name, version, host, and environment.

Summary

Functions

Builds the resource attributes map for OTLP export. Returns a list of attribute maps in OTLP format.

Converts a {key, value} tuple to OTLP attribute format.

Functions

build()

@spec build() :: [map()]

Builds the resource attributes map for OTLP export. Returns a list of attribute maps in OTLP format.

to_otlp_attribute(arg)

@spec to_otlp_attribute({String.t(), any()}) :: map()

Converts a {key, value} tuple to OTLP attribute format.