Skip to content

Commit

Permalink
Remove unnecessary erl macro def quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele committed Aug 17, 2024
1 parent f3e9c52 commit f377d87
Show file tree
Hide file tree
Showing 133 changed files with 1,540 additions and 1,540 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
%%%-------------------------------------------------------------------------

%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
-define('CLIENT_ADDRESS', 'client.address').
-define(CLIENT_ADDRESS, 'client.address').


%% Client port number.
-define('CLIENT_PORT', 'client.port').
-define(CLIENT_PORT, 'client.port').
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

%% Describes a class of error the operation ended with.
%%
-define('ERROR_TYPE', 'error.type').
-define(ERROR_TYPE, 'error.type').

-define('ERROR_TYPE_VALUES_OTHER', '_OTHER').
-define(ERROR_TYPE_VALUES_OTHER, '_OTHER').

Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@

%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.
%%
-define('EXCEPTION_ESCAPED', 'exception.escaped').
-define(EXCEPTION_ESCAPED, 'exception.escaped').


%% The exception message.
-define('EXCEPTION_MESSAGE', 'exception.message').
-define(EXCEPTION_MESSAGE, 'exception.message').


%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.
%%
-define('EXCEPTION_STACKTRACE', 'exception.stacktrace').
-define(EXCEPTION_STACKTRACE, 'exception.stacktrace').


%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.
%%
-define('EXCEPTION_TYPE', 'exception.type').
-define(EXCEPTION_TYPE, 'exception.type').
Original file line number Diff line number Diff line change
Expand Up @@ -16,52 +16,52 @@

%% HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
%%
-define('HTTP_REQUEST_HEADER', 'http.request.header').
-define(HTTP_REQUEST_HEADER, 'http.request.header').


%% HTTP request method.
-define('HTTP_REQUEST_METHOD', 'http.request.method').
-define(HTTP_REQUEST_METHOD, 'http.request.method').

-define('HTTP_REQUEST_METHOD_VALUES_CONNECT', 'CONNECT').
-define(HTTP_REQUEST_METHOD_VALUES_CONNECT, 'CONNECT').

-define('HTTP_REQUEST_METHOD_VALUES_DELETE', 'DELETE').
-define(HTTP_REQUEST_METHOD_VALUES_DELETE, 'DELETE').

-define('HTTP_REQUEST_METHOD_VALUES_GET', 'GET').
-define(HTTP_REQUEST_METHOD_VALUES_GET, 'GET').

-define('HTTP_REQUEST_METHOD_VALUES_HEAD', 'HEAD').
-define(HTTP_REQUEST_METHOD_VALUES_HEAD, 'HEAD').

-define('HTTP_REQUEST_METHOD_VALUES_OPTIONS', 'OPTIONS').
-define(HTTP_REQUEST_METHOD_VALUES_OPTIONS, 'OPTIONS').

-define('HTTP_REQUEST_METHOD_VALUES_PATCH', 'PATCH').
-define(HTTP_REQUEST_METHOD_VALUES_PATCH, 'PATCH').

-define('HTTP_REQUEST_METHOD_VALUES_POST', 'POST').
-define(HTTP_REQUEST_METHOD_VALUES_POST, 'POST').

-define('HTTP_REQUEST_METHOD_VALUES_PUT', 'PUT').
-define(HTTP_REQUEST_METHOD_VALUES_PUT, 'PUT').

-define('HTTP_REQUEST_METHOD_VALUES_TRACE', 'TRACE').
-define(HTTP_REQUEST_METHOD_VALUES_TRACE, 'TRACE').

-define('HTTP_REQUEST_METHOD_VALUES_OTHER', '_OTHER').
-define(HTTP_REQUEST_METHOD_VALUES_OTHER, '_OTHER').



%% Original HTTP method sent by the client in the request line.
-define('HTTP_REQUEST_METHOD_ORIGINAL', 'http.request.method_original').
-define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original').


%% The ordinal number of request resending attempt (for any reason, including redirects).
%%
-define('HTTP_REQUEST_RESEND_COUNT', 'http.request.resend_count').
-define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count').


%% HTTP response headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
%%
-define('HTTP_RESPONSE_HEADER', 'http.response.header').
-define(HTTP_RESPONSE_HEADER, 'http.response.header').


%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
-define('HTTP_RESPONSE_STATUS_CODE', 'http.response.status_code').
-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code').


%% The matched route, that is, the path template in the format used by the respective server framework.
%%
-define('HTTP_ROUTE', 'http.route').
-define(HTTP_ROUTE, 'http.route').
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,47 @@
%%%-------------------------------------------------------------------------

%% Local address of the network connection - IP address or Unix domain socket name.
-define('NETWORK_LOCAL_ADDRESS', 'network.local.address').
-define(NETWORK_LOCAL_ADDRESS, 'network.local.address').


%% Local port number of the network connection.
-define('NETWORK_LOCAL_PORT', 'network.local.port').
-define(NETWORK_LOCAL_PORT, 'network.local.port').


%% Peer address of the network connection - IP address or Unix domain socket name.
-define('NETWORK_PEER_ADDRESS', 'network.peer.address').
-define(NETWORK_PEER_ADDRESS, 'network.peer.address').


%% Peer port number of the network connection.
-define('NETWORK_PEER_PORT', 'network.peer.port').
-define(NETWORK_PEER_PORT, 'network.peer.port').


