diff --git a/build/AssemblyRedirectionSourceGenerator.cs b/build/AssemblyRedirectionSourceGenerator.cs index 96a5996ca..4e1140b8d 100644 --- a/build/AssemblyRedirectionSourceGenerator.cs +++ b/build/AssemblyRedirectionSourceGenerator.cs @@ -31,13 +31,20 @@ public class AssemblyRedirectionSourceGenerator var sourceContents = GenerateSourceContents(assemblies); - File.WriteAllText(generatedFilePath, sourceContents, Encoding.UTF8); + File.WriteAllText(generatedFilePath, sourceContents); Log.Information("Assembly redirection source generated {0}", generatedFilePath); } static string GenerateSourceContents(SortedDictionary assemblies) { var sb = new StringBuilder(assemblies.Count * 256); + sb.AppendLine(""" + /* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + """); + sb.AppendLine(); sb.AppendLine($"// Auto-generated file, do not change it - generated by the {nameof(AssemblyRedirectionSourceGenerator)} type"); sb.Append(@" #include ""cor_profiler.h"" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/CMakeLists.txt b/src/OpenTelemetry.AutoInstrumentation.Native/CMakeLists.txt index e5dc67b1f..d76b31ca4 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/CMakeLists.txt +++ b/src/OpenTelemetry.AutoInstrumentation.Native/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + cmake_minimum_required (VERSION 3.8..3.19) cmake_policy(SET CMP0015 NEW) diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/bytecode_instrumentations.h b/src/OpenTelemetry.AutoInstrumentation.Native/bytecode_instrumentations.h index 2b2796b9d..8cf0a8c8f 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/bytecode_instrumentations.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/bytecode_instrumentations.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + // Auto-generated file, do not change it - generated by the IntegrationsJsonGenerator #ifndef BYTECODE_INSTRUMENTATIONS_H #define BYTECODE_INSTRUMENTATIONS_H diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.cpp index 126c7283d..18c0c1a87 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "calltarget_tokens.h" #include "cor_profiler.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.h b/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.h index 2694df3c3..be5a53048 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/calltarget_tokens.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_CALLTARGET_TOKENS_H_ #define OTEL_CLR_PROFILER_CALLTARGET_TOKENS_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.cpp index 33f67fd78..46dc054a2 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "clr_helpers.h" #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.h b/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.h index 74d4e17d8..0a4b1c00a 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/clr_helpers.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_CLR_HELPERS_H_ #define OTEL_CLR_PROFILER_CLR_HELPERS_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/com_ptr.h b/src/OpenTelemetry.AutoInstrumentation.Native/com_ptr.h index 1665bbe4e..73956eaca 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/com_ptr.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/com_ptr.h @@ -1,4 +1,9 @@ -#ifndef OTEL_CLR_PROFILER_COM_PTR_H_ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef OTEL_CLR_PROFILER_COM_PTR_H_ #define OTEL_CLR_PROFILER_COM_PTR_H_ #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.cpp index 1521b387f..a82c50752 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "cor_profiler.h" #include "corhlpr.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.h b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.h index 9aba80005..ea1fa5d03 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_COR_PROFILER_H_ #define OTEL_CLR_PROFILER_COR_PROFILER_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.cpp index 35a538056..76a01f9e1 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.cpp @@ -1,4 +1,7 @@ -#include "cor_profiler_base.h" +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#include "cor_profiler_base.h" #include "logger.h" namespace trace diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.h b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.h index a0e08e580..570801df7 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler_base.h @@ -1,4 +1,9 @@ -#ifndef OTEL_CLR_PROFILER_COR_PROFILER_BASE_H_ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef OTEL_CLR_PROFILER_COR_PROFILER_BASE_H_ #define OTEL_CLR_PROFILER_COR_PROFILER_BASE_H_ #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/dllmain.h b/src/OpenTelemetry.AutoInstrumentation.Native/dllmain.h index eb924982e..aa2c12eb6 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/dllmain.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/dllmain.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_DLLMAIN_H_ #define OTEL_CLR_PROFILER_DLLMAIN_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables.h b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables.h index b5fee2336..07deb7fcf 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_H_ #define OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_parser.h b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_parser.h index 7d9cc7ab0..0832b6e21 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_parser.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_parser.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_PARSER_H_ #define OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_PARSER_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_util.h b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_util.h index 32f69b9c7..20bd4db78 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_util.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/environment_variables_util.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_UTIL_H_ #define OTEL_CLR_PROFILER_ENVIRONMENT_VARIABLES_UTIL_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.cpp index 2aa8fd12b..34efb198a 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "il_rewriter_wrapper.h" ILRewriter* ILRewriterWrapper::GetILRewriter() const diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.h b/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.h index ee87a6c8a..1d903c13f 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/il_rewriter_wrapper.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_IL_REWRITER_WRAPPER_H_ #define OTEL_CLR_PROFILER_IL_REWRITER_WRAPPER_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/integration.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/integration.cpp index d4f5f5a41..b02317a27 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/integration.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/integration.cpp @@ -1,3 +1,5 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 #include "integration.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/integration.h b/src/OpenTelemetry.AutoInstrumentation.Native/integration.h index afaee64ba..a0993a84f 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/integration.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/integration.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_INTEGRATION_H_ #define OTEL_CLR_PROFILER_INTEGRATION_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.cpp index 3f41e80bb..e7836d598 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "integration_loader.h" #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.h b/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.h index 22f872185..fcab59b95 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/integration_loader.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_INTEGRATION_LOADER_H_ #define OTEL_CLR_PROFILER_INTEGRATION_LOADER_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/interop.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/interop.cpp index 39b6abb27..152efa363 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/interop.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/interop.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + //--------------------------------------------------------------------------------------- // Exports that managed code from OpenTelemetry.AutoInstrumentation.dll will // P/Invoke into diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/logger.h b/src/OpenTelemetry.AutoInstrumentation.Native/logger.h index 360b89e50..bef427273 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/logger.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/logger.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once #include "environment_variables.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/logger_impl.h b/src/OpenTelemetry.AutoInstrumentation.Native/logger_impl.h index efc106d86..aee59425e 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/logger_impl.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/logger_impl.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_LOGGER_IMPL_H_ #define OTEL_CLR_PROFILER_LOGGER_IMPL_H_ #include "util.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/logging.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/logging.cpp index b52611274..fb631f94c 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/logging.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/logging.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "logging.h" #include "pal.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/logging.h b/src/OpenTelemetry.AutoInstrumentation.Native/logging.h index dabd7ec8c..517a58777 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/logging.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/logging.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_LOGGING_H_ #define OTEL_CLR_PROFILER_LOGGING_H_ #include "util.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/macros.h b/src/OpenTelemetry.AutoInstrumentation.Native/macros.h index 5181c3e73..af5de7e6d 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/macros.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/macros.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_MACROS_H_ #define OTEL_CLR_PROFILER_MACROS_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.cpp index 0377db032..2b3388c45 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.cpp @@ -1,4 +1,7 @@ -#include +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#include #include #include "clr_helpers.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.h b/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.h index 3695d7327..33e99c532 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/metadata_builder.h @@ -1,4 +1,9 @@ -#pragma once +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/miniutfdata.h b/src/OpenTelemetry.AutoInstrumentation.Native/miniutfdata.h index 7005f44a1..a3a5bd293 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/miniutfdata.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/miniutfdata.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + static const uint32_t xref[] = { 0, 59, 60, 61, 62, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 82, 83, 84, 85, 86, 87, 88, diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/module_metadata.h b/src/OpenTelemetry.AutoInstrumentation.Native/module_metadata.h index a518d3fc4..28a16b07e 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/module_metadata.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/module_metadata.h @@ -1,4 +1,9 @@ -#ifndef OTEL_CLR_PROFILER_MODULE_METADATA_H_ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef OTEL_CLR_PROFILER_MODULE_METADATA_H_ #define OTEL_CLR_PROFILER_MODULE_METADATA_H_ #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/netfx_assembly_redirection.h b/src/OpenTelemetry.AutoInstrumentation.Native/netfx_assembly_redirection.h index d4f3cbf65..8b3640e0e 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/netfx_assembly_redirection.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/netfx_assembly_redirection.h @@ -1,4 +1,9 @@ -// Auto-generated file, do not change it - generated by the AssemblyRedirectionSourceGenerator type +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +// Auto-generated file, do not change it - generated by the AssemblyRedirectionSourceGenerator type #include "cor_profiler.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h b/src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h index 4aacd6e10..35aa32361 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_PROFILER_CONSTANTS_H #define OTEL_PROFILER_CONSTANTS_H diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/pal.h b/src/OpenTelemetry.AutoInstrumentation.Native/pal.h index a7b3e62fb..3f4c28245 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/pal.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/pal.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_PAL_H_ #define OTEL_CLR_PROFILER_PAL_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.cpp index 9ada0c440..8f36779da 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "rejit_handler.h" #include "logger.h" diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.h b/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.h index 61e6f2cb0..3e5181d42 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/rejit_handler.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_REJIT_HANDLER_H_ #define OTEL_CLR_PROFILER_REJIT_HANDLER_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/resource.h b/src/OpenTelemetry.AutoInstrumentation.Native/resource.h index 9e7d419ec..1a65669ba 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/resource.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/resource.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Resource.rc diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/startup_hook.h b/src/OpenTelemetry.AutoInstrumentation.Native/startup_hook.h index 1b1e5276c..a08c3d185 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/startup_hook.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/startup_hook.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_STARTUP_HOOK_H_ #define OTEL_CLR_PROFILER_STARTUP_HOOK_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/stats.h b/src/OpenTelemetry.AutoInstrumentation.Native/stats.h index 4e99b8ed7..f8e8c01f0 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/stats.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/stats.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_STATS_H_ #define OTEL_CLR_PROFILER_STATS_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/string.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/string.cpp index 965596afb..55399f9dd 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/string.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/string.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "string.h" #ifdef _WIN32 #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/string.h b/src/OpenTelemetry.AutoInstrumentation.Native/string.h index 03ba33d14..f190ac103 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/string.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/string.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_STRING_H_ #define OTEL_CLR_PROFILER_STRING_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/util.cpp b/src/OpenTelemetry.AutoInstrumentation.Native/util.cpp index ac20beb4a..07bf82a93 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/util.cpp +++ b/src/OpenTelemetry.AutoInstrumentation.Native/util.cpp @@ -1,3 +1,6 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + #include "util.h" // Keep first to avoid PCH warning. #include diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/util.h b/src/OpenTelemetry.AutoInstrumentation.Native/util.h index 2dbca03e9..8c78dbc2d 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/util.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/util.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #ifndef OTEL_CLR_PROFILER_UTIL_H_ #define OTEL_CLR_PROFILER_UTIL_H_ diff --git a/src/OpenTelemetry.AutoInstrumentation.Native/version.h b/src/OpenTelemetry.AutoInstrumentation.Native/version.h index 48bee3ada..12f4032a2 100644 --- a/src/OpenTelemetry.AutoInstrumentation.Native/version.h +++ b/src/OpenTelemetry.AutoInstrumentation.Native/version.h @@ -1,3 +1,8 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once constexpr auto PROFILER_VERSION = "0.6.0-beta.2"; diff --git a/tools/IntegrationsJsonGenerator/Program.cs b/tools/IntegrationsJsonGenerator/Program.cs index b70e598be..584d640dd 100644 --- a/tools/IntegrationsJsonGenerator/Program.cs +++ b/tools/IntegrationsJsonGenerator/Program.cs @@ -179,6 +179,13 @@ void UpdateNativeInstrumentationFile(string filePath, Dictionary