Skip to content

Commit

Permalink
add semantic conventions for code
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Mar 6, 2024
1 parent 1686f38 commit 682c4fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/core/opentelemetry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 682c4fd

Please sign in to comment.