Skip to content

Commit

Permalink
Fixed copyright for every file under sdk. (open-telemetry#1961)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff authored Feb 7, 2023
1 parent 1fc4cac commit 6925fc4
Show file tree
Hide file tree
Showing 33 changed files with 90 additions and 105 deletions.
3 changes: 3 additions & 0 deletions buildscripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ git add "$(pwd)/api/include/opentelemetry/version.h"

# Update sdk version.cc
cat > "$(pwd)/sdk/src/version/version.cc" <<END
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// Please DONOT touch this file.
// Any changes done here would be overwritten by pre-commit git hook
Expand Down
3 changes: 3 additions & 0 deletions sdk/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
27 changes: 0 additions & 27 deletions sdk/CHANGELOG.md

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(opentelemetry_sdk INTERFACE)
target_include_directories(
opentelemetry_sdk
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(common)
add_subdirectory(trace)
add_subdirectory(metrics)
Expand Down
15 changes: 2 additions & 13 deletions sdk/src/common/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

set(COMMON_SRCS random.cc core.cc global_log_handler.cc)
if(WIN32)
list(APPEND COMMON_SRCS platform/fork_windows.cc)
Expand Down
15 changes: 2 additions & 13 deletions sdk/src/common/platform/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
15 changes: 2 additions & 13 deletions sdk/src/logs/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/logs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(
opentelemetry_logs
logger_provider.cc
Expand Down
15 changes: 2 additions & 13 deletions sdk/src/metrics/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/metrics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(
opentelemetry_metrics
async_instruments.cc
Expand Down
15 changes: 2 additions & 13 deletions sdk/src/resource/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/resource/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(opentelemetry_resources resource.cc resource_detector.cc)

set_target_properties(opentelemetry_resources PROPERTIES EXPORT_NAME resources)
Expand Down
15 changes: 2 additions & 13 deletions sdk/src/trace/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2020, 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

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/trace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(
opentelemetry_trace
tracer_context.cc
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/version/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(opentelemetry_version version.cc)

set_target_properties(opentelemetry_version PROPERTIES EXPORT_NAME version)
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/version/version.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// Please DONOT touch this file.
// Any changes done here would be overwritten by pre-commit git hook

Expand Down
3 changes: 3 additions & 0 deletions sdk/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(common)
add_subdirectory(trace)
add_subdirectory(metrics)
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/common/BUILD
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(
testname
random_test
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/instrumentationscope/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

cc_test(
name = "instrumentationscope_test",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/instrumentationscope/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

include(GoogleTest)

foreach(testname instrumentationscope_test)
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/logs/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

cc_test(
name = "logger_provider_sdk_test",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/logs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(testname
logger_provider_sdk_test logger_sdk_test log_record_test
simple_log_record_processor_test batch_log_record_processor_test)
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/metrics/BUILD
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/metrics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(
testname
meter_provider_sdk_test
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/metrics/exemplar/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

cc_test(
name = "no_exemplar_reservoir_test",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/metrics/exemplar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(
testname
no_exemplar_reservoir_test never_sample_filter_test always_sample_filter_test
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/resource/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

cc_test(
name = "resource_test",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/resource/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(testname resource_test)
add_executable(${testname} "${testname}.cc")
target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES}
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/trace/BUILD
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
3 changes: 3 additions & 0 deletions sdk/test/trace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

foreach(
testname
tracer_provider_test
Expand Down

0 comments on commit 6925fc4

Please sign in to comment.