add semantic conventions for code

This commit is contained in:
Simon Cruanes 2024-03-06 12:33:31 -05:00
parent 1686f3825b
commit 682c4fd7ce
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -503,6 +503,23 @@ module Conventions = struct
end
end
(** https://opentelemetry.io/docs/specs/semconv/attributes-registry/code/ *)
module Code = struct
(** Int *)
let column = "code.column"
let filepath = "code.filepath"
let function_ = "code.function"
(** int *)
let line = "code.lineno"
let namespace = "code.namespace"
let stacktrace = "code.stacktrace"
end
module Service = struct
let name = "service.name"