diff --git a/scripts/vendor_otlp_proto_common.sh b/scripts/vendor_otlp_proto_common.sh index 24adf7c..2a53f37 100755 --- a/scripts/vendor_otlp_proto_common.sh +++ b/scripts/vendor_otlp_proto_common.sh @@ -50,5 +50,9 @@ fi # opentelemetry.proto.*_pb2 to snowflake.telemetry._internal.opentelemetry.proto.*_marshaler find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD 's/opentelemetry.exporter/snowflake.telemetry._internal.opentelemetry.exporter/g' {} + -find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD -i 's/opentelemetry\.proto\(.*\)_pb2/snowflake.telemetry._internal.opentelemetry.proto\1_marshaler/g' {} + +find opentelemetry/exporter -type f -name "*.py" -exec $SED_CMD 's/opentelemetry\.proto\(.*\)_pb2/snowflake.telemetry._internal.opentelemetry.proto\1_marshaler/g' {} + + +# 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|' {} + 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 dffaa32..5f47c14 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 fe1c776..42768c7 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 916d5d6..31620c5 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 5620f17..29f8a41 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 8243860..9d734eb 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 4e761cd..18e9dbe 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 a8425de..f75ff36 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 d5896eb..694d38c 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 @@ -11,6 +11,13 @@ # 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. +# +# 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. 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 02b6cd0..b2d7216 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 @@ -11,5 +11,12 @@ # 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. +# +# 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. __version__ = "1.26.0"