%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent.
-define('NETWORK_PROTOCOL_NAME', 'network.protocol.name').
-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name').


%% The actual version of the protocol used for network communication.
-define('NETWORK_PROTOCOL_VERSION', 'network.protocol.version').
-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version').


%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication).
%%
-define('NETWORK_TRANSPORT', 'network.transport').
-define(NETWORK_TRANSPORT, 'network.transport').

-define('NETWORK_TRANSPORT_VALUES_TCP', 'tcp').
-define(NETWORK_TRANSPORT_VALUES_TCP, 'tcp').

-define('NETWORK_TRANSPORT_VALUES_UDP', 'udp').
-define(NETWORK_TRANSPORT_VALUES_UDP, 'udp').

-define('NETWORK_TRANSPORT_VALUES_PIPE', 'pipe').
-define(NETWORK_TRANSPORT_VALUES_PIPE, 'pipe').

-define('NETWORK_TRANSPORT_VALUES_UNIX', 'unix').
-define(NETWORK_TRANSPORT_VALUES_UNIX, 'unix').



%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent.
-define('NETWORK_TYPE', 'network.type').
-define(NETWORK_TYPE, 'network.type').

-define('NETWORK_TYPE_VALUES_IPV_4', 'ipv4').
-define(NETWORK_TYPE_VALUES_IPV_4, 'ipv4').

-define('NETWORK_TYPE_VALUES_IPV_6', 'ipv6').
-define(NETWORK_TYPE_VALUES_IPV_6, 'ipv6').

Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
%%%-------------------------------------------------------------------------

%% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
-define('OTEL_SCOPE_NAME', 'otel.scope.name').
-define(OTEL_SCOPE_NAME, 'otel.scope.name').


%% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
-define('OTEL_SCOPE_VERSION', 'otel.scope.version').
-define(OTEL_SCOPE_VERSION, 'otel.scope.version').


%% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
-define('OTEL_STATUS_CODE', 'otel.status_code').
-define(OTEL_STATUS_CODE, 'otel.status_code').

-define('OTEL_STATUS_CODE_VALUES_OK', 'OK').
-define(OTEL_STATUS_CODE_VALUES_OK, 'OK').

-define('OTEL_STATUS_CODE_VALUES_ERROR', 'ERROR').
-define(OTEL_STATUS_CODE_VALUES_ERROR, 'ERROR').



%% Description of the Status if it has a value, otherwise not set.
-define('OTEL_STATUS_DESCRIPTION', 'otel.status_description').
-define(OTEL_STATUS_DESCRIPTION, 'otel.status_description').
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
%%%-------------------------------------------------------------------------

%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
-define('SERVER_ADDRESS', 'server.address').
-define(SERVER_ADDRESS, 'server.address').


%% Server port number.
-define('SERVER_PORT', 'server.port').
-define(SERVER_PORT, 'server.port').
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

%% Logical name of the service.
%%
-define('SERVICE_NAME', 'service.name').
-define(SERVICE_NAME, 'service.name').


%% The version string of the service API or implementation. The format is not defined by these conventions.
%%
-define('SERVICE_VERSION', 'service.version').
-define(SERVICE_VERSION, 'service.version').
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@

%% The language of the telemetry SDK.
%%
-define('TELEMETRY_SDK_LANGUAGE', 'telemetry.sdk.language').
-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_CPP', 'cpp').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_CPP, 'cpp').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_DOTNET', 'dotnet').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_DOTNET, 'dotnet').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_ERLANG', 'erlang').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_ERLANG, 'erlang').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_GO', 'go').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_GO, 'go').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_JAVA', 'java').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_JAVA, 'java').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_NODEJS', 'nodejs').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_NODEJS, 'nodejs').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_PHP', 'php').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_PHP, 'php').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_PYTHON', 'python').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_PYTHON, 'python').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_RUBY', 'ruby').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_RUBY, 'ruby').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_RUST', 'rust').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_RUST, 'rust').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_SWIFT', 'swift').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_SWIFT, 'swift').

-define('TELEMETRY_SDK_LANGUAGE_VALUES_WEBJS', 'webjs').
-define(TELEMETRY_SDK_LANGUAGE_VALUES_WEBJS, 'webjs').



%% The name of the telemetry SDK as defined above.
%%
-define('TELEMETRY_SDK_NAME', 'telemetry.sdk.name').
-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name').


%% The version string of the telemetry SDK.
%%
-define('TELEMETRY_SDK_VERSION', 'telemetry.sdk.version').
-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version').
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@

%% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component
%%
-define('URL_FRAGMENT', 'url.fragment').
-define(URL_FRAGMENT, 'url.fragment').


%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986)
-define('URL_FULL', 'url.full').
-define(URL_FULL, 'url.full').


%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component
%%
-define('URL_PATH', 'url.path').
-define(URL_PATH, 'url.path').


%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component
%%
-define('URL_QUERY', 'url.query').
-define(URL_QUERY, 'url.query').


%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol.
%%
-define('URL_SCHEME', 'url.scheme').
-define(URL_SCHEME, 'url.scheme').
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.
%%
-define('USER_AGENT_ORIGINAL', 'user_agent.original').
-define(USER_AGENT_ORIGINAL, 'user_agent.original').
Loading

0 comments on commit f377d87

Please sign in to comment.