From ea092ae0f93c99a44fcf253d3aabfe8b87fc506b Mon Sep 17 00:00:00 2001 From: Corentin Leruth Date: Thu, 8 Aug 2024 10:56:35 +0200 Subject: [PATCH] add host attributes --- src/core/opentelemetry.ml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/core/opentelemetry.ml b/src/core/opentelemetry.ml index ded40b89..7cf2e2c7 100644 --- a/src/core/opentelemetry.ml +++ b/src/core/opentelemetry.ml @@ -552,6 +552,27 @@ module Conventions = struct (** http or https *) let url_scheme = "url.scheme" end + + (** https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/host.md *) + module Host = struct + let id = "host.id" + + let name = "host.name" + + let type_ = "host.type" + + let arch = "host.arch" + + let ip = "host.ip" + + let mac = "host.mac" + + let image_id = "host.image.id" + + let image_name = "host.image.name" + + let image_version = "host.image.version" + end end module Metrics = struct