diff --git a/api/BUILD b/api/BUILD index 80ff5ad926..421d26a626 100644 --- a/api/BUILD +++ b/api/BUILD @@ -1,16 +1,5 @@ -# Copyright 2019, OpenTelemetry Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md deleted file mode 100644 index 854845c8fa..0000000000 --- a/api/CHANGELOG.md +++ /dev/null @@ -1,26 +0,0 @@ -# Release History: opentelemetry-api - -All notable changes to the api project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## Guideline to update the version - -Increment the: - -* MAJOR version when you make incompatible API/ABI changes, -* MINOR version when you add functionality in a backwards compatible manner, and -* PATCH version when you make backwards compatible bug fixes. - -## [Unreleased] - -## [0.1.0] 2020-12-17 - -### Added - -* Trace API experimental - -### Changed - -### Removed diff --git a/api/CMakeLists.txt b/api/CMakeLists.txt index bf85878f78..7ef31757f3 100644 --- a/api/CMakeLists.txt +++ b/api/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + add_library(opentelemetry_api INTERFACE) target_include_directories( opentelemetry_api diff --git a/api/include/opentelemetry/nostd/detail/all.h b/api/include/opentelemetry/nostd/detail/all.h index dc12a5a5f9..deaf3ac6f2 100644 --- a/api/include/opentelemetry/nostd/detail/all.h +++ b/api/include/opentelemetry/nostd/detail/all.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/decay.h b/api/include/opentelemetry/nostd/detail/decay.h index 23aaaee2eb..a6cb111243 100644 --- a/api/include/opentelemetry/nostd/detail/decay.h +++ b/api/include/opentelemetry/nostd/detail/decay.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/dependent_type.h b/api/include/opentelemetry/nostd/detail/dependent_type.h index 0f58bcf7f7..5bba09ff88 100644 --- a/api/include/opentelemetry/nostd/detail/dependent_type.h +++ b/api/include/opentelemetry/nostd/detail/dependent_type.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/functional.h b/api/include/opentelemetry/nostd/detail/functional.h index a3546f2bee..437f92f0ad 100644 --- a/api/include/opentelemetry/nostd/detail/functional.h +++ b/api/include/opentelemetry/nostd/detail/functional.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/invoke.h b/api/include/opentelemetry/nostd/detail/invoke.h index 629fb9c966..a0c010a8f9 100644 --- a/api/include/opentelemetry/nostd/detail/invoke.h +++ b/api/include/opentelemetry/nostd/detail/invoke.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/trait.h b/api/include/opentelemetry/nostd/detail/trait.h index d4ed09cbb5..90a568c4f4 100644 --- a/api/include/opentelemetry/nostd/detail/trait.h +++ b/api/include/opentelemetry/nostd/detail/trait.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/type_pack_element.h b/api/include/opentelemetry/nostd/detail/type_pack_element.h index 0c522dd280..280d24e94a 100644 --- a/api/include/opentelemetry/nostd/detail/type_pack_element.h +++ b/api/include/opentelemetry/nostd/detail/type_pack_element.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/valueless.h b/api/include/opentelemetry/nostd/detail/valueless.h index 2a89b575e2..3b2ca7f7cf 100644 --- a/api/include/opentelemetry/nostd/detail/valueless.h +++ b/api/include/opentelemetry/nostd/detail/valueless.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "opentelemetry/version.h" diff --git a/api/include/opentelemetry/nostd/detail/variant_alternative.h b/api/include/opentelemetry/nostd/detail/variant_alternative.h index 70486cfc1a..cc0da9c8c1 100644 --- a/api/include/opentelemetry/nostd/detail/variant_alternative.h +++ b/api/include/opentelemetry/nostd/detail/variant_alternative.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/variant_fwd.h b/api/include/opentelemetry/nostd/detail/variant_fwd.h index 6d2d1ef9ec..6bae9659ec 100644 --- a/api/include/opentelemetry/nostd/detail/variant_fwd.h +++ b/api/include/opentelemetry/nostd/detail/variant_fwd.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "opentelemetry/version.h" diff --git a/api/include/opentelemetry/nostd/detail/variant_size.h b/api/include/opentelemetry/nostd/detail/variant_size.h index 0814710305..d8986a222b 100644 --- a/api/include/opentelemetry/nostd/detail/variant_size.h +++ b/api/include/opentelemetry/nostd/detail/variant_size.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include diff --git a/api/include/opentelemetry/nostd/detail/void.h b/api/include/opentelemetry/nostd/detail/void.h index e8d4a48c01..1b4c3b4f7d 100644 --- a/api/include/opentelemetry/nostd/detail/void.h +++ b/api/include/opentelemetry/nostd/detail/void.h @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #pragma once #include "opentelemetry/version.h" diff --git a/api/include/opentelemetry/trace/span_id.h b/api/include/opentelemetry/trace/span_id.h index 63d2f36894..19511040df 100644 --- a/api/include/opentelemetry/trace/span_id.h +++ b/api/include/opentelemetry/trace/span_id.h @@ -1,16 +1,5 @@ -// Copyright 2019, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 #pragma once diff --git a/api/test/CMakeLists.txt b/api/test/CMakeLists.txt index 0d2b00804f..2d051cc726 100644 --- a/api/test/CMakeLists.txt +++ b/api/test/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + add_subdirectory(core) add_subdirectory(context) add_subdirectory(plugin) diff --git a/api/test/baggage/BUILD b/api/test/baggage/BUILD index a6a4ae2165..a3783a63c0 100644 --- a/api/test/baggage/BUILD +++ b/api/test/baggage/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/baggage/CMakeLists.txt b/api/test/baggage/CMakeLists.txt index cb58f169fb..0b0fee52ac 100644 --- a/api/test/baggage/CMakeLists.txt +++ b/api/test/baggage/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + include(GoogleTest) foreach(testname baggage_test) diff --git a/api/test/baggage/propagation/BUILD b/api/test/baggage/propagation/BUILD index 1cd4371c16..2b820ed3c8 100644 --- a/api/test/baggage/propagation/BUILD +++ b/api/test/baggage/propagation/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/baggage/propagation/CMakeLists.txt b/api/test/baggage/propagation/CMakeLists.txt index 3b7bd3d07a..b4142ead8a 100644 --- a/api/test/baggage/propagation/CMakeLists.txt +++ b/api/test/baggage/propagation/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + foreach(testname baggage_propagator_test) add_executable(${testname} "${testname}.cc") target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES} diff --git a/api/test/common/BUILD b/api/test/common/BUILD index 438a9bbf6e..5ea2d5d57d 100644 --- a/api/test/common/BUILD +++ b/api/test/common/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") otel_cc_benchmark( diff --git a/api/test/common/CMakeLists.txt b/api/test/common/CMakeLists.txt index 330a7765aa..8d77dcdfab 100644 --- a/api/test/common/CMakeLists.txt +++ b/api/test/common/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + include(GoogleTest) foreach(testname kv_properties_test string_util_test) diff --git a/api/test/context/BUILD b/api/test/context/BUILD index f1a6ac163e..64b2cb750f 100644 --- a/api/test/context/BUILD +++ b/api/test/context/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/context/CMakeLists.txt b/api/test/context/CMakeLists.txt index e01e24eed0..25ce51bc20 100644 --- a/api/test/context/CMakeLists.txt +++ b/api/test/context/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + add_subdirectory(propagation) include(GoogleTest) diff --git a/api/test/context/propagation/BUILD b/api/test/context/propagation/BUILD index 388b5e0d36..d62d67649c 100644 --- a/api/test/context/propagation/BUILD +++ b/api/test/context/propagation/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/context/propagation/CMakeLists.txt b/api/test/context/propagation/CMakeLists.txt index 74a8176a2f..844aa123fa 100644 --- a/api/test/context/propagation/CMakeLists.txt +++ b/api/test/context/propagation/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + foreach(testname composite_propagator_test) add_executable(${testname} "${testname}.cc") target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES} diff --git a/api/test/core/BUILD b/api/test/core/BUILD index 99fcfaecaf..2736bbc474 100644 --- a/api/test/core/BUILD +++ b/api/test/core/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + cc_test( name = "timestamp_test", srcs = [ diff --git a/api/test/core/CMakeLists.txt b/api/test/core/CMakeLists.txt index 7fead491e5..ebb9c1625b 100644 --- a/api/test/core/CMakeLists.txt +++ b/api/test/core/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + include(GoogleTest) add_executable(timestamp_test timestamp_test.cc) diff --git a/api/test/logs/BUILD b/api/test/logs/BUILD index 34fda18db9..521620a209 100644 --- a/api/test/logs/BUILD +++ b/api/test/logs/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/logs/CMakeLists.txt b/api/test/logs/CMakeLists.txt index a5f9c04084..92d4c72450 100644 --- a/api/test/logs/CMakeLists.txt +++ b/api/test/logs/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + foreach(testname provider_test logger_test) add_executable(logs_api_${testname} "${testname}.cc") target_link_libraries(logs_api_${testname} ${GTEST_BOTH_LIBRARIES} diff --git a/api/test/metrics/BUILD b/api/test/metrics/BUILD index d15d7511f4..86e20033b7 100644 --- a/api/test/metrics/BUILD +++ b/api/test/metrics/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/metrics/CMakeLists.txt b/api/test/metrics/CMakeLists.txt index 89ce81fd01..c63af9a7a9 100644 --- a/api/test/metrics/CMakeLists.txt +++ b/api/test/metrics/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + foreach(testname meter_provider_test noop_sync_instrument_test) add_executable(${testname} "${testname}.cc") target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES} diff --git a/api/test/nostd/BUILD b/api/test/nostd/BUILD index 75166c5de5..4f2b1d31fd 100644 --- a/api/test/nostd/BUILD +++ b/api/test/nostd/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + cc_test( name = "function_ref_test", srcs = [ diff --git a/api/test/nostd/CMakeLists.txt b/api/test/nostd/CMakeLists.txt index dd783bf2d8..ee774261ea 100644 --- a/api/test/nostd/CMakeLists.txt +++ b/api/test/nostd/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + include(GoogleTest) foreach( diff --git a/api/test/plugin/BUILD b/api/test/plugin/BUILD index 98e3679b35..f20143ff77 100644 --- a/api/test/plugin/BUILD +++ b/api/test/plugin/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + cc_test( name = "dynamic_load_test", srcs = [ diff --git a/api/test/plugin/CMakeLists.txt b/api/test/plugin/CMakeLists.txt index 6bdcbf9c32..8930928f1e 100644 --- a/api/test/plugin/CMakeLists.txt +++ b/api/test/plugin/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + include(GoogleTest) add_executable(dynamic_load_test dynamic_load_test.cc) diff --git a/api/test/trace/BUILD b/api/test/trace/BUILD index 60d5c9f02c..d233084597 100644 --- a/api/test/trace/BUILD +++ b/api/test/trace/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/trace/CMakeLists.txt b/api/test/trace/CMakeLists.txt index 0e2d6631d3..34b49db84d 100644 --- a/api/test/trace/CMakeLists.txt +++ b/api/test/trace/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + add_subdirectory(propagation) foreach( diff --git a/api/test/trace/propagation/BUILD b/api/test/trace/propagation/BUILD index b21ba6bca3..8e9718e80f 100644 --- a/api/test/trace/propagation/BUILD +++ b/api/test/trace/propagation/BUILD @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark") cc_test( diff --git a/api/test/trace/propagation/CMakeLists.txt b/api/test/trace/propagation/CMakeLists.txt index a7073aacd5..e52957342a 100644 --- a/api/test/trace/propagation/CMakeLists.txt +++ b/api/test/trace/propagation/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + foreach(testname http_text_format_test b3_propagation_test) add_executable(${testname} "${testname}.cc") target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES}