├── .codespellignore ├── requirements.txt ├── semantic_conventions ├── .gitignore ├── .yardopts ├── lib │ ├── opentelemetry-semantic_conventions.rb │ └── opentelemetry │ │ ├── semantic_conventions │ │ └── version.rb │ │ └── semconv │ │ ├── code.rb │ │ ├── otel.rb │ │ ├── url.rb │ │ ├── client.rb │ │ ├── error.rb │ │ ├── kestrel.rb │ │ ├── network.rb │ │ ├── server.rb │ │ ├── service.rb │ │ ├── exception.rb │ │ ├── incubating │ │ ├── app.rb │ │ ├── aws.rb │ │ ├── az.rb │ │ ├── code.rb │ │ ├── disk.rb │ │ ├── file.rb │ │ ├── gcp.rb │ │ ├── geo.rb │ │ ├── host.rb │ │ ├── ios.rb │ │ ├── log.rb │ │ ├── net.rb │ │ ├── oci.rb │ │ ├── os.rb │ │ ├── peer.rb │ │ ├── pool.rb │ │ ├── test.rb │ │ ├── tls.rb │ │ ├── url.rb │ │ ├── user.rb │ │ ├── zos.rb │ │ ├── client.rb │ │ ├── cloud.rb │ │ ├── device.rb │ │ ├── error.rb │ │ ├── event.rb │ │ ├── heroku.rb │ │ ├── kestrel.rb │ │ ├── linux.rb │ │ ├── other.rb │ │ ├── server.rb │ │ ├── source.rb │ │ ├── thread.rb │ │ ├── android.rb │ │ ├── artifact.rb │ │ ├── browser.rb │ │ ├── cassandra.rb │ │ ├── enduser.rb │ │ ├── exception.rb │ │ ├── graphql.rb │ │ ├── mainframe.rb │ │ ├── message.rb │ │ ├── network.rb │ │ ├── profile.rb │ │ ├── service.rb │ │ ├── session.rb │ │ ├── telemetry.rb │ │ ├── webengine.rb │ │ ├── cloudevents.rb │ │ ├── deployment.rb │ │ ├── destination.rb │ │ ├── opentracing.rb │ │ ├── user_agent.rb │ │ ├── cloudfoundry.rb │ │ ├── elasticsearch.rb │ │ ├── feature_flag.rb │ │ ├── security_rule.rb │ │ ├── cpu.rb │ │ ├── db.rb │ │ ├── dns.rb │ │ ├── go.rb │ │ ├── hw.rb │ │ ├── jvm.rb │ │ ├── k8s.rb │ │ └── rpc.rb │ │ ├── telemetry.rb │ │ ├── user_agent.rb │ │ ├── db.rb │ │ ├── jvm.rb │ │ ├── http.rb │ │ └── dotnet.rb ├── Gemfile └── test │ └── test_helper.rb ├── examples ├── otel-collector │ ├── .env │ ├── otel-collector-config.yaml │ └── docker-compose.yaml └── http │ ├── Gemfile │ └── README.md ├── sdk ├── test │ ├── .rubocop.yml │ ├── test_helper.rb │ └── opentelemetry │ │ └── sdk │ │ └── trace │ │ └── span_processor_test.rb ├── lib │ ├── opentelemetry-sdk.rb │ └── opentelemetry │ │ └── sdk │ │ ├── version.rb │ │ ├── resources.rb │ │ ├── instrumentation_scope.rb │ │ ├── instrumentation_library.rb │ │ ├── trace │ │ ├── event.rb │ │ └── samplers │ │ │ └── decision.rb │ │ └── trace.rb ├── .yardopts ├── .rubocop.yml ├── Gemfile └── Rakefile ├── exporter ├── zipkin │ ├── test │ │ └── .rubocop.yml │ ├── lib │ │ ├── opentelemetry-exporter-zipkin.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── zipkin │ │ │ └── version.rb │ ├── .yardopts │ ├── .rubocop.yml │ ├── Gemfile │ └── Rakefile ├── otlp-common │ ├── test │ │ ├── .rubocop.yml │ │ └── test_helper.rb │ ├── lib │ │ ├── opentelemetry-exporter-otlp-common.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── otlp │ │ │ └── common │ │ │ └── version.rb │ ├── .yardopts │ ├── CHANGELOG.md │ ├── .rubocop.yml │ └── Gemfile ├── otlp-grpc │ ├── .rubocop.yml │ ├── lib │ │ ├── opentelemetry-exporter-otlp-grpc.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── otlp │ │ │ ├── grpc │ │ │ └── version.rb │ │ │ └── grpc.rb │ ├── .yardopts │ ├── CHANGELOG.md │ ├── test │ │ ├── .rubocop.yml │ │ ├── test_helper.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── otlp │ │ │ └── grpc │ │ │ └── trace_exporter_test.rb │ ├── Gemfile │ └── Rakefile ├── jaeger │ ├── test │ │ └── .rubocop.yml │ ├── lib │ │ ├── opentelemetry-exporter-jaeger.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── jaeger │ │ │ └── version.rb │ ├── .yardopts │ ├── thrift │ │ └── gen-rb │ │ │ ├── agent_constants.rb │ │ │ ├── jaeger_constants.rb │ │ │ └── agent_types.rb │ ├── .rubocop.yml │ ├── Gemfile │ └── Rakefile ├── otlp │ ├── lib │ │ ├── opentelemetry-exporter-otlp.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ ├── otlp │ │ │ └── version.rb │ │ │ └── otlp.rb │ ├── .yardopts │ ├── test │ │ ├── .rubocop.yml │ │ └── test_helper.rb │ ├── Appraisals │ ├── .rubocop.yml │ └── Gemfile ├── otlp-http │ ├── lib │ │ ├── opentelemetry-exporter-otlp-http.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ └── otlp │ │ │ ├── http │ │ │ └── version.rb │ │ │ └── http.rb │ ├── .yardopts │ ├── CHANGELOG.md │ ├── test │ │ ├── .rubocop.yml │ │ └── test_helper.rb │ ├── .rubocop.yml │ ├── Gemfile │ └── Rakefile ├── otlp-logs │ ├── lib │ │ ├── opentelemetry-exporter-otlp-logs.rb │ │ └── opentelemetry │ │ │ └── exporter │ │ │ ├── otlp │ │ │ └── logs │ │ │ │ └── version.rb │ │ │ └── otlp_logs.rb │ ├── .yardopts │ ├── .rubocop.yml │ ├── CHANGELOG.md │ ├── Appraisals │ ├── test │ │ └── test_helper.rb │ └── Gemfile └── otlp-metrics │ ├── lib │ ├── opentelemetry-exporter-otlp-metrics.rb │ └── opentelemetry │ │ └── exporter │ │ ├── otlp │ │ └── metrics │ │ │ └── version.rb │ │ └── otlp_metrics.rb │ ├── .yardopts │ ├── test │ └── .rubocop.yml │ ├── Appraisals │ ├── Gemfile │ └── .rubocop.yml ├── metrics_api ├── test │ ├── .rubocop.yml │ ├── test_helper.rb │ └── opentelemetry │ │ └── metrics │ │ └── meter_provider_test.rb ├── .yardopts ├── lib │ └── opentelemetry │ │ ├── metrics │ │ ├── measurement.rb │ │ ├── version.rb │ │ ├── meter_provider.rb │ │ ├── instrument.rb │ │ └── instrument │ │ │ └── gauge.rb │ │ └── metrics.rb ├── .rubocop.yml ├── Gemfile ├── CHANGELOG.md └── Rakefile ├── test_helpers ├── test │ ├── .rubocop.yml │ └── test_helper.rb ├── .rubocop.yml ├── lib │ ├── opentelemetry-test-helpers.rb │ └── opentelemetry │ │ └── test_helpers │ │ └── version.rb ├── .yardopts ├── Gemfile ├── CHANGELOG.md └── Rakefile ├── sdk_experimental ├── test │ └── .rubocop.yml ├── .yardopts ├── lib │ ├── opentelemetry-sdk-experimental.rb │ └── opentelemetry │ │ └── sdk │ │ ├── experimental │ │ └── version.rb │ │ └── experimental.rb ├── .rubocop.yml ├── README.md ├── Gemfile ├── Rakefile └── CHANGELOG.md ├── api ├── test │ ├── .rubocop.yml │ ├── test_helper.rb │ └── opentelemetry │ │ ├── baggage │ │ └── propagation_test.rb │ │ └── trace │ │ ├── tracer_provider_test.rb │ │ └── propagation │ │ └── trace_context │ │ └── trace_context_test.rb ├── .rubocop.yml ├── lib │ ├── opentelemetry-api.rb │ └── opentelemetry │ │ ├── error.rb │ │ ├── version.rb │ │ ├── trace │ │ ├── propagation.rb │ │ └── tracer_provider.rb │ │ ├── internal.rb │ │ ├── baggage │ │ ├── entry.rb │ │ ├── propagation │ │ │ └── context_keys.rb │ │ └── propagation.rb │ │ └── context │ │ ├── propagation │ │ ├── text_map_setter.rb │ │ ├── noop_text_map_propagator.rb │ │ └── text_map_getter.rb │ │ └── key.rb ├── .yardopts ├── Gemfile ├── Rakefile └── benchmarks │ └── span_bench.rb ├── logs_sdk ├── test │ ├── .rubocop.yml │ └── test_helper.rb ├── .yardopts ├── lib │ ├── opentelemetry-logs-sdk.rb │ └── opentelemetry │ │ └── sdk │ │ ├── logs │ │ └── version.rb │ │ └── logs.rb ├── .rubocop.yml ├── Gemfile ├── CHANGELOG.md └── Rakefile ├── registry ├── test │ ├── .rubocop.yml │ └── test_helper.rb ├── lib │ ├── opentelemetry-registry.rb │ └── opentelemetry │ │ └── instrumentation │ │ └── registry │ │ └── version.rb ├── .yardopts ├── Gemfile ├── .rubocop.yml ├── CHANGELOG.md └── Rakefile ├── metrics_sdk ├── test │ ├── .rubocop.yml │ └── opentelemetry │ │ └── sdk │ │ └── metrics │ │ └── aggregation │ │ └── exponential_histogram │ │ └── ieee_754_test.rb ├── .yardopts ├── lib │ ├── opentelemetry-metrics-sdk.rb │ └── opentelemetry │ │ └── sdk │ │ ├── metrics │ │ ├── version.rb │ │ ├── view.rb │ │ ├── state.rb │ │ ├── aggregation │ │ │ ├── drop.rb │ │ │ ├── exponential_histogram │ │ │ │ └── log2e_scale_factor.rb │ │ │ └── number_data_point.rb │ │ └── export.rb │ │ └── metrics.rb ├── .rubocop.yml ├── Rakefile └── Gemfile ├── propagator ├── b3 │ ├── .rubocop.yml │ ├── test │ │ ├── .rubocop.yml │ │ ├── test_helper.rb │ │ ├── multi_test.rb │ │ └── single_test.rb │ ├── .yardopts │ ├── lib │ │ ├── opentelemetry-propagator-b3.rb │ │ └── opentelemetry │ │ │ └── propagator │ │ │ └── b3 │ │ │ └── version.rb │ ├── Gemfile │ └── Rakefile └── jaeger │ ├── test │ ├── test_helper.rb │ └── jaeger_test.rb │ ├── .yardopts │ ├── lib │ ├── opentelemetry-propagator-jaeger.rb │ └── opentelemetry │ │ └── propagator │ │ └── jaeger │ │ └── version.rb │ ├── .rubocop.yml │ ├── Gemfile │ └── Rakefile ├── .commit-me.json ├── .clomonitor.yml ├── CODE_OF_CONDUCT.md ├── logs_api ├── CHANGELOG.md ├── test │ ├── .rubocop.yml │ ├── test_helper.rb │ └── opentelemetry │ │ └── logs │ │ ├── logger_test.rb │ │ └── logger_provider_test.rb ├── .yardopts ├── Gemfile ├── .rubocop.yml ├── lib │ └── opentelemetry │ │ ├── logs │ │ ├── version.rb │ │ ├── log_record.rb │ │ └── logger_provider.rb │ │ └── logs.rb └── Rakefile ├── Gemfile ├── common ├── lib │ ├── opentelemetry-common.rb │ └── opentelemetry │ │ ├── common │ │ ├── version.rb │ │ ├── http.rb │ │ └── propagation │ │ │ └── symbol_key_getter.rb │ │ └── common.rb ├── .yardopts ├── test │ ├── test_helper.rb │ └── opentelemetry │ │ └── common │ │ └── propagation │ │ └── symbol_key_getter_test.rb ├── Gemfile ├── .rubocop.yml └── Rakefile ├── contrib ├── Gemfile.shared └── rubocop.yml ├── .toys ├── .toys.rb └── yardoc.rb ├── .codespellrc ├── .gitignore ├── .markdownlint.json ├── .github ├── renovate.json5 └── workflows │ ├── ci-markdownlint.yml │ └── ci-markdown-link.yml ├── CODEOWNERS └── docker-compose.yml /.codespellignore: -------------------------------------------------------------------------------- 1 | ot 2 | te 3 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | codespell==2.3.0 2 | -------------------------------------------------------------------------------- /semantic_conventions/.gitignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | -------------------------------------------------------------------------------- /examples/otel-collector/.env: -------------------------------------------------------------------------------- 1 | OTELCOL_IMG=otel/opentelemetry-collector-contrib:0.109.0 2 | OTELCOL_ARGS= 3 | -------------------------------------------------------------------------------- /sdk/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /exporter/zipkin/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /metrics_api/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /test_helpers/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /exporter/otlp-common/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /sdk_experimental/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /api/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Metrics/AbcSize: 6 | Enabled: false 7 | -------------------------------------------------------------------------------- /logs_sdk/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Metrics/AbcSize: 6 | Enabled: false 7 | -------------------------------------------------------------------------------- /registry/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Metrics/AbcSize: 6 | Enabled: false 7 | -------------------------------------------------------------------------------- /metrics_sdk/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Layout/LineLength: 6 | Enabled: false 7 | -------------------------------------------------------------------------------- /propagator/b3/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | Naming/FileName: 4 | Exclude: 5 | - 'lib/opentelemetry-propagator-b3.rb' 6 | -------------------------------------------------------------------------------- /propagator/b3/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Metrics/AbcSize: 6 | Enabled: false 7 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | Naming/FileName: 4 | Exclude: 5 | - "lib/opentelemetry-exporter-otlp-grpc.rb" 6 | -------------------------------------------------------------------------------- /.commit-me.json: -------------------------------------------------------------------------------- 1 | { 2 | "include-pull-requests": true, 3 | "types": [ "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "release", "revert", "squash", "style", "test" ] 4 | } 5 | -------------------------------------------------------------------------------- /api/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Naming/FileName: 4 | Exclude: 5 | - "lib/opentelemetry-api.rb" 6 | Style/ExplicitBlockArgument: 7 | Enabled: false 8 | -------------------------------------------------------------------------------- /api/lib/opentelemetry-api.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry' 8 | -------------------------------------------------------------------------------- /exporter/jaeger/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/AbcSize: 4 | Max: 18 5 | Metrics/BlockLength: 6 | Enabled: false 7 | Layout/LineLength: 8 | Enabled: false 9 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry-sdk.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/sdk' 8 | -------------------------------------------------------------------------------- /test_helpers/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Gemspec/RequireMFA: 4 | Enabled: false 5 | 6 | Naming/FileName: 7 | Exclude: 8 | - "lib/opentelemetry-test-helpers.rb" 9 | -------------------------------------------------------------------------------- /.clomonitor.yml: -------------------------------------------------------------------------------- 1 | # see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions 2 | exemptions: 3 | - check: artifacthub_badge 4 | reason: "Artifact Hub doesn't support ruby packages" 5 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # OpenTelemetry Community Code of Conduct 2 | 3 | Please refer to our [OpenTelemetry Community Code of Conduct](https://github.com/open-telemetry/community/blob/main/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /api/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry API 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /logs_api/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-logs-api 2 | 3 | ### v0.2.0 / 2025-02-25 4 | 5 | - ADDED: Support 3.1 Min Version 6 | 7 | ### v0.1.0 / 2024-12-04 8 | 9 | Initial release. 10 | -------------------------------------------------------------------------------- /logs_api/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Layout/LineLength: 4 | Enabled: false 5 | 6 | Metrics/AbcSize: 7 | Enabled: false 8 | Metrics/BlockLength: 9 | Enabled: false 10 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gem 'rake', '~> 13.3' 10 | -------------------------------------------------------------------------------- /common/lib/opentelemetry-common.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require_relative './opentelemetry/common' 8 | -------------------------------------------------------------------------------- /sdk/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry SDK 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/sdk/**/*.rb 6 | ./lib/opentelemetry/sdk.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /logs_api/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Logs API 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /logs_sdk/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Logs SDK 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /test_helpers/lib/opentelemetry-test-helpers.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/test_helpers' 8 | -------------------------------------------------------------------------------- /exporter/otlp/lib/opentelemetry-exporter-otlp.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp' 8 | -------------------------------------------------------------------------------- /metrics_api/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Metrics API 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /metrics_sdk/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Metrics SDK 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /common/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Common 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/common/**/*.rb 6 | ./lib/opentelemetry/common.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/jaeger/lib/opentelemetry-exporter-jaeger.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/jaeger' 8 | -------------------------------------------------------------------------------- /exporter/zipkin/lib/opentelemetry-exporter-zipkin.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/zipkin' 8 | -------------------------------------------------------------------------------- /contrib/Gemfile.shared: -------------------------------------------------------------------------------- 1 | gem 'rubocop-rspec', '~> 3.5', require: false 2 | gem 'rubocop-rake', '~> 0.7.1', require: false 3 | gem 'rubocop-minitest', '~> 0.38.0', require: false 4 | gem 'rubocop-performance', '~> 1.25', require: false 5 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/lib/opentelemetry-exporter-otlp-grpc.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/grpc' 8 | -------------------------------------------------------------------------------- /exporter/otlp-http/lib/opentelemetry-exporter-otlp-http.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/http' 8 | -------------------------------------------------------------------------------- /exporter/otlp-logs/lib/opentelemetry-exporter-otlp-logs.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp_logs' 8 | -------------------------------------------------------------------------------- /propagator/b3/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'minitest/autorun' 8 | require 'opentelemetry-propagator-b3' 9 | -------------------------------------------------------------------------------- /sdk/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../contrib/rubocop.yml 3 | - .rubocop_todo.yml 4 | 5 | Naming/FileName: 6 | Exclude: 7 | - "lib/opentelemetry-sdk.rb" 8 | 9 | Style/ExplicitBlockArgument: 10 | Enabled: false 11 | -------------------------------------------------------------------------------- /.toys/.toys.rb: -------------------------------------------------------------------------------- 1 | toys_version! ">= 0.15.5" 2 | 3 | load_git remote: "https://github.com/dazuma/toys.git", 4 | path: ".toys/release", 5 | as: "release", 6 | commit: "common-tools/v0.15.5.1", 7 | update: 3600 8 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | module OpenTelemetry 7 | class Error < StandardError 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /exporter/otlp-common/lib/opentelemetry-exporter-otlp-common.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/common' 8 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/lib/opentelemetry-exporter-otlp-metrics.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp_metrics' 8 | -------------------------------------------------------------------------------- /propagator/jaeger/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'minitest/autorun' 8 | require 'opentelemetry-propagator-jaeger' 9 | -------------------------------------------------------------------------------- /sdk_experimental/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry SDK (experimental extensions) 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/**/*.rb 6 | ./lib/opentelemetry.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /semantic_conventions/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Semantic Conventions 3 | --markup=markdown 4 | --markup-provider=kramdown 5 | --main=README.md 6 | ./lib/opentelemetry/**/*.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /test_helpers/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Test Helpers 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/test_helpers/**/*.rb 6 | ./lib/opentelemetry/test_helpers.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/otlp/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP Exporter 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /propagator/b3/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Propagator B3 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/propagator/b3/**/*.rb 6 | ./lib/opentelemetry/propagator/b3.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /registry/lib/opentelemetry-registry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry' 8 | require_relative './opentelemetry/instrumentation' 9 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry-semantic_conventions.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require_relative 'opentelemetry/semantic_conventions' 8 | -------------------------------------------------------------------------------- /logs_api/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | -------------------------------------------------------------------------------- /exporter/jaeger/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Jaeger Exporter 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/jaeger/**/*.rb 6 | ./lib/opentelemetry/exporter/jaeger.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP GRPC 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp/grpc/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp/grpc.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/otlp-http/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP HTTP 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp/http/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp/http.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/zipkin/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Zipkin Exporter 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/zipkin/**/*.rb 6 | ./lib/opentelemetry/exporter/zipkin.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /propagator/b3/lib/opentelemetry-propagator-b3.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry-api' 8 | require_relative './opentelemetry/propagator/b3' 9 | -------------------------------------------------------------------------------- /registry/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Registry Instrumentation 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/instrumentation/**/*.rb 6 | ./lib/opentelemetry/instrumentation.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /sdk_experimental/lib/opentelemetry-sdk-experimental.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/sdk' 8 | require 'opentelemetry/sdk/experimental' 9 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | ## Current OpenTelemetry version 9 | VERSION = '1.7.0' 10 | end 11 | -------------------------------------------------------------------------------- /exporter/otlp-logs/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP Logs Exporter 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp-logs/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP Metrics Exporter 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /propagator/jaeger/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry Propagator Jaeger 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/propagator/jaeger/**/*.rb 6 | ./lib/opentelemetry/propagator/jaeger.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /common/lib/opentelemetry/common/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Common 9 | VERSION = '0.23.0' 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /exporter/otlp-common/.yardopts: -------------------------------------------------------------------------------- 1 | --no-private 2 | --title=OpenTelemetry OTLP Common 3 | --markup=markdown 4 | --main=README.md 5 | ./lib/opentelemetry/exporter/otlp/common/**/*.rb 6 | ./lib/opentelemetry/exporter/otlp/common.rb 7 | - 8 | README.md 9 | CHANGELOG.md 10 | -------------------------------------------------------------------------------- /propagator/jaeger/lib/opentelemetry-propagator-jaeger.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry-api' 8 | require_relative './opentelemetry/propagator/jaeger' 9 | -------------------------------------------------------------------------------- /examples/http/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | 5 | gem "faraday", "~> 2.0" 6 | gem "opentelemetry-api" 7 | gem "opentelemetry-common" 8 | gem "opentelemetry-sdk" 9 | gem "sinatra", "~> 4.1" 10 | gem "puma" 11 | gem "rackup" 12 | -------------------------------------------------------------------------------- /exporter/otlp/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Style/MethodCallWithoutArgsParentheses: 4 | Exclude: 5 | - 'opentelemetry/exporter/otlp/exporter_test.rb' 6 | Style/BlockDelimiters: 7 | Exclude: 8 | - 'opentelemetry/exporter/otlp/exporter_test.rb' 9 | -------------------------------------------------------------------------------- /logs_sdk/lib/opentelemetry-logs-sdk.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/sdk' 8 | require 'opentelemetry-logs-api' 9 | require 'opentelemetry/sdk/logs' 10 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-exporter-otlp-grpc 2 | 3 | ### Unreleased 4 | 5 | * ADDED: Boiler plate for a OTLP GRPC exporter implementation. It is not in a production ready state and will not be published until further improvements are made to it. 6 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Style/MethodCallWithoutArgsParentheses: 4 | Exclude: 5 | - 'opentelemetry/exporter/otlp/exporter_test.rb' 6 | Style/BlockDelimiters: 7 | Exclude: 8 | - 'opentelemetry/exporter/otlp/exporter_test.rb' 9 | -------------------------------------------------------------------------------- /logs_api/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Metrics/MethodLength: 4 | Max: 50 5 | Metrics/PerceivedComplexity: 6 | Max: 30 7 | Metrics/CyclomaticComplexity: 8 | Max: 20 9 | 10 | Naming/FileName: 11 | Exclude: 12 | - "lib/opentelemetry-logs-api.rb" 13 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry-metrics-sdk.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/sdk' 8 | require 'opentelemetry-metrics-api' 9 | require 'opentelemetry/sdk/metrics' 10 | -------------------------------------------------------------------------------- /.codespellrc: -------------------------------------------------------------------------------- 1 | # https://github.com/codespell-project/codespell 2 | [codespell] 3 | builtin = clear,rare,informal 4 | check-filenames = 5 | check-hidden = 6 | ignore-words = .codespellignore 7 | interactive = 1 8 | skip = .git,venv,coverage,doc,docs 9 | uri-ignore-words-list = * 10 | write = 11 | -------------------------------------------------------------------------------- /exporter/otlp-http/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-exporter-otlp-http 2 | 3 | ### Unreleased 4 | 5 | * REFACTORED: opentelemetry-exporter-otlp to extract common code here. Refer to its changelog for additional history. [#1179](https://github.com/open-telemetry/opentelemetry-ruby/pull/1179) 6 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | ## Current OpenTelemetry version 10 | VERSION = '1.10.0' 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /exporter/otlp-common/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-exporter-otlp-common 2 | 3 | ### Unreleased 4 | 5 | * REFACTORED: opentelemetry-exporter-otlp to extract common code here. Refer to its changelog for additional history. [#1179](https://github.com/open-telemetry/opentelemetry-ruby/pull/1179) 6 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics/measurement.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Metrics 9 | Measurement = Struct.new(:value, :attributes) 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /logs_api/lib/opentelemetry/logs/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Logs 9 | ## Current OpenTelemetry logs version 10 | VERSION = '0.2.0' 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semantic_conventions/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SemanticConventions 9 | VERSION = '1.36.0' 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /exporter/otlp/Appraisals: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | (14..23).each do |i| 8 | version = "3.#{i}" 9 | appraise "google-protobuf-#{version}" do 10 | gem 'google-protobuf', "~> #{version}" 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /propagator/b3/lib/opentelemetry/propagator/b3/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Propagator 9 | module B3 10 | VERSION = '0.22.0' 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /metrics_api/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../contrib/rubocop.yml 3 | - .rubocop_todo.yml 4 | 5 | Metrics/MethodLength: 6 | Max: 50 7 | Metrics/PerceivedComplexity: 8 | Max: 30 9 | Metrics/CyclomaticComplexity: 10 | Max: 20 11 | Naming/FileName: 12 | Exclude: 13 | - "lib/opentelemetry-metrics-api.rb" 14 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Metrics 9 | ## Current OpenTelemetry metrics version 10 | VERSION = '0.4.0' 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /metrics_sdk/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Metrics/AbcSize: 4 | Max: 30 5 | Metrics/MethodLength: 6 | Max: 50 7 | Metrics/PerceivedComplexity: 8 | Max: 30 9 | Metrics/CyclomaticComplexity: 10 | Max: 20 11 | Naming/FileName: 12 | Exclude: 13 | - "lib/opentelemetry-metrics-sdk.rb" 14 | -------------------------------------------------------------------------------- /propagator/jaeger/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../../contrib/rubocop.yml 3 | - .rubocop_todo.yml 4 | 5 | Metrics/BlockLength: 6 | Exclude: 7 | - 'opentelemetry-propagator-jaeger.gemspec' 8 | - 'test/**/*_test.rb' 9 | Naming/FileName: 10 | Exclude: 11 | - 'lib/opentelemetry-propagator-jaeger.rb' 12 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/Appraisals: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | (14..25).each do |i| 8 | version = "3.#{i}" 9 | appraise "google-protobuf-#{version}" do 10 | gem 'google-protobuf', "~> #{version}" 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /propagator/jaeger/lib/opentelemetry/propagator/jaeger/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Propagator 9 | module Jaeger 10 | VERSION = '0.22.0' 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /registry/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test do 14 | gem 'opentelemetry-api', path: '../api' 15 | end 16 | -------------------------------------------------------------------------------- /registry/lib/opentelemetry/instrumentation/registry/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Instrumentation 9 | class Registry 10 | VERSION = '0.4.0' 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /registry/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry-registry' 8 | require 'minitest/autorun' 9 | require 'rspec/mocks/minitest_integration' 10 | 11 | OpenTelemetry.logger = Logger.new(File::NULL) 12 | -------------------------------------------------------------------------------- /test_helpers/lib/opentelemetry/test_helpers/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | ## Current OpenTelemetry Test Helpers version 9 | module TestHelpers 10 | VERSION = '0.7.0' 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Style/MethodCallWithoutArgsParentheses: 6 | Exclude: 7 | - 'opentelemetry/exporter/otlp/grpc/exporter_test.rb' 8 | Style/BlockDelimiters: 9 | Exclude: 10 | - 'opentelemetry/exporter/otlp/grpc/exporter_test.rb' 11 | -------------------------------------------------------------------------------- /exporter/otlp-http/test/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../.rubocop.yml 2 | 3 | Metrics/BlockLength: 4 | Enabled: false 5 | Style/MethodCallWithoutArgsParentheses: 6 | Exclude: 7 | - 'opentelemetry/exporter/otlp/http/exporter_test.rb' 8 | Style/BlockDelimiters: 9 | Exclude: 10 | - 'opentelemetry/exporter/otlp/http/exporter_test.rb' 11 | -------------------------------------------------------------------------------- /propagator/b3/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test do 14 | gem 'opentelemetry-api', path: '../../api' 15 | end 16 | -------------------------------------------------------------------------------- /logs_api/lib/opentelemetry/logs/log_record.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Logs 9 | # No-op implementation of an emitted log and its associated attributes. 10 | class LogRecord; end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /logs_sdk/lib/opentelemetry/sdk/logs/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Logs 10 | # Current OpenTelemetry logs sdk version 11 | VERSION = '0.4.0' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /api/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-test-helpers', path: '../test_helpers' 15 | end 16 | -------------------------------------------------------------------------------- /logs_sdk/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | AllCops: 4 | NewCops: disable 5 | 6 | Metrics/AbcSize: 7 | Max: 30 8 | Metrics/MethodLength: 9 | Max: 50 10 | Metrics/PerceivedComplexity: 11 | Max: 30 12 | Metrics/CyclomaticComplexity: 13 | Max: 20 14 | Naming/FileName: 15 | Exclude: 16 | - 'lib/opentelemetry-logs-sdk.rb' 17 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | # Current OpenTelemetry metrics sdk version 11 | VERSION = '0.11.2' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /exporter/otlp/lib/opentelemetry/exporter/otlp/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | ## Current OpenTelemetry OTLP exporter version 11 | VERSION = '0.31.1' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /common/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | end 11 | 12 | require 'opentelemetry-test-helpers' 13 | require 'opentelemetry/common' 14 | require 'minitest/autorun' 15 | require 'pry' 16 | -------------------------------------------------------------------------------- /exporter/otlp-http/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | AllCops: 4 | Exclude: 5 | - "lib/opentelemetry/proto/**/*" 6 | - "vendor/**/*" 7 | 8 | Metrics/CyclomaticComplexity: 9 | Enabled: false 10 | Metrics/PerceivedComplexity: 11 | Enabled: false 12 | Naming/FileName: 13 | Exclude: 14 | - "lib/opentelemetry-exporter-otlp-http.rb" 15 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/resources.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # Resources contains the {Resource} class. 10 | module Resources 11 | end 12 | end 13 | end 14 | 15 | require 'opentelemetry/sdk/resources/resource' 16 | -------------------------------------------------------------------------------- /exporter/jaeger/lib/opentelemetry/exporter/jaeger/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module Jaeger 10 | ## Current OpenTelemetry Jaeger exporter version 11 | VERSION = '0.24.1' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /exporter/jaeger/thrift/gen-rb/agent_constants.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.12.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | 7 | require 'thrift' 8 | require 'agent_types' 9 | 10 | module OpenTelemetry 11 | module Exporter 12 | module Jaeger 13 | module Thrift 14 | end 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /exporter/zipkin/lib/opentelemetry/exporter/zipkin/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module Zipkin 10 | ## Current OpenTelemetry Zipkin exporter version 11 | VERSION = '0.24.1' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /sdk_experimental/lib/opentelemetry/sdk/experimental/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Experimental 10 | # Current OpenTelemetry experimental sdk version 11 | VERSION = '0.4.0' 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /exporter/jaeger/thrift/gen-rb/jaeger_constants.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.12.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | 7 | require 'thrift' 8 | require 'jaeger_types' 9 | 10 | module OpenTelemetry 11 | module Exporter 12 | module Jaeger 13 | module Thrift 14 | end 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /logs_api/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'simplecov' 8 | 9 | SimpleCov.start do 10 | enable_coverage :branch 11 | add_filter '/test/' 12 | end 13 | 14 | SimpleCov.minimum_coverage 85 15 | 16 | require 'opentelemetry-logs-api' 17 | require 'minitest/autorun' 18 | -------------------------------------------------------------------------------- /sdk_experimental/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Metrics/AbcSize: 4 | Max: 30 5 | Metrics/MethodLength: 6 | Max: 50 7 | Metrics/PerceivedComplexity: 8 | Max: 30 9 | Metrics/CyclomaticComplexity: 10 | Max: 20 11 | 12 | Naming/FileName: 13 | Exclude: 14 | - "lib/opentelemetry-sdk-experimental.rb" 15 | Naming/MethodParameterName: 16 | Enabled: false 17 | -------------------------------------------------------------------------------- /common/lib/opentelemetry/common/http.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Common 9 | # HTTP contains common helpers for context propagation and semantic conventions. 10 | module HTTP 11 | end 12 | end 13 | end 14 | 15 | require_relative './http/client_context' 16 | -------------------------------------------------------------------------------- /common/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :development, :test do 14 | # Use the opentelemetry-api gem from source 15 | gem 'opentelemetry-api', path: '../api' 16 | gem 'pry' 17 | end 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/Gemfile.lock 2 | **/.yardoc 3 | **/doc 4 | **/docs 5 | **/coverage 6 | **/pkg 7 | **/*.gem 8 | **/.bundle 9 | **/.DS_Store 10 | **/.byebug_history 11 | 12 | 13 | # Appraisals 14 | **/*/gemfiles 15 | 16 | # Vendored gems 17 | **/vendor/**/* 18 | 19 | # IDE Settings 20 | /.idea/ 21 | 22 | # rbenv configuration 23 | .ruby-version 24 | 25 | # Python virtual env for codespell 26 | venv 27 | 28 | tags 29 | -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "emphasis-style": false, 3 | "line-length": false, 4 | "link-fragments": false, 5 | "list-marker-space": false, 6 | "no-emphasis-as-heading": false, 7 | "no-hard-tabs": false, 8 | "no-inline-html": false, 9 | "no-trailing-punctuation": false, 10 | "no-trailing-spaces": true, 11 | "custom-rules-below-this-point": false, 12 | "trim-code-block-and-unindent": true 13 | } 14 | -------------------------------------------------------------------------------- /exporter/jaeger/thrift/gen-rb/agent_types.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Autogenerated by Thrift Compiler (0.12.0) 3 | # 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 | # 6 | 7 | require 'thrift' 8 | require 'jaeger_types' 9 | require 'zipkincore_types' 10 | 11 | 12 | module OpenTelemetry 13 | module Exporter 14 | module Jaeger 15 | module Thrift 16 | end 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /metrics_api/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'pry' 16 | gem 'pry-byebug' unless RUBY_ENGINE == 'jruby' 17 | end 18 | -------------------------------------------------------------------------------- /test_helpers/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry-sdk' 8 | require 'opentelemetry-test-helpers' 9 | require 'minitest/autorun' 10 | require 'pry' 11 | 12 | if RUBY_ENGINE == 'ruby' 13 | require 'simplecov' 14 | SimpleCov.start 15 | SimpleCov.minimum_coverage 85 16 | end 17 | -------------------------------------------------------------------------------- /semantic_conventions/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :development, :test do 14 | gem 'mutex_m' if RUBY_VERSION >= '3.4' 15 | gem 'opentelemetry-api', path: '../api' 16 | gem 'pry' 17 | end 18 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/instrumentation_scope.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # InstrumentationScope is a struct containing scope information for export. 10 | InstrumentationScope = Struct.new(:name, 11 | :version) 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/lib/opentelemetry/exporter/otlp/grpc/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | module GRPC 11 | ## Current OpenTelemetry OTLP exporter grpc version 12 | VERSION = '0.0.0' 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /exporter/otlp-http/lib/opentelemetry/exporter/otlp/http/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | module HTTP 11 | ## Current OpenTelemetry OTLP exporter http version 12 | VERSION = '0.0.0' 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /exporter/otlp-logs/lib/opentelemetry/exporter/otlp/logs/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | module Logs 11 | ## Current OpenTelemetry OTLP logs exporter version 12 | VERSION = '0.2.2' 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/lib/opentelemetry/exporter/otlp/metrics/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | module Metrics 11 | ## Current OpenTelemetry OTLP exporter version 12 | VERSION = '0.6.1' 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /exporter/otlp-common/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | AllCops: 4 | Exclude: 5 | - "lib/opentelemetry/proto/**/*" 6 | - "vendor/**/*" 7 | 8 | Metrics/CyclomaticComplexity: 9 | Enabled: false 10 | Metrics/MethodLength: 11 | Enabled: false 12 | Metrics/PerceivedComplexity: 13 | Enabled: false 14 | 15 | Naming/FileName: 16 | Exclude: 17 | - "lib/opentelemetry-exporter-otlp-common.rb" 18 | -------------------------------------------------------------------------------- /exporter/otlp-common/lib/opentelemetry/exporter/otlp/common/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Exporter 9 | module OTLP 10 | module Common 11 | ## Current OpenTelemetry OTLP exporter common version 12 | VERSION = '0.0.0' 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /api/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | SimpleCov.minimum_coverage 85 11 | end 12 | 13 | require 'opentelemetry-test-helpers' 14 | require 'opentelemetry' 15 | require 'minitest/autorun' 16 | 17 | OpenTelemetry.logger = Logger.new(File::NULL) 18 | -------------------------------------------------------------------------------- /registry/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Bundler/OrderedGems: 4 | Exclude: 5 | - gemfiles/**/* 6 | Style/FrozenStringLiteralComment: 7 | Exclude: 8 | - gemfiles/**/* 9 | Style/StringLiterals: 10 | Exclude: 11 | - "**/gemfiles/**/*" 12 | - "**/example/Gemfile" 13 | Metrics/BlockLength: 14 | Enabled: false 15 | Naming/FileName: 16 | Exclude: 17 | - "lib/opentelemetry-registry.rb" 18 | 19 | -------------------------------------------------------------------------------- /metrics_api/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | # require 'simplecov' 8 | # # SimpleCov.start 9 | # # SimpleCov.minimum_coverage 85 10 | 11 | require 'opentelemetry-test-helpers' 12 | require 'opentelemetry-metrics-api' 13 | require 'minitest/autorun' 14 | require 'pry' 15 | 16 | OpenTelemetry.logger = Logger.new(File::NULL) 17 | -------------------------------------------------------------------------------- /common/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../contrib/rubocop.yml 2 | 3 | Bundler/OrderedGems: 4 | Exclude: 5 | - gemfiles/**/* 6 | Style/FrozenStringLiteralComment: 7 | Exclude: 8 | - gemfiles/**/* 9 | Style/ExplicitBlockArgument: 10 | Enabled: false 11 | Style/StringLiterals: 12 | Exclude: 13 | - gemfiles/**/* 14 | Metrics/BlockLength: 15 | Enabled: false 16 | Naming/FileName: 17 | Exclude: 18 | - "lib/opentelemetry-common.rb" 19 | -------------------------------------------------------------------------------- /.toys/yardoc.rb: -------------------------------------------------------------------------------- 1 | desc "Build YARD documentation for the gem in the current directory" 2 | 3 | include :exec, e: true 4 | include :fileutils 5 | 6 | set_context_directory Dir.pwd 7 | 8 | def run 9 | raise "No yardopts in the current directory" unless File.file?(".yardopts") 10 | rm_rf(".yardoc") 11 | rm_rf("doc") 12 | exec(["bundle", "update"]) 13 | exec_tool(["yardoc", "_build"]) 14 | end 15 | 16 | expand :yardoc, name: "_build", bundler: true 17 | -------------------------------------------------------------------------------- /exporter/otlp/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | end 11 | 12 | require 'opentelemetry-test-helpers' 13 | require 'opentelemetry/exporter/otlp' 14 | require 'minitest/autorun' 15 | require 'webmock/minitest' 16 | 17 | OpenTelemetry.logger = Logger.new(File::NULL) 18 | -------------------------------------------------------------------------------- /exporter/otlp-logs/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../../contrib/rubocop.yml 3 | 4 | AllCops: 5 | Exclude: 6 | - "lib/opentelemetry/proto/**/*" 7 | - "vendor/**/*" 8 | 9 | Naming/FileName: 10 | Exclude: 11 | - lib/opentelemetry-exporter-otlp-logs.rb 12 | Style/StringLiterals: 13 | Exclude: 14 | - gemfiles/**/* 15 | Style/FrozenStringLiteralComment: 16 | Exclude: 17 | - gemfiles/**/* 18 | Metrics/BlockLength: 19 | Enabled: false 20 | -------------------------------------------------------------------------------- /logs_api/test/opentelemetry/logs/logger_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Logs::Logger do 10 | let(:logger) { OpenTelemetry::Logs::Logger.new } 11 | 12 | describe '#on_emit' do 13 | it 'returns nil, as it is a no-op method' do 14 | assert_nil(logger.on_emit) 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | # The Metrics API ... TBD. 9 | module Metrics 10 | end 11 | end 12 | 13 | require 'opentelemetry/metrics/instrument' 14 | require 'opentelemetry/metrics/measurement' 15 | require 'opentelemetry/metrics/meter' 16 | require 'opentelemetry/metrics/meter_provider' 17 | -------------------------------------------------------------------------------- /exporter/otlp-http/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | end 11 | 12 | require 'opentelemetry-test-helpers' 13 | require 'opentelemetry-exporter-otlp-http' 14 | require 'minitest/autorun' 15 | require 'webmock/minitest' 16 | 17 | OpenTelemetry.logger = Logger.new(File::NULL) 18 | -------------------------------------------------------------------------------- /semantic_conventions/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | SimpleCov.minimum_coverage 85 11 | end 12 | 13 | require 'minitest/autorun' 14 | require 'pry' 15 | 16 | Dir[File.join(File.dirname(__FILE__), '..', 'lib', 'opentelemetry', '**', '*.rb')].each { |file| require file } 17 | -------------------------------------------------------------------------------- /exporter/otlp-logs/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-exporter-otlp-logs 2 | 3 | ### v0.2.2 / 2025-10-17 4 | 5 | * FIXED: Increase OTLP Proto version to 1.8.0 to match version in opentelemetry-exporter-otlp 6 | 7 | ### v0.2.1 / 2025-08-14 8 | 9 | - FIXED: Support hash bodies and attribute values in OTLP logs exporter 10 | 11 | ### v0.2.0 / 2025-02-25 12 | 13 | - ADDED: Support 3.1 Min Version 14 | 15 | ### v0.1.0 / 2024-12-04 16 | 17 | Initial release. 18 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/trace/propagation.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/trace/propagation/trace_context' 8 | 9 | module OpenTelemetry 10 | module Trace 11 | # The Trace::Propagation module contains injectors and extractors for 12 | # sending and receiving span context over the wire 13 | module Propagation 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/internal.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/internal/proxy_tracer' 8 | require 'opentelemetry/internal/proxy_tracer_provider' 9 | 10 | module OpenTelemetry 11 | # @api private 12 | # 13 | # The Internal module provides API internal functionality that is not a part of the 14 | # public API. 15 | module Internal 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | end 11 | 12 | require 'pry' 13 | 14 | require 'opentelemetry-test-helpers' 15 | require 'opentelemetry/exporter/otlp/grpc' 16 | require 'minitest/autorun' 17 | require 'webmock/minitest' 18 | 19 | OpenTelemetry.logger = Logger.new(File::NULL) 20 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/view.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | # A View provides SDK users with the flexibility to customize the metrics that are output by the SDK. 11 | module View 12 | end 13 | end 14 | end 15 | end 16 | 17 | require 'opentelemetry/sdk/metrics/view/registered_view' 18 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/instrumentation_library.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # InstrumentationLibrary is a struct containing library information for export. 10 | # @deprecated Use InstrumentationScope instead. 11 | InstrumentationLibrary = Struct.new(:name, 12 | :version) 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /test_helpers/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'opentelemetry-common', path: '../common' 16 | gem 'opentelemetry-registry', path: '../registry' 17 | gem 'opentelemetry-sdk', path: '../sdk' 18 | end 19 | -------------------------------------------------------------------------------- /propagator/jaeger/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | end 19 | -------------------------------------------------------------------------------- /sdk/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | SimpleCov.minimum_coverage 85 11 | end 12 | 13 | require 'opentelemetry-test-helpers' 14 | require 'opentelemetry-sdk' 15 | require 'opentelemetry-instrumentation-base' 16 | require 'minitest/autorun' 17 | require 'pry' 18 | 19 | OpenTelemetry.logger = Logger.new(File::NULL) 20 | -------------------------------------------------------------------------------- /sdk_experimental/README.md: -------------------------------------------------------------------------------- 1 | # Experimental SDK 2 | 3 | The experimental SDK houses bleeding-edge(-ish) functionality that may have unstable APIs. Some examples of what's in 4 | here: 5 | 6 | * `traceresponse` propagator (in [w3c `trace-context` editor's draft](https://w3c.github.io/trace-context/)) 7 | * Consistent Probability Sampler (marked as `experimental` in [opentelemetry-specification)](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/tracestate-probability-sampling.md)) 8 | -------------------------------------------------------------------------------- /exporter/otlp-logs/Appraisals: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | appraise 'google-protobuf-3.18.0' do 8 | gem 'google-protobuf', '~> 3.18.0' 9 | end 10 | 11 | appraise 'google-protobuf-3.25.0' do 12 | gem 'google-protobuf', '~> 3.25.0' 13 | end 14 | 15 | appraise 'google-protobuf-4.29.0' do 16 | gem 'google-protobuf', '~> 4.29.0' 17 | end 18 | 19 | appraise 'google-protobuf-latest' do 20 | gem 'google-protobuf' 21 | end 22 | -------------------------------------------------------------------------------- /exporter/zipkin/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../../contrib/rubocop.yml 3 | - .rubocop_todo.yml 4 | 5 | AllCops: 6 | Exclude: 7 | - "thrift/**/*" 8 | - "vendor/**/*" 9 | 10 | Metrics/ModuleLength: 11 | Max: 130 12 | Metrics/MethodLength: 13 | Max: 25 14 | Metrics/PerceivedComplexity: 15 | Enabled: false 16 | Metrics/CyclomaticComplexity: 17 | Enabled: false 18 | Naming/FileName: 19 | Exclude: 20 | - "lib/opentelemetry-exporter-zipkin.rb" 21 | Style/ExplicitBlockArgument: 22 | Enabled: false 23 | -------------------------------------------------------------------------------- /logs_sdk/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'simplecov' 8 | 9 | SimpleCov.start do 10 | enable_coverage :branch 11 | add_filter '/test/' 12 | end 13 | 14 | SimpleCov.minimum_coverage 85 15 | 16 | require 'opentelemetry-logs-api' 17 | require 'opentelemetry-logs-sdk' 18 | require 'opentelemetry-test-helpers' 19 | require 'minitest/autorun' 20 | 21 | OpenTelemetry.logger = Logger.new(File::NULL) 22 | -------------------------------------------------------------------------------- /exporter/otlp-common/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start 10 | end 11 | 12 | require 'opentelemetry/sdk' 13 | require 'opentelemetry-test-helpers' 14 | require 'opentelemetry-exporter-otlp-common' 15 | 16 | require 'minitest/autorun' 17 | require 'webmock/minitest' 18 | 19 | require 'pry' 20 | 21 | OpenTelemetry.logger = Logger.new(File::NULL) 22 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/baggage/entry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | # OpenTelemetry Baggage Implementation 9 | module Baggage 10 | # Read-only representation of a baggage entry 11 | class Entry 12 | attr_reader :value, :metadata 13 | 14 | def initialize(value, metadata = nil) 15 | @value = value 16 | @metadata = metadata 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /exporter/jaeger/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | AllCops: 4 | Exclude: 5 | - "thrift/**/*" 6 | - "vendor/**/*" 7 | 8 | Bundler/OrderedGems: 9 | Exclude: 10 | - gemfiles/**/* 11 | Style/FrozenStringLiteralComment: 12 | Exclude: 13 | - gemfiles/**/* 14 | Style/StringLiterals: 15 | Exclude: 16 | - gemfiles/**/* 17 | Metrics/BlockLength: 18 | Enabled: false 19 | Naming/FileName: 20 | Exclude: 21 | - "lib/opentelemetry-exporter-jaeger.rb" 22 | Gemspec/RequiredRubyVersion: 23 | Severity: info 24 | -------------------------------------------------------------------------------- /exporter/otlp/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | AllCops: 4 | Exclude: 5 | - "lib/opentelemetry/proto/**/*" 6 | - "vendor/**/*" 7 | 8 | Bundler/OrderedGems: 9 | Exclude: 10 | - gemfiles/**/* 11 | Style/FrozenStringLiteralComment: 12 | Exclude: 13 | - gemfiles/**/* 14 | Style/ModuleFunction: 15 | Enabled: false 16 | Style/StringLiterals: 17 | Exclude: 18 | - gemfiles/**/* 19 | Metrics/BlockLength: 20 | Enabled: false 21 | Naming/FileName: 22 | Exclude: 23 | - "lib/opentelemetry-exporter-otlp.rb" 24 | -------------------------------------------------------------------------------- /sdk_experimental/lib/opentelemetry/sdk/experimental.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # The Experimental module contains experimental extensions to the OpenTelemetry reference 10 | # implementation. 11 | module Experimental 12 | end 13 | end 14 | end 15 | 16 | require 'opentelemetry/sdk/experimental/samplers_patch' 17 | require 'opentelemetry/sdk/trace/propagation/trace_context/response_text_map_propagator' 18 | -------------------------------------------------------------------------------- /.github/renovate.json5: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:best-practices", 5 | "helpers:pinGitHubActionDigestsToSemver" 6 | ], 7 | "packageRules": [ 8 | { 9 | "groupName": "all patch versions", 10 | "matchUpdateTypes": ["patch"], 11 | "schedule": ["before 8am every weekday"] 12 | }, 13 | { 14 | "matchUpdateTypes": ["minor", "major"], 15 | "schedule": ["before 8am on Monday"] 16 | } 17 | ], 18 | "labels": [ 19 | "dependencies" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | ##################################################### 2 | # 3 | # List of approvers for this repository 4 | # 5 | ##################################################### 6 | # 7 | # Learn about membership in OpenTelemetry community: 8 | # https://github.com/open-telemetry/community/blob/master/community-membership.md 9 | # 10 | # 11 | # Learn about CODEOWNERS file format: 12 | # https://help.github.com/en/articles/about-code-owners 13 | # 14 | 15 | * @fbogsany @mwear @robertlaurin @dazuma @ericmustin @arielvalentin @ahayworth @plantfansam @robbkidd @kaylareopelle 16 | -------------------------------------------------------------------------------- /propagator/jaeger/test/jaeger_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Propagator::Jaeger do 10 | describe '#text_map_propagator' do 11 | it 'returns an instance of TextMapPropagator' do 12 | propagator = OpenTelemetry::Propagator::Jaeger.text_map_propagator 13 | _(propagator).must_be_instance_of( 14 | OpenTelemetry::Propagator::Jaeger::TextMapPropagator 15 | ) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /propagator/b3/test/multi_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Propagator::B3::Multi do 10 | describe '#text_map_propagator' do 11 | it 'returns an instance of TextMapPropagator' do 12 | propagator = OpenTelemetry::Propagator::B3::Multi.text_map_propagator 13 | _(propagator).must_be_instance_of( 14 | OpenTelemetry::Propagator::B3::Multi::TextMapPropagator 15 | ) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /logs_sdk/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'opentelemetry-exporter-otlp-logs', path: '../exporter/otlp-logs' 16 | gem 'opentelemetry-logs-api', path: '../logs_api' 17 | gem 'opentelemetry-sdk', path: '../sdk' 18 | gem 'opentelemetry-test-helpers', path: '../test_helpers' 19 | end 20 | -------------------------------------------------------------------------------- /propagator/b3/test/single_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Propagator::B3::Single do 10 | describe '#text_map_propagator' do 11 | it 'returns an instance of TextMapPropagator' do 12 | propagator = OpenTelemetry::Propagator::B3::Single.text_map_propagator 13 | _(propagator).must_be_instance_of( 14 | OpenTelemetry::Propagator::B3::Single::TextMapPropagator 15 | ) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /exporter/otlp-common/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 19 | end 20 | -------------------------------------------------------------------------------- /api/test/opentelemetry/baggage/propagation_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Baggage::Propagation do 10 | describe '#text_map_propagator' do 11 | it 'returns an instance of TextMapPropagator' do 12 | propagator = OpenTelemetry::Baggage::Propagation.text_map_propagator 13 | _(propagator).must_be_instance_of( 14 | OpenTelemetry::Baggage::Propagation::TextMapPropagator 15 | ) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /logs_sdk/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-logs-sdk 2 | 3 | ### v0.4.0 / 2025-09-16 4 | 5 | * BREAKING CHANGE: Add OTEL_LOGRECORD_ATTRIBUTE_* env vars. Remove OTEL_LOG_RECORD_ATTRIBUTE_* env vars. 6 | 7 | * ADDED: Add OTEL_LOGRECORD_ATTRIBUTE_* env vars. Remove OTEL_LOG_RECORD_ATTRIBUTE_* env vars. 8 | 9 | ### v0.3.0 / 2025-08-14 10 | 11 | - ADDED: Update error message for invalid log record attribute 12 | - ADDED: Set logs exporter default to OTLP 13 | 14 | ### v0.2.0 / 2025-02-25 15 | 16 | - ADDED: Support 3.1 Min Version 17 | 18 | ### v0.1.0 / 2024-12-04 19 | 20 | Initial release. 21 | -------------------------------------------------------------------------------- /registry/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-instrumentation-registry 2 | 3 | ### v0.4.0 / 2025-02-25 4 | 5 | - ADDED: Support 3.1 Min Version 6 | 7 | ### v0.3.1 / 2024-03-19 8 | 9 | - fix: Make use_all config friendlier [#1406](https://github.com/open-telemetry/opentelemetry-ruby/pull/1406) 10 | 11 | ### v0.3.0 / 2023-06-08 12 | 13 | - BREAKING CHANGE: Remove support for EoL Ruby 2.7 14 | 15 | - ADDED: Remove support for EoL Ruby 2.7 16 | 17 | ### v0.2.0 / 2022-09-14 18 | 19 | - Bump minimum API version dependency to 1.1 20 | 21 | ### v0.1.0 / 2022-04-11 22 | 23 | - Initial release. 24 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.5" 2 | 3 | x-shared-config: 4 | base: &base 5 | command: /bin/bash 6 | image: opentelemetry/opentelemetry-ruby 7 | stdin_open: true 8 | tmpfs: 9 | - /tmp 10 | tty: true 11 | user: "1000:1000" 12 | volumes: 13 | - .:/app:cached 14 | - bundle:/bundle 15 | 16 | services: 17 | api: 18 | <<: *base 19 | working_dir: /app/api 20 | 21 | app: 22 | <<: *base 23 | build: 24 | context: . 25 | working_dir: /app 26 | 27 | sdk: 28 | <<: *base 29 | working_dir: /app/sdk 30 | 31 | volumes: 32 | bundle: 33 | -------------------------------------------------------------------------------- /exporter/otlp/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | group :test, :development do 12 | gem 'opentelemetry-api', path: '../../api' 13 | gem 'opentelemetry-common', path: '../../common' 14 | gem 'opentelemetry-registry', path: '../../registry' 15 | gem 'opentelemetry-sdk', path: '../../sdk' 16 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 17 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 18 | end 19 | -------------------------------------------------------------------------------- /exporter/otlp-logs/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | if RUBY_ENGINE == 'ruby' 8 | require 'simplecov' 9 | SimpleCov.start do 10 | enable_coverage :branch 11 | add_filter '/test/' 12 | end 13 | 14 | SimpleCov.minimum_coverage 85 15 | end 16 | 17 | require 'opentelemetry-test-helpers' 18 | require 'opentelemetry/exporter/otlp_logs' 19 | require 'minitest/autorun' 20 | require 'webmock/minitest' 21 | require 'minitest/stub_const' 22 | 23 | OpenTelemetry.logger = Logger.new(File::NULL) 24 | -------------------------------------------------------------------------------- /api/test/opentelemetry/trace/tracer_provider_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Trace::TracerProvider do 10 | let(:tracer_provider) { OpenTelemetry::Trace::TracerProvider.new } 11 | 12 | describe '.tracer' do 13 | it 'returns the same tracer for the same arguments' do 14 | tracer1 = tracer_provider.tracer('component', '1.0') 15 | tracer2 = tracer_provider.tracer('component', '1.0') 16 | _(tracer1).must_equal(tracer2) 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /sdk_experimental/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'opentelemetry-common', path: '../common' 16 | gem 'opentelemetry-registry', path: '../registry' 17 | gem 'opentelemetry-sdk', path: '../sdk' 18 | gem 'opentelemetry-test-helpers', path: '../test_helpers' 19 | gem 'pry' 20 | gem 'pry-byebug' unless RUBY_ENGINE == 'jruby' 21 | end 22 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/trace/event.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Trace 10 | # A text annotation with a set of attributes and a timestamp for export. 11 | # 12 | # Field types are as follows: 13 | # name: String 14 | # attributes: frozen Hash{String => String, Numeric, Boolean, Array} 15 | # timestamp: Integer nanoseconds since Epoch 16 | Event = Struct.new(:name, :attributes, :timestamp) 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /api/test/opentelemetry/trace/propagation/trace_context/trace_context_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Trace::Propagation::TraceContext do 10 | describe '#text_map_propagator' do 11 | it 'returns an instance of TextMapPropagator' do 12 | propagator = OpenTelemetry::Trace::Propagation::TraceContext.text_map_propagator 13 | _(propagator).must_be_instance_of( 14 | OpenTelemetry::Trace::Propagation::TraceContext::TextMapPropagator 15 | ) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /sdk/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'opentelemetry-common', path: '../common' 16 | gem 'opentelemetry-exporter-zipkin', path: '../exporter/zipkin' 17 | gem 'opentelemetry-registry', path: '../registry' 18 | gem 'opentelemetry-semantic_conventions', path: '../semantic_conventions' 19 | gem 'opentelemetry-test-helpers', path: '../test_helpers' 20 | end 21 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics/meter_provider.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Metrics 9 | # No-op implementation of a meter provider. 10 | class MeterProvider 11 | # Returns a {Meter} instance. 12 | # 13 | # @param [String] name Instrumentation package name 14 | # @param [optional String] version Instrumentation package version 15 | # 16 | # @return [Meter] 17 | def meter(name, version: nil) 18 | @meter ||= Meter.new 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/context/propagation/text_map_setter.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | class Context 9 | module Propagation 10 | # The default setter module provides a common method for writing 11 | # a key into a carrier that implements +[]=+ 12 | class TextMapSetter 13 | # Writes key into a carrier that implements +[]=+. Useful for inject 14 | # operations. 15 | def set(carrier, key, value) 16 | carrier[key] = value 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /exporter/jaeger/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 19 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 20 | end 21 | -------------------------------------------------------------------------------- /exporter/zipkin/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 19 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 20 | end 21 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/trace/tracer_provider.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Trace 9 | # No-op implementation of a tracer provider. 10 | class TracerProvider 11 | # Returns a {Tracer} instance. 12 | # 13 | # @param [optional String] name Instrumentation package name 14 | # @param [optional String] version Instrumentation package version 15 | # 16 | # @return [Tracer] 17 | def tracer(name = nil, version = nil) 18 | @tracer ||= Tracer.new 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /metrics_api/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-metrics-api 2 | 3 | ### v0.4.0 / 2025-08-14 4 | 5 | - ADDED: Support asynchronous instruments: ObservableGauge, ObservableCounter and ObservableUpDownCounter 6 | - FIXED: Update max instrument name length from 63 to 255 characters and allow `/` in instrument names 7 | 8 | ### v0.3.0 / 2025-02-25 9 | 10 | - ADDED: Support 3.1 Min Version 11 | 12 | ### v0.2.0 / 2025-01-08 13 | 14 | - ADDED: Add synchronous gauge 15 | - DOCS: Add documentation for Metrics API instruments 16 | 17 | ### v0.1.1 / 2024-10-22 18 | 19 | - FIXED: Refactor instrument validation 20 | 21 | ### v0.1.0 / 2024-07-31 22 | 23 | Initial release. 24 | -------------------------------------------------------------------------------- /.github/workflows/ci-markdownlint.yml: -------------------------------------------------------------------------------- 1 | name: Markdown Lint Check 2 | 3 | on: 4 | pull_request: 5 | 6 | permissions: 7 | contents: read 8 | 9 | jobs: 10 | markdownlint-check: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v6 14 | 15 | # equivalent cli: markdownlint-cli2 "**/*.md" "#**/CHANGELOG.md" "#.github/**" --config .markdownlint.json 16 | - name: "Markdown Lint Check" 17 | uses: DavidAnson/markdownlint-cli2-action@v22 18 | with: 19 | config: .markdownlint.json 20 | fix: false 21 | globs: | 22 | **/*.md 23 | !**/CHANGELOG.md 24 | !.github/** 25 | -------------------------------------------------------------------------------- /.github/workflows/ci-markdown-link.yml: -------------------------------------------------------------------------------- 1 | name: Markdown Link Check 2 | 3 | on: 4 | pull_request: 5 | paths: 6 | - '**/*.md' 7 | 8 | permissions: 9 | contents: read 10 | 11 | jobs: 12 | markdown-link-check: 13 | permissions: 14 | pull-requests: write # required for posting review comments 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v6 18 | 19 | # equivalent cli: linkspector check 20 | - name: Run linkspector 21 | uses: umbrelladocs/action-linkspector@v1 22 | with: 23 | github_token: ${{ secrets.GITHUB_TOKEN }} 24 | reporter: github-pr-review 25 | fail_on_error: true 26 | -------------------------------------------------------------------------------- /examples/otel-collector/otel-collector-config.yaml: -------------------------------------------------------------------------------- 1 | # Inspired by https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/examples/demo 2 | receivers: 3 | otlp: 4 | protocols: 5 | http: 6 | endpoint: 0.0.0.0:4318 7 | 8 | exporters: 9 | debug: 10 | 11 | zipkin: 12 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" 13 | format: proto 14 | 15 | otlp: 16 | endpoint: jaeger-all-in-one:4317 17 | tls: 18 | insecure: true 19 | 20 | service: 21 | pipelines: 22 | traces: 23 | receivers: [otlp] 24 | exporters: [debug, zipkin, otlp] 25 | metrics: 26 | receivers: [otlp] 27 | exporters: [debug] 28 | -------------------------------------------------------------------------------- /exporter/otlp/lib/opentelemetry/exporter/otlp.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/version' 8 | require 'opentelemetry/exporter/otlp/exporter' 9 | 10 | # OpenTelemetry is an open source observability framework, providing a 11 | # general-purpose API, SDK, and related tools required for the instrumentation 12 | # of cloud-native software, frameworks, and libraries. 13 | # 14 | # The OpenTelemetry module provides global accessors for telemetry objects. 15 | # See the documentation for the `opentelemetry-api` gem for details. 16 | module OpenTelemetry 17 | end 18 | -------------------------------------------------------------------------------- /logs_api/test/opentelemetry/logs/logger_provider_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Logs::LoggerProvider do 10 | let(:logger_provider) { OpenTelemetry::Logs::LoggerProvider.new } 11 | let(:args) { { name: 'component', version: '1.0' } } 12 | let(:args2) { { name: 'component2', version: '1.0' } } 13 | 14 | describe '#logger' do 15 | it 'returns the same no-op logger' do 16 | assert_same( 17 | logger_provider.logger(**args), 18 | logger_provider.logger(**args2) 19 | ) 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /api/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /examples/http/README.md: -------------------------------------------------------------------------------- 1 | # OpenTelemetry Ruby Example 2 | 3 | ## HTTP 4 | 5 | This is a simple example that demonstrates tracing an HTTP request from client to server. The example shows several aspects of tracing, such as: 6 | 7 | * Using the `TracerProvider` 8 | * Span Attributes 9 | * Using the console exporter 10 | 11 | ### Running the example 12 | 13 | Install gems 14 | 15 | ```sh 16 | bundle install 17 | ``` 18 | 19 | Start the server 20 | 21 | ```sh 22 | ruby server.rb 23 | ``` 24 | 25 | In a separate terminal window, run the client to make a single request: 26 | 27 | ```sh 28 | ruby client.rb 29 | ``` 30 | 31 | You should see console exporter output for both the client and server sessions. 32 | -------------------------------------------------------------------------------- /logs_api/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /logs_sdk/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /metrics_api/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /metrics_sdk/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /registry/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | require 'rubocop/rake_task' 11 | 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /propagator/b3/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | require 'rubocop/rake_task' 11 | 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /sdk_experimental/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /exporter/otlp-logs/lib/opentelemetry/exporter/otlp_logs.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/logs/version' 8 | require 'opentelemetry/exporter/otlp/logs/logs_exporter' 9 | 10 | # OpenTelemetry is an open source observability framework, providing a 11 | # general-purpose API, SDK, and related tools required for the instrumentation 12 | # of cloud-native software, frameworks, and libraries. 13 | # 14 | # The OpenTelemetry module provides global accessors for telemetry objects. 15 | # See the documentation for the `opentelemetry-api` gem for details. 16 | module OpenTelemetry 17 | end 18 | -------------------------------------------------------------------------------- /propagator/jaeger/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | require 'rubocop/rake_task' 11 | 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.test_files = FileList['test/**/*_test.rb'] 18 | end 19 | 20 | YARD::Rake::YardocTask.new do |t| 21 | t.stats_options = ['--list-undoc'] 22 | end 23 | 24 | default_tasks = 25 | if RUBY_ENGINE == 'truffleruby' 26 | %i[test] 27 | else 28 | %i[test rubocop yard] 29 | end 30 | 31 | task default: default_tasks 32 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/state.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | # @api private 11 | # 12 | # The State module provides SDK internal functionality that is not a part of the 13 | # public API. 14 | module State 15 | end 16 | end 17 | end 18 | end 19 | 20 | require 'opentelemetry/sdk/metrics/state/metric_data' 21 | require 'opentelemetry/sdk/metrics/state/metric_store' 22 | require 'opentelemetry/sdk/metrics/state/metric_stream' 23 | require 'opentelemetry/sdk/metrics/state/asynchronous_metric_stream' 24 | -------------------------------------------------------------------------------- /test_helpers/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-test-helpers 2 | 3 | ### v0.7.0 / 2025-10-14 4 | 5 | * ADDED: Use common method for returning timestamp in nanoseconds 6 | 7 | ### v0.6.0 / 2025-02-25 8 | 9 | - ADDED: Support 3.1 Min Version 10 | 11 | ### v0.5.0 / 2024-12-04 12 | 13 | - ADDED: Add OTLP Log Record Exporter 14 | 15 | ### v0.4.0 / 2023-06-08 16 | 17 | - BREAKING CHANGE: Remove support for EoL Ruby 2.7 18 | 19 | - ADDED: Remove support for EoL Ruby 2.7 20 | 21 | ### v0.3.0 / 2022-09-14 22 | 23 | - ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0 24 | 25 | ### v0.2.0 / 2022-06-09 26 | 27 | - ADDED: Otlp grpc 28 | 29 | ### v0.1.0 / 2022-04-22 30 | 31 | - Initial release. 32 | -------------------------------------------------------------------------------- /common/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | require 'rubocop/rake_task' 11 | 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << '../api/lib' 16 | t.libs << 'test' 17 | t.libs << 'lib' 18 | t.test_files = FileList['test/**/*_test.rb'] 19 | end 20 | 21 | YARD::Rake::YardocTask.new do |t| 22 | t.stats_options = ['--list-undoc'] 23 | end 24 | 25 | default_tasks = 26 | if RUBY_ENGINE == 'truffleruby' 27 | %i[test] 28 | else 29 | %i[test rubocop yard] 30 | end 31 | 32 | task default: default_tasks 33 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/lib/opentelemetry/exporter/otlp_metrics.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/exporter/otlp/metrics/version' 8 | require 'opentelemetry/exporter/otlp/metrics/metrics_exporter' 9 | 10 | # OpenTelemetry is an open source observability framework, providing a 11 | # general-purpose API, SDK, and related tools required for the instrumentation 12 | # of cloud-native software, frameworks, and libraries. 13 | # 14 | # The OpenTelemetry module provides global accessors for telemetry objects. 15 | # See the documentation for the `opentelemetry-api` gem for details. 16 | module OpenTelemetry 17 | end 18 | -------------------------------------------------------------------------------- /sdk/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../api/lib' 18 | t.test_files = FileList['test/**/*_test.rb'] 19 | end 20 | 21 | YARD::Rake::YardocTask.new do |t| 22 | t.stats_options = ['--list-undoc'] 23 | end 24 | 25 | default_tasks = 26 | if RUBY_ENGINE == 'truffleruby' 27 | %i[test] 28 | else 29 | %i[test rubocop yard] 30 | end 31 | 32 | task default: default_tasks 33 | -------------------------------------------------------------------------------- /logs_sdk/lib/opentelemetry/sdk/logs.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require_relative 'logs/version' 8 | require_relative 'logs/configurator_patch' 9 | require_relative 'logs/logger' 10 | require_relative 'logs/logger_provider' 11 | require_relative 'logs/log_record' 12 | require_relative 'logs/log_record_data' 13 | require_relative 'logs/log_record_processor' 14 | require_relative 'logs/export' 15 | require_relative 'logs/log_record_limits' 16 | 17 | module OpenTelemetry 18 | module SDK 19 | # The Logs module contains the OpenTelemetry logs reference 20 | # implementation. 21 | module Logs 22 | end 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-exporter-otlp-common', path: '../otlp-common' 17 | gem 'opentelemetry-registry', path: '../../registry' 18 | gem 'opentelemetry-sdk', path: '../../sdk' 19 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 20 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 21 | end 22 | -------------------------------------------------------------------------------- /exporter/otlp-http/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../../api' 15 | gem 'opentelemetry-common', path: '../../common' 16 | gem 'opentelemetry-exporter-otlp-common', path: '../otlp-common' 17 | gem 'opentelemetry-registry', path: '../../registry' 18 | gem 'opentelemetry-sdk', path: '../../sdk' 19 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 20 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 21 | end 22 | -------------------------------------------------------------------------------- /test_helpers/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../api/lib' 18 | t.test_files = FileList['test/**/*_test.rb'] 19 | end 20 | 21 | YARD::Rake::YardocTask.new do |t| 22 | t.stats_options = ['--list-undoc'] 23 | end 24 | 25 | default_tasks = 26 | if RUBY_ENGINE == 'truffleruby' 27 | %i[test] 28 | else 29 | %i[test rubocop yard] 30 | end 31 | 32 | task default: default_tasks 33 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | group :test, :development do 12 | gem 'opentelemetry-api', path: '../../api' 13 | gem 'opentelemetry-common', path: '../../common' 14 | gem 'opentelemetry-metrics-api', path: '../../metrics_api' 15 | gem 'opentelemetry-metrics-sdk', path: '../../metrics_sdk' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 19 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 20 | end 21 | -------------------------------------------------------------------------------- /common/test/opentelemetry/common/propagation/symbol_key_getter_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Common::Propagation::SymbolKeyGetter do 10 | let(:symbol_key_getter) { OpenTelemetry::Common::Propagation::SymbolKeyGetter.new } 11 | let(:carrier) { { foo: 'bar' } } 12 | 13 | describe '#get' do 14 | it 'retrieves the value' do 15 | _(symbol_key_getter.get(carrier, 'foo')).must_equal('bar') 16 | end 17 | end 18 | 19 | describe '#keys' do 20 | it 'returns all the keys as strings' do 21 | _(symbol_key_getter.keys(carrier)).must_equal(['foo']) 22 | end 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/baggage/propagation/context_keys.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Baggage 9 | module Propagation 10 | # The ContextKeys module contains the keys used to index baggage 11 | # in a {Context} instance 12 | module ContextKeys 13 | extend self 14 | 15 | BAGGAGE_KEY = Context.create_key('baggage') 16 | private_constant :BAGGAGE_KEY 17 | 18 | # Returns the context key that baggage are indexed by 19 | # 20 | # @return [Context::Key] 21 | def baggage_key 22 | BAGGAGE_KEY 23 | end 24 | end 25 | end 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /exporter/jaeger/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../../api/lib' 18 | t.libs << '../../sdk/lib' 19 | t.test_files = FileList['test/**/*_test.rb'] 20 | end 21 | 22 | YARD::Rake::YardocTask.new do |t| 23 | t.stats_options = ['--list-undoc'] 24 | end 25 | 26 | default_tasks = 27 | if RUBY_ENGINE == 'truffleruby' 28 | %i[test] 29 | else 30 | %i[test rubocop yard] 31 | end 32 | 33 | task default: default_tasks 34 | -------------------------------------------------------------------------------- /exporter/zipkin/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../../api/lib' 18 | t.libs << '../../sdk/lib' 19 | t.test_files = FileList['test/**/*_test.rb'] 20 | end 21 | 22 | YARD::Rake::YardocTask.new do |t| 23 | t.stats_options = ['--list-undoc'] 24 | end 25 | 26 | default_tasks = 27 | if RUBY_ENGINE == 'truffleruby' 28 | %i[test] 29 | else 30 | %i[test rubocop yard] 31 | end 32 | 33 | task default: default_tasks 34 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics/instrument.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/metrics/instrument/counter' 8 | require 'opentelemetry/metrics/instrument/histogram' 9 | require 'opentelemetry/metrics/instrument/gauge' 10 | require 'opentelemetry/metrics/instrument/observable_counter' 11 | require 'opentelemetry/metrics/instrument/observable_gauge' 12 | require 'opentelemetry/metrics/instrument/observable_up_down_counter' 13 | require 'opentelemetry/metrics/instrument/up_down_counter' 14 | 15 | module OpenTelemetry 16 | module Metrics 17 | # Instruments are used to report Measurements. 18 | module Instrument 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../../api/lib' 18 | t.libs << '../../sdk/lib' 19 | t.test_files = FileList['test/**/*_test.rb'] 20 | end 21 | 22 | YARD::Rake::YardocTask.new do |t| 23 | t.stats_options = ['--list-undoc'] 24 | end 25 | 26 | default_tasks = 27 | if RUBY_ENGINE == 'truffleruby' 28 | %i[test] 29 | else 30 | %i[test rubocop yard] 31 | end 32 | 33 | task default: default_tasks 34 | -------------------------------------------------------------------------------- /exporter/otlp-http/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'bundler/gem_tasks' 8 | require 'rake/testtask' 9 | require 'yard' 10 | 11 | require 'rubocop/rake_task' 12 | RuboCop::RakeTask.new 13 | 14 | Rake::TestTask.new :test do |t| 15 | t.libs << 'test' 16 | t.libs << 'lib' 17 | t.libs << '../../api/lib' 18 | t.libs << '../../sdk/lib' 19 | t.test_files = FileList['test/**/*_test.rb'] 20 | end 21 | 22 | YARD::Rake::YardocTask.new do |t| 23 | t.stats_options = ['--list-undoc'] 24 | end 25 | 26 | default_tasks = 27 | if RUBY_ENGINE == 'truffleruby' 28 | %i[test] 29 | else 30 | %i[test rubocop yard] 31 | end 32 | 33 | task default: default_tasks 34 | -------------------------------------------------------------------------------- /exporter/otlp-metrics/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: ../../contrib/rubocop.yml 2 | 3 | AllCops: 4 | Exclude: 5 | - "lib/opentelemetry/proto/**/*" 6 | - "vendor/**/*" 7 | 8 | Metrics/CyclomaticComplexity: 9 | Enabled: false 10 | Metrics/PerceivedComplexity: 11 | Enabled: false 12 | Metrics/MethodLength: 13 | Enabled: false 14 | Metrics/ClassLength: 15 | Enabled: false 16 | Bundler/OrderedGems: 17 | Exclude: 18 | - gemfiles/**/* 19 | Style/FrozenStringLiteralComment: 20 | Exclude: 21 | - gemfiles/**/* 22 | Style/ModuleFunction: 23 | Enabled: false 24 | Style/StringLiterals: 25 | Exclude: 26 | - gemfiles/**/* 27 | Metrics/BlockLength: 28 | Enabled: false 29 | Naming/FileName: 30 | Exclude: 31 | - "lib/opentelemetry-exporter-otlp-metrics.rb" 32 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/context/propagation/noop_text_map_propagator.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | class Context 9 | module Propagation 10 | # @api private 11 | class NoopTextMapPropagator 12 | EMPTY_LIST = [].freeze 13 | private_constant(:EMPTY_LIST) 14 | 15 | def inject(carrier, context: Context.current, setter: Context::Propagation.text_map_setter); end 16 | 17 | def extract(carrier, context: Context.current, getter: Context::Propagation.text_map_getter) 18 | context 19 | end 20 | 21 | def fields 22 | EMPTY_LIST 23 | end 24 | end 25 | end 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /metrics_sdk/test/opentelemetry/sdk/metrics/aggregation/exponential_histogram/ieee_754_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::SDK::Metrics::Aggregation::ExponentialHistogram::IEEE754 do 10 | it 'simple test min and max' do 11 | IEEE754 = OpenTelemetry::SDK::Metrics::Aggregation::ExponentialHistogram::IEEE754 12 | 13 | _(IEEE754.get_ieee_754_exponent(Float::MAX)).must_equal(1023) 14 | _(IEEE754.get_ieee_754_exponent(Float::MIN)).must_equal(-1022) 15 | 16 | _(IEEE754.get_ieee_754_mantissa(Float::MAX)).must_equal(4_503_599_627_370_495) 17 | _(IEEE754.get_ieee_754_mantissa(Float::MIN)).must_equal(0) 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/trace.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # The Trace module contains the OpenTelemetry tracing reference 10 | # implementation. 11 | module Trace 12 | end 13 | end 14 | end 15 | 16 | require 'opentelemetry/sdk/trace/samplers' 17 | require 'opentelemetry/sdk/trace/span_limits' 18 | require 'opentelemetry/sdk/trace/event' 19 | require 'opentelemetry/sdk/trace/export' 20 | require 'opentelemetry/sdk/trace/span_data' 21 | require 'opentelemetry/sdk/trace/span_processor' 22 | require 'opentelemetry/sdk/trace/span' 23 | require 'opentelemetry/sdk/trace/tracer' 24 | require 'opentelemetry/sdk/trace/tracer_provider' 25 | -------------------------------------------------------------------------------- /common/lib/opentelemetry/common/propagation/symbol_key_getter.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Common 9 | module Propagation 10 | # The SymbolKeyGetter class provides a common method for reading 11 | # symbol keys from a hash. 12 | class SymbolKeyGetter 13 | # Converts key into a symbol and reads it from the carrier. 14 | # Useful for extract operations. 15 | def get(carrier, key) 16 | carrier[key.to_sym] 17 | end 18 | 19 | # Reads all keys from a carrier 20 | def keys(carrier) 21 | carrier.keys.map(&:to_s) 22 | end 23 | end 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/test/opentelemetry/exporter/otlp/grpc/trace_exporter_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | require 'test_helper' 7 | 8 | describe OpenTelemetry::Exporter::OTLP::GRPC::TraceExporter do 9 | let(:success) { OpenTelemetry::SDK::Trace::Export::SUCCESS } 10 | 11 | describe '#exporter' do 12 | it 'integrates with collector' do 13 | skip unless ENV['TRACING_INTEGRATION_TEST'] 14 | span_data = OpenTelemetry::TestHelpers.create_span_data 15 | exporter = OpenTelemetry::Exporter::OTLP::GRPC::TraceExporter.new(endpoint: 'http://localhost:4317') 16 | result = exporter.export([span_data]) 17 | _(result).must_equal(success) 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /exporter/otlp-logs/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | group :test, :development do 12 | gem 'opentelemetry-api', path: '../../api' 13 | gem 'opentelemetry-common', path: '../../common' 14 | gem 'opentelemetry-logs-api', path: '../../logs_api' 15 | gem 'opentelemetry-logs-sdk', path: '../../logs_sdk' 16 | gem 'opentelemetry-registry', path: '../../registry' 17 | gem 'opentelemetry-sdk', path: '../../sdk' 18 | gem 'opentelemetry-semantic_conventions', path: '../../semantic_conventions' 19 | gem 'opentelemetry-test-helpers', path: '../../test_helpers' 20 | end 21 | 22 | group :test do 23 | gem 'minitest-stub-const' 24 | end 25 | -------------------------------------------------------------------------------- /logs_api/lib/opentelemetry/logs.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | # The Logs API records a timestamped record with metadata. 9 | # In OpenTelemetry, any data that is not part of a distributed trace or a 10 | # metric is a log. For example, events are a specific type of log. 11 | # 12 | # This API is provided for logging library authors to build log 13 | # appenders/bridges. It should NOT be used directly by application 14 | # developers. 15 | module Logs 16 | end 17 | end 18 | 19 | require 'opentelemetry/logs/log_record' 20 | require 'opentelemetry/logs/logger' 21 | require 'opentelemetry/logs/logger_provider' 22 | require 'opentelemetry/logs/severity_number' 23 | -------------------------------------------------------------------------------- /metrics_api/test/opentelemetry/metrics/meter_provider_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::Metrics::MeterProvider do 10 | describe '#meter' do 11 | it 'requires a name' do 12 | meter_provider = build_meter_provider 13 | 14 | _(-> { meter_provider.meter }).must_raise(ArgumentError) 15 | end 16 | 17 | it 'returns an instance of Meter' do 18 | meter_provider = build_meter_provider 19 | 20 | assert(meter_provider.meter('test', version: '1.0.0').is_a?(OpenTelemetry::Metrics::Meter)) 21 | end 22 | end 23 | 24 | def build_meter_provider 25 | OpenTelemetry::Metrics::MeterProvider.new 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /metrics_sdk/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | source 'https://rubygems.org' 8 | 9 | gemspec 10 | 11 | eval_gemfile '../contrib/Gemfile.shared' 12 | 13 | group :test, :development do 14 | gem 'opentelemetry-api', path: '../api' 15 | gem 'opentelemetry-common', path: '../common' 16 | gem 'opentelemetry-exporter-otlp-metrics', path: '../exporter/otlp-metrics' unless RUBY_ENGINE == 'jruby' 17 | gem 'opentelemetry-metrics-api', path: '../metrics_api' 18 | gem 'opentelemetry-registry', path: '../registry' 19 | gem 'opentelemetry-sdk', path: '../sdk' 20 | gem 'opentelemetry-test-helpers', path: '../test_helpers' 21 | gem 'pry' 22 | gem 'pry-byebug' unless RUBY_ENGINE == 'jruby' 23 | end 24 | -------------------------------------------------------------------------------- /contrib/rubocop.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | - rubocop-minitest 3 | - rubocop-rspec 4 | - rubocop-rake 5 | - rubocop-performance 6 | 7 | AllCops: 8 | NewCops: disable 9 | SuggestExtensions: false 10 | TargetRubyVersion: "3.1" 11 | Exclude: 12 | - "vendor/**/*" 13 | 14 | Layout/LineLength: 15 | Enabled: false 16 | 17 | Lint/ConstantDefinitionInBlock: 18 | Exclude: 19 | - "test/**/*" 20 | Lint/MissingSuper: 21 | Enabled: false 22 | Lint/UnusedMethodArgument: 23 | Enabled: false 24 | 25 | Metrics/AbcSize: 26 | Enabled: false 27 | Metrics/MethodLength: 28 | Max: 21 29 | Metrics/ParameterLists: 30 | Enabled: false 31 | 32 | Style/ModuleFunction: 33 | Enabled: false 34 | Style/NumericPredicate: 35 | Enabled: false 36 | Style/StringConcatenation: 37 | Exclude: 38 | - "test/**/*" 39 | -------------------------------------------------------------------------------- /examples/otel-collector/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | 4 | # Jaeger 5 | jaeger-all-in-one: 6 | image: jaegertracing/all-in-one:latest 7 | ports: 8 | - "16686:16686" 9 | - "14268" 10 | - "14250" 11 | 12 | # Zipkin 13 | zipkin-all-in-one: 14 | image: openzipkin/zipkin:latest 15 | ports: 16 | - "9411:9411" 17 | 18 | # Collector 19 | otel-collector: 20 | image: ${OTELCOL_IMG} 21 | command: ["--config=/etc/otel-collector-config.yaml", "${OTELCOL_ARGS}"] 22 | volumes: 23 | - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml 24 | ports: 25 | - "4318:4318" # OTLP HTTP Exporter in opentelemetry-ruby is set to 4317 by default 26 | depends_on: 27 | - jaeger-all-in-one 28 | - zipkin-all-in-one 29 | -------------------------------------------------------------------------------- /sdk/lib/opentelemetry/sdk/trace/samplers/decision.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Trace 10 | module Samplers 11 | # The Decision module contains a set of constants to be used in the 12 | # decision part of a sampling {Result}. 13 | module Decision 14 | # Decision to not record events and not sample. 15 | DROP = :__drop__ 16 | 17 | # Decision to record events and not sample. 18 | RECORD_ONLY = :__record_only__ 19 | 20 | # Decision to record events and sample. 21 | RECORD_AND_SAMPLE = :__record_and_sample__ 22 | end 23 | end 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /logs_api/lib/opentelemetry/logs/logger_provider.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Logs 9 | # No-op implementation of a logger provider. 10 | class LoggerProvider 11 | NOOP_LOGGER = OpenTelemetry::Logs::Logger.new 12 | private_constant :NOOP_LOGGER 13 | 14 | # Returns an {OpenTelemetry::Logs::Logger} instance. 15 | # 16 | # @param [optional String] name Instrumentation package name 17 | # @param [optional String] version Instrumentation package version 18 | # 19 | # @return [OpenTelemetry::Logs::Logger] 20 | def logger(name = nil, version = nil) 21 | @logger ||= NOOP_LOGGER 22 | end 23 | end 24 | end 25 | end 26 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | # The Metrics module contains the OpenTelemetry metrics reference 10 | # implementation. 11 | module Metrics 12 | end 13 | end 14 | end 15 | 16 | require 'opentelemetry/sdk/metrics/aggregation' 17 | require 'opentelemetry/sdk/metrics/configurator_patch' 18 | require 'opentelemetry/sdk/metrics/export' 19 | require 'opentelemetry/sdk/metrics/fork_hooks' 20 | require 'opentelemetry/sdk/metrics/instrument' 21 | require 'opentelemetry/sdk/metrics/meter' 22 | require 'opentelemetry/sdk/metrics/meter_provider' 23 | require 'opentelemetry/sdk/metrics/state' 24 | require 'opentelemetry/sdk/metrics/view' 25 | -------------------------------------------------------------------------------- /api/benchmarks/span_bench.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'benchmark/ipsa' 8 | require 'opentelemetry/sdk' 9 | 10 | OpenTelemetry::SDK.configure 11 | tracer = OpenTelemetry.tracer_provider.tracer('bench') 12 | span = tracer.start_root_span('bench') 13 | 14 | attributes = { 15 | 'component' => 'rack', 16 | 'span.kind' => 'server', 17 | 'http.method' => 'GET', 18 | 'http.url' => 'blogs/index' 19 | } 20 | 21 | Benchmark.ipsa do |x| 22 | x.report 'name=' do 23 | span.name = 'new_name' 24 | end 25 | 26 | x.report 'set_attribute' do 27 | span.set_attribute('k', 'v') 28 | end 29 | 30 | x.report 'add_event' do 31 | span.add_event('test event', attributes: attributes) 32 | end 33 | 34 | x.compare! 35 | end 36 | -------------------------------------------------------------------------------- /sdk/test/opentelemetry/sdk/trace/span_processor_test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'test_helper' 8 | 9 | describe OpenTelemetry::SDK::Trace::SpanProcessor do 10 | let(:processor) { OpenTelemetry::SDK::Trace::SpanProcessor.new } 11 | let(:span) { nil } 12 | let(:context) { nil } 13 | 14 | it 'implements #on_start' do 15 | processor.on_start(span, context) 16 | end 17 | 18 | it 'implements #on_finishing' do 19 | processor.on_finishing(span) 20 | end 21 | 22 | it 'implements #on_finish' do 23 | processor.on_finish(span) 24 | end 25 | 26 | it 'implements #force_flush' do 27 | processor.force_flush 28 | end 29 | 30 | it 'implements #shutdown' do 31 | processor.shutdown 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/context/key.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | class Context 9 | # The Key class provides mechanisms to index and access values from a 10 | # Context 11 | class Key 12 | attr_reader :name 13 | 14 | # @api private 15 | # Use Context.create_key to obtain a Key instance. 16 | def initialize(name) 17 | @name = name 18 | end 19 | 20 | # Returns the value indexed by this Key in the specified context 21 | # 22 | # @param [optional Context] context The Context to lookup the key from. 23 | # Defaults to +Context.current+. 24 | def get(context = Context.current) 25 | context[self] 26 | end 27 | end 28 | end 29 | end 30 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/context/propagation/text_map_getter.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | class Context 9 | module Propagation 10 | # The default getter module provides a common methods for reading 11 | # key from a carrier that implements +[]+ and a +keys+ method 12 | class TextMapGetter 13 | # Reads a key from a carrier that implements +[]+. Useful for extract 14 | # operations. 15 | def get(carrier, key) 16 | carrier[key] 17 | end 18 | 19 | # Reads all keys from a carrier. Useful for iterating over a carrier's 20 | # keys. 21 | def keys(carrier) 22 | carrier.keys 23 | end 24 | end 25 | end 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/aggregation/drop.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | module Aggregation 11 | # Contains the implementation of the Drop aggregation 12 | class Drop 13 | def collect(start_time, end_time, data_points) 14 | data_points.values.map!(&:dup) 15 | end 16 | 17 | def update(increment, attributes, data_points) 18 | data_points[attributes] = NumberDataPoint.new( 19 | {}, 20 | 0, 21 | 0, 22 | 0, 23 | 0 24 | ) 25 | nil 26 | end 27 | end 28 | end 29 | end 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /api/lib/opentelemetry/baggage/propagation.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry/baggage/propagation/context_keys' 8 | require 'opentelemetry/baggage/propagation/text_map_propagator' 9 | 10 | module OpenTelemetry 11 | module Baggage 12 | # The Baggage::Propagation module contains a text map propagator for 13 | # sending and receiving baggage over the wire. 14 | module Propagation 15 | extend self 16 | 17 | TEXT_MAP_PROPAGATOR = TextMapPropagator.new 18 | 19 | private_constant :TEXT_MAP_PROPAGATOR 20 | 21 | # Returns a text map propagator that propagates context using the 22 | # W3C Baggage format. 23 | def text_map_propagator 24 | TEXT_MAP_PROPAGATOR 25 | end 26 | end 27 | end 28 | end 29 | -------------------------------------------------------------------------------- /sdk_experimental/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Release History: opentelemetry-sdk-experimental 2 | 3 | ### v0.4.0 / 2025-02-25 4 | 5 | - ADDED: Support 3.1 Min Version 6 | 7 | ### v0.3.2 / 2023-11-02 8 | 9 | - FIXED: Ruby 3.0 compatibility for generate_r 10 | 11 | ### v0.3.1 / 2023-09-18 12 | 13 | - FIXED: Small perf improvement to generate_r 14 | 15 | ### v0.3.0 / 2023-06-08 16 | 17 | - BREAKING CHANGE: Remove support for EoL Ruby 2.7 18 | 19 | - ADDED: Remove support for EoL Ruby 2.7 20 | 21 | ### v0.2.0 / 2023-05-30 22 | 23 | - FIXED: Consistent probability sampler init 24 | - BREAKING CHANGE: Consistently pass tracestate 25 | - BREAKING CHANGE: Set r in Parent CPS 26 | 27 | ### v0.1.1 / 2023-03-06 28 | 29 | - FIXED: Reduce allocations in update_tracestate 30 | - FIXED: Refactor consistent prob sampler for reuse 31 | 32 | ### v0.1.0 / 2022-11-09 33 | 34 | - Initial release. 35 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/code.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'code/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/otel.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'otel/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/url.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'url/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/client.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'client/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'error/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/kestrel.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'kestrel/metrics' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/network.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'network/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/server.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'server/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/service.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'service/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/exception.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'exception/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/app.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'app/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/aws.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'aws/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/az.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'az/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/code.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'code/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/disk.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'disk/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/file.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'file/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/gcp.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'gcp/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/geo.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'geo/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/host.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'host/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/ios.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'ios/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/log.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'log/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/net.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'net/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/oci.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'oci/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/os.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'os/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/peer.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'peer/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/pool.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'pool/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/test.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'test/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/tls.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'tls/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/url.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'url/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/user.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'user/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/zos.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'zos/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/telemetry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'telemetry/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/client.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'client/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/cloud.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'cloud/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/device.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'device/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'error/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/event.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'event/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/heroku.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'heroku/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/kestrel.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'kestrel/metrics' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/linux.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'linux/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/other.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'other/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/server.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'server/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/source.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'source/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/thread.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'thread/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/user_agent.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'user_agent/attributes' 22 | -------------------------------------------------------------------------------- /exporter/otlp-grpc/lib/opentelemetry/exporter/otlp/grpc.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | # OpenTelemetry is an open source observability framework, providing a 8 | # general-purpose API, SDK, and related tools required for the instrumentation 9 | # of cloud-native software, frameworks, and libraries. 10 | # 11 | # The OpenTelemetry module provides global accessors for telemetry objects. 12 | # See the documentation for the `opentelemetry-api` gem for details. 13 | module OpenTelemetry 14 | module Exporter 15 | module OTLP 16 | # GRPC contains the implementation for the OTLP over GRPC exporter 17 | module GRPC 18 | end 19 | end 20 | end 21 | end 22 | 23 | require 'opentelemetry/exporter/otlp/grpc/trace_exporter' 24 | require 'opentelemetry/exporter/otlp/grpc/version' 25 | -------------------------------------------------------------------------------- /exporter/otlp-http/lib/opentelemetry/exporter/otlp/http.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | # OpenTelemetry is an open source observability framework, providing a 8 | # general-purpose API, SDK, and related tools required for the instrumentation 9 | # of cloud-native software, frameworks, and libraries. 10 | # 11 | # The OpenTelemetry module provides global accessors for telemetry objects. 12 | # See the documentation for the `opentelemetry-api` gem for details. 13 | module OpenTelemetry 14 | module Exporter 15 | module OTLP 16 | # HTTP contains the implementation for the OTLP over HTTP exporters 17 | module HTTP 18 | end 19 | end 20 | end 21 | end 22 | 23 | require 'opentelemetry/exporter/otlp/http/trace_exporter' 24 | require 'opentelemetry/exporter/otlp/http/version' 25 | -------------------------------------------------------------------------------- /metrics_api/lib/opentelemetry/metrics/instrument/gauge.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module Metrics 9 | module Instrument 10 | # No-op implementation of Gauge. 11 | class Gauge 12 | # Record the current value for the Gauge 13 | # 14 | # @param [Numeric] amount The current absolute value. 15 | # @param [Hash{String => String, Numeric, Boolean, Array}] attributes 16 | # Values must be non-nil and (array of) string, boolean or numeric type. 17 | # Array values must not contain nil elements and all elements must be of 18 | # the same basic type (string, numeric, boolean). 19 | def record(amount, attributes: {}); end 20 | end 21 | end 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/aggregation/exponential_histogram/log2e_scale_factor.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | module Aggregation 11 | module ExponentialHistogram 12 | # Log2eScaleFactor is precomputed scale factor value 13 | class Log2eScaleFactor 14 | MAX_SCALE = 20 15 | 16 | LOG2E_SCALE_BUCKETS = (0..MAX_SCALE).map do |scale| 17 | log2e = 1 / Math.log(2) 18 | Math.ldexp(log2e, scale) 19 | end 20 | 21 | # for testing 22 | def self.log2e_scale_buckets 23 | LOG2E_SCALE_BUCKETS 24 | end 25 | end 26 | end 27 | end 28 | end 29 | end 30 | end 31 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/export.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | module Export 11 | ExportError = Class.new(OpenTelemetry::Error) 12 | 13 | # The operation finished successfully. 14 | SUCCESS = 0 15 | 16 | # The operation finished with an error. 17 | FAILURE = 1 18 | 19 | # The operation timed out. 20 | TIMEOUT = 2 21 | end 22 | end 23 | end 24 | end 25 | 26 | require 'opentelemetry/sdk/metrics/export/metric_reader' 27 | require 'opentelemetry/sdk/metrics/export/in_memory_metric_pull_exporter' 28 | require 'opentelemetry/sdk/metrics/export/console_metric_pull_exporter' 29 | require 'opentelemetry/sdk/metrics/export/periodic_metric_reader' 30 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/android.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'android/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/artifact.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'artifact/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/browser.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'browser/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/cassandra.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'cassandra/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/enduser.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'enduser/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/exception.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'exception/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/graphql.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'graphql/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/mainframe.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'mainframe/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/message.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'message/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/network.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'network/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/profile.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'profile/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/service.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'service/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/session.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'session/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/telemetry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'telemetry/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/webengine.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'webengine/attributes' 22 | -------------------------------------------------------------------------------- /common/lib/opentelemetry/common.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | require 'opentelemetry' 8 | require 'opentelemetry/common/http' 9 | require 'opentelemetry/common/propagation' 10 | require 'opentelemetry/common/utilities' 11 | require 'opentelemetry/common/version' 12 | 13 | # OpenTelemetry is an open source observability framework, providing a 14 | # general-purpose API, SDK, and related tools required for the instrumentation 15 | # of cloud-native software, frameworks, and libraries. 16 | # 17 | # The OpenTelemetry module provides global accessors for telemetry objects. 18 | # See the documentation for the `opentelemetry-api` gem for details. 19 | module OpenTelemetry 20 | # Common contains common helpers for semantic conventions, context propagation, etc. 21 | module Common 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/cloudevents.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'cloudevents/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/deployment.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'deployment/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/destination.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'destination/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/opentracing.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'opentracing/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/user_agent.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'user_agent/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/db.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'db/attributes' 22 | require_relative 'db/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/cloudfoundry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'cloudfoundry/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/elasticsearch.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'elasticsearch/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/feature_flag.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'feature_flag/attributes' 22 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/security_rule.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'security_rule/attributes' 22 | -------------------------------------------------------------------------------- /metrics_sdk/lib/opentelemetry/sdk/metrics/aggregation/number_data_point.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | module OpenTelemetry 8 | module SDK 9 | module Metrics 10 | module Aggregation 11 | NumberDataPoint = Struct.new(:attributes, # Hash{String => String, Numeric, Boolean, Array} 12 | :start_time_unix_nano, # Integer nanoseconds since Epoch 13 | :time_unix_nano, # Integer nanoseconds since Epoch 14 | :value, # Numeric 15 | :exemplars) # optional List of exemplars collected from measurements that were used to form the data point 16 | end 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/jvm.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'jvm/attributes' 22 | require_relative 'jvm/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/http.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'http/attributes' 22 | require_relative 'http/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/dotnet.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'dotnet/attributes' 22 | require_relative 'dotnet/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/cpu.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'cpu/attributes' 22 | require_relative 'cpu/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/db.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'db/attributes' 22 | require_relative 'db/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/dns.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'dns/attributes' 22 | require_relative 'dns/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/go.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'go/attributes' 22 | require_relative 'go/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/hw.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'hw/attributes' 22 | require_relative 'hw/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/jvm.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'jvm/attributes' 22 | require_relative 'jvm/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/k8s.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'k8s/attributes' 22 | require_relative 'k8s/metrics' 23 | -------------------------------------------------------------------------------- /semantic_conventions/lib/opentelemetry/semconv/incubating/rpc.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # SPDX-License-Identifier: Apache-2.0 18 | 19 | # This file was autogenerated. Do not edit it by hand. 20 | 21 | require_relative 'rpc/attributes' 22 | require_relative 'rpc/metrics' 23 | --------------------------------------------------------------------------------