public class MetricsUtils extends Object
Constructor and Description |
---|
MetricsUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
attributesMap(List<io.opentelemetry.proto.common.v1.KeyValue> attributes) |
static Map<String,String> |
attributesMap(io.opentelemetry.proto.resource.v1.Resource resource)
Convert resource attributes to a map of strings, ignoring non-string attributes
|
static OffsetDateTime |
nowInUTC() |
static ZonedDateTime |
nowInUTC(Clock clock) |
static long |
toTimeUnixNanos(Instant t) |
public static long toTimeUnixNanos(Instant t)
public static ZonedDateTime nowInUTC(Clock clock)
public static OffsetDateTime nowInUTC()
public static Map<String,String> attributesMap(io.opentelemetry.proto.resource.v1.Resource resource)
resource
-