Skip to content

Commit

Permalink
Add modifications notice on copied files
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jopel committed Dec 3, 2024
1 parent 5243abe commit 2e78d45
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/vendor_otlp_proto_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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|' {} +
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2e78d45

Please sign in to comment.