From 81081edfd25ca50daee874fb6c40d59d03d03238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Th=C3=A9riault?= Date: Fri, 21 Jun 2024 13:10:32 -0400 Subject: [PATCH] fix(instrumentation-aws-lambda): license headers --- .../src/user-function.ts | 18 +++++++++++++++++- .../test/vendor/UserFunction.d.ts | 16 ++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/user-function.ts b/plugins/node/opentelemetry-instrumentation-aws-lambda/src/user-function.ts index 2beecc4942..2bb2ff6cf9 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/user-function.ts +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/src/user-function.ts @@ -1,4 +1,20 @@ -/** +/* + * Copyright The 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 + * + * https://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. + */ + +/* * Adapted from https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/v3.1.0/src/UserFunction.js */ diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/test/vendor/UserFunction.d.ts b/plugins/node/opentelemetry-instrumentation-aws-lambda/test/vendor/UserFunction.d.ts index 89b7991ebb..b47f266081 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/test/vendor/UserFunction.d.ts +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/test/vendor/UserFunction.d.ts @@ -1,3 +1,19 @@ +/* + * Copyright The 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 + * + * https://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. + */ + export declare function load( appRoot: string, fullHandlerString: string