mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 04:17:56 -04:00
add semantic conventions for code
This commit is contained in:
parent
1686f3825b
commit
682c4fd7ce
1 changed files with 17 additions and 0 deletions
|
|
@ -503,6 +503,23 @@ module Conventions = struct
|
||||||
end
|
end
|
||||||
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
|
module Service = struct
|
||||||
let name = "service.name"
|
let name = "service.name"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue