From c87e194f5d8245f2fa58b2f8d09e85fe19d17308 Mon Sep 17 00:00:00 2001 From: Jeevan Opel Date: Tue, 10 Dec 2024 10:49:53 -0800 Subject: [PATCH] change to Snowflake Inc. --- scripts/vendor_otlp_proto_common.sh | 4 ++-- .../opentelemetry/exporter/otlp/proto/common/__init__.py | 5 ++--- .../exporter/otlp/proto/common/_internal/__init__.py | 5 ++--- .../otlp/proto/common/_internal/_log_encoder/__init__.py | 5 ++--- .../otlp/proto/common/_internal/metrics_encoder/__init__.py | 5 ++--- .../otlp/proto/common/_internal/trace_encoder/__init__.py | 5 ++--- .../opentelemetry/exporter/otlp/proto/common/_log_encoder.py | 5 ++--- .../exporter/otlp/proto/common/metrics_encoder.py | 5 ++--- .../exporter/otlp/proto/common/trace_encoder.py | 5 ++--- .../opentelemetry/exporter/otlp/proto/common/version.py | 5 ++--- 10 files changed, 20 insertions(+), 29 deletions(-) diff --git a/scripts/vendor_otlp_proto_common.sh b/scripts/vendor_otlp_proto_common.sh index f20315e..3afaaed 100755 --- a/scripts/vendor_otlp_proto_common.sh +++ b/scripts/vendor_otlp_proto_common.sh @@ -55,6 +55,6 @@ find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD 's/opentelemetry # Add a notice to the top of every file in compliance with Apache 2.0 to indicate that the file has been modified # https://www.apache.org/licenses/LICENSE-2.0 -find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD '14s|^|#\n# NOTICE:\n# This file has been modified from the original source code at\n#\n# https://github.com/open-telemetry/opentelemetry-python/tree/'"$REPO_BRANCH_OR_COMMIT"'\n#\n# by Snowflake Computing Inc.\n|' {} + +find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD '14s|^|#\n# This file has been modified from the original source code at\n#\n# https://github.com/open-telemetry/opentelemetry-python/tree/'"$REPO_BRANCH_OR_COMMIT"'\n#\n# by Snowflake Inc.\n|' {} + # Insert our own license header at the top of every file -find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD '1s|^|#\n# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.\n#\n|' {} + +find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD '1s|^|#\n# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved.\n#\n|' {} + diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/__init__.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/__init__.py index 0fd7851..624c06a 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/__init__.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. from snowflake.telemetry._internal.opentelemetry.exporter.otlp.proto.common.version import __version__ diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py index dfcb7f7..e445eb6 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. import logging diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py index edd2e47..82ba871 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. from collections import defaultdict from typing import Sequence, List diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py index 05485d7..72abf11 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. import logging from opentelemetry.sdk.metrics.export import ( diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/trace_encoder/__init__.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/trace_encoder/__init__.py index 276f41d..1d0e203 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/trace_encoder/__init__.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_internal/trace_encoder/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. import logging from collections import defaultdict diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_log_encoder.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_log_encoder.py index 22d5ab8..9cca8a3 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_log_encoder.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_log_encoder.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. from snowflake.telemetry._internal.opentelemetry.exporter.otlp.proto.common._internal._log_encoder import ( diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py index 3b60dfd..511d99e 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. from snowflake.telemetry._internal.opentelemetry.exporter.otlp.proto.common._internal.metrics_encoder import ( diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py index 81980ba..c93ad69 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,12 +15,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. from snowflake.telemetry._internal.opentelemetry.exporter.otlp.proto.common._internal.trace_encoder import ( diff --git a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/version.py b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/version.py index 68f8b3d..7aae21b 100644 --- a/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/version.py +++ b/src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/version.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved. +# Copyright (c) 2012-2024 Snowflake Inc. All rights reserved. # # Copyright The OpenTelemetry Authors # @@ -15,11 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # -# NOTICE: # This file has been modified from the original source code at # # https://github.com/open-telemetry/opentelemetry-python/tree/v1.26.0 # -# by Snowflake Computing Inc. +# by Snowflake Inc. __version__ = "1.26.0"