Skip to content

Commit

Permalink
Fixed copyright in examples. (open-telemetry#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff authored Feb 7, 2023
1 parent 7ed1b1d commit 1d18614
Show file tree
Hide file tree
Showing 38 changed files with 114 additions and 14 deletions.
3 changes: 3 additions & 0 deletions examples/batch/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_binary(
name = "example_simple",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/batch/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_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include)

add_executable(batch_span_processor_example main.cc)
Expand Down
3 changes: 3 additions & 0 deletions examples/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

add_subdirectory(foo_library)
if(WITH_LOGS_PREVIEW)
add_subdirectory(logs_foo_library)
Expand Down
3 changes: 3 additions & 0 deletions examples/common/foo_library/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
3 changes: 3 additions & 0 deletions examples/common/foo_library/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(common_foo_library foo_library.h foo_library.cc)
target_link_libraries(common_foo_library PUBLIC ${CMAKE_THREAD_LIBS_INIT}
opentelemetry_api)
3 changes: 3 additions & 0 deletions examples/common/logs_foo_library/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
3 changes: 3 additions & 0 deletions examples/common/logs_foo_library/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(common_logs_foo_library foo_library.h foo_library.cc)
target_link_libraries(common_logs_foo_library PUBLIC ${CMAKE_THREAD_LIBS_INIT}
opentelemetry_api)
3 changes: 3 additions & 0 deletions examples/common/metrics_foo_library/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
3 changes: 3 additions & 0 deletions examples/common/metrics_foo_library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(common_metrics_foo_library foo_library.h foo_library.cc)
target_link_libraries(common_metrics_foo_library PUBLIC opentelemetry_api)
3 changes: 3 additions & 0 deletions examples/etw_threads/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

project(etw_threadpool)

add_executable(etw_threadpool main.cc)
Expand Down
3 changes: 3 additions & 0 deletions examples/grpc/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"])

load("@rules_proto//proto:defs.bzl", "proto_library")
Expand Down
3 changes: 3 additions & 0 deletions examples/grpc/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

# Proto file
get_filename_component(proto_file "./protos/messages.proto" ABSOLUTE)
get_filename_component(proto_file_path "${proto_file}" PATH)
Expand Down
3 changes: 3 additions & 0 deletions examples/grpc/client.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

// Make sure to include GRPC headers first because otherwise Abseil may create
// ambiguity with `nostd::variant` if compiled with Visual Studio 2015. Other
// modern compilers are unaffected.
Expand Down
3 changes: 3 additions & 0 deletions examples/grpc/protos/messages.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package grpc_example;
Expand Down
3 changes: 3 additions & 0 deletions examples/grpc/server.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

#ifdef BAZEL_BUILD
# include "examples/grpc/protos/messages.grpc.pb.h"
#else
Expand Down
3 changes: 3 additions & 0 deletions examples/http/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_binary(
name = "example_http_client",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/jaeger/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_binary(
name = "example_jaeger",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/jaeger/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_directories(${CMAKE_SOURCE_DIR}/exporters/jaeger/include)

add_executable(example_jaeger main.cc)
Expand Down
3 changes: 3 additions & 0 deletions examples/metrics_simple/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_binary(
name = "metrics_ostream_example",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/metrics_simple/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_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include)
add_executable(metrics_ostream_example metrics_ostream.cc)
target_link_libraries(
Expand Down
3 changes: 3 additions & 0 deletions examples/multi_processor/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_binary(
name = "example_multi_processor",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/multi_processor/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_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include
${CMAKE_SOURCE_DIR}/exporters/memory/include)

Expand Down
3 changes: 3 additions & 0 deletions examples/multithreaded/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_binary(
name = "example_multithreaded",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/multithreaded/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_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include)

add_executable(example_multithreaded main.cc)
Expand Down
3 changes: 3 additions & 0 deletions examples/otlp/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_binary(
name = "example_otlp_grpc",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/otlp/opentelemetry-collector-config/config.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

exporters:
logging:
loglevel: DEBUG
Expand Down
3 changes: 3 additions & 0 deletions examples/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(load)
add_subdirectory(plugin)
3 changes: 3 additions & 0 deletions examples/plugin/load/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_binary(
name = "load_plugin",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/plugin/load/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_executable(load_plugin_example main.cc)
target_link_libraries(load_plugin_example opentelemetry_api ${CMAKE_DL_LIBS})
3 changes: 3 additions & 0 deletions examples/plugin/plugin/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_binary(
name = "example_plugin.so",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/plugin/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

add_library(example_plugin SHARED tracer.cc factory_impl.cc)
target_link_libraries(example_plugin opentelemetry_api)
3 changes: 3 additions & 0 deletions examples/prometheus/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_binary(
name = "prometheus_example",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/prometheus/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_directories(${CMAKE_SOURCE_DIR}/exporters/prometheus/include)
add_executable(prometheus_example main.cc)
target_link_libraries(
Expand Down
3 changes: 3 additions & 0 deletions examples/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

global:
scrape_interval: 5s
scrape_timeout: 2s
Expand Down
5 changes: 4 additions & 1 deletion examples/prometheus/run.sh
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
docker run -p 9090:9090 -v $(pwd):/etc/prometheus --network="host" prom/prometheus
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

docker run -p 9090:9090 -v $(pwd):/etc/prometheus --network="host" prom/prometheus
3 changes: 3 additions & 0 deletions examples/simple/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_binary(
name = "example_simple",
srcs = [
Expand Down
3 changes: 3 additions & 0 deletions examples/simple/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_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include)

add_executable(example_simple main.cc)
Expand Down
15 changes: 2 additions & 13 deletions examples/zpages/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

0 comments on commit 1d18614

Please sign in to comment.