Skip to content

Commit

Permalink
Add metrics and license to hrl
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannaegele committed Jul 15, 2024
1 parent 8005eb0 commit 3429bcf
Show file tree
Hide file tree
Showing 83 changed files with 4,216 additions and 106 deletions.
36 changes: 24 additions & 12 deletions apps/opentelemetry_semantic_conventions/generate.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
semconv_version = "1.26.0"
docker_img_vsn = "0.5.0"
schema_uri = "https://opentelemetry.io/schemas/#{semconv_version}"

# build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim()
build_dir = "#{File.cwd!()}/semtmp"
Expand Down Expand Up @@ -30,11 +29,13 @@ cwd = File.cwd!()
########

# elixir

# stable attrs
System.cmd("docker", [
"run",
# "--rm",
"-v",
"#{build_dir}:/source",
"#{build_dir}/model:/source",
"-v",
"#{cwd}/templates:/weaver/templates",
"-v",
Expand All @@ -43,74 +44,85 @@ System.cmd("docker", [
# "otel/weaver:#{docker_img_vsn}",
"registry",
"generate",
"--registry=/source/model",
"--registry=/source",
"--templates=/weaver/templates",
"--param",
"output=/output/",
"--param",
"stability=stable",
"elixir",
"/output/"
])

# incubating attrs
System.cmd("docker", [
"run",
# "--rm",
"-v",
"#{build_dir}:/source",
"#{build_dir}/model:/source",
"-v",
"#{cwd}/templates:/weaver/templates",
"-v",
"#{cwd}/lib/incubating:/output",
"#{cwd}/lib:/output",
"local-weaver",
# "otel/weaver:#{docker_img_vsn}",
"registry",
"generate",
"--registry=/source/model",
"--registry=/source",
"--templates=/weaver/templates",
"--param",
"output=/output/incubating/",
"--param",
"stability=experimental",
"elixir",
"/output/"
])

# erlang

# stable attrs
System.cmd("docker", [
"run",
# "--rm",
"-v",
"#{build_dir}:/source",
"#{build_dir}/model:/source",
"-v",
"#{cwd}/templates:/weaver/templates",
"-v",
"#{cwd}/include:/output",
"#{cwd}/include:/output/",
"local-weaver",
# "otel/weaver:#{docker_img_vsn}",
"registry",
"generate",
"--registry=/source/model",
"--registry=/source",
"--templates=/weaver/templates",
"--param",
"output=/output/",
"--param",
"stability=stable",
"erlang",
"/output/"
])

# incubating attrs
System.cmd("docker", [
"run",
# "--rm",
"-v",
"#{build_dir}:/source",
"#{build_dir}/model:/source",
"-v",
"#{cwd}/templates:/weaver/templates",
"-v",
"#{cwd}/include/incubating:/output",
"#{cwd}/include:/output",
"local-weaver",
# "otel/weaver:#{docker_img_vsn}",
"registry",
"generate",
"--registry=/source/model",
"--registry=/source",
"--templates=/weaver/templates",
"--param",
"output=/output/incubating/",
"--param",
"stability=experimental",
"erlang",
"/output/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
-define(CLIENT_ADDRESS, 'client.address').
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% Describes a class of error the operation ended with.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% 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.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The JSON-serialized value of each item in the `AttributeDefinitions` request field.
-define(AWS_DYNAMODB_ATTRIBUTEDEFINITIONS, 'aws.dynamodb.attribute_definitions').
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% Array of brand name and version separated by a space
-define(BROWSER_BRANDS, 'browser.brands').
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The cloud account ID the resource is assigned to.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The command used to run the container (i.e. the command name).
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html).
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
%%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
-define(DESTINATION_ADDRESS, 'destination.address').
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

%%%------------------------------------------------------------------------
%% Copyright The OpenTelemetry Authors
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%%-------------------------------------------------------------------------

%% A unique identifier representing the device
%%
Expand Down
Loading

0 comments on commit 3429bcf

Please sign in to comment.