-
Notifications
You must be signed in to change notification settings - Fork 105
/
logs.ex
38 lines (33 loc) · 1.04 KB
/
logs.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
defmodule OpenTelemetry.SemanticConventions.Logs do
@doc """
The schema url for telemetry resources.
iex> OpenTelemetry.SemanticConventions.Logs.logs_schema_url()
"https://opentelemetry.io/schemas/1.13.0"
"""
@spec logs_schema_url :: String.t()
def logs_schema_url do
"https://opentelemetry.io/schemas/1.13.0"
end
@doc """
The name identifies the event
iex> OpenTelemetry.SemanticConventions.Logs.event_name()
:"event.name"
"""
@spec event_name :: :"event.name"
def event_name do
:"event.name"
end
@doc """
The domain identifies the context in which an event happened. An event name is unique only within a domain
### Notes
An `event.name` is supposed to be unique only in the context of an
`event.domain`, so this allows for two events in different domains to
have same `event.name`, yet be unrelated events
iex> OpenTelemetry.SemanticConventions.Logs.event_domain()
:"event.domain"
"""
@spec event_domain :: :"event.domain"
def event_domain do
:"event.domain"
end
end