grpcio-csm-observability 1.76.0rc1__tar.gz → 1.78.0rc2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {grpcio_csm_observability-1.76.0rc1/grpcio_csm_observability.egg-info → grpcio_csm_observability-1.78.0rc2}/PKG-INFO +10 -8
  2. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpc_csm_observability/BUILD.bazel +7 -1
  3. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpc_csm_observability/_csm_observability_plugin.py +2 -2
  4. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpc_version.py +1 -1
  5. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2/grpcio_csm_observability.egg-info}/PKG-INFO +10 -8
  6. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpcio_csm_observability.egg-info/SOURCES.txt +1 -0
  7. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpcio_csm_observability.egg-info/requires.txt +1 -1
  8. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpcio_csm_observability.egg-info/top_level.txt +1 -0
  9. grpcio_csm_observability-1.78.0rc2/pyproject.toml +48 -0
  10. grpcio_csm_observability-1.78.0rc2/setup.py +38 -0
  11. grpcio_csm_observability-1.76.0rc1/setup.py +0 -65
  12. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/LICENSE +0 -0
  13. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/MANIFEST.in +0 -0
  14. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/README.rst +0 -0
  15. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpc_csm_observability/__init__.py +0 -0
  16. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/grpcio_csm_observability.egg-info/dependency_links.txt +0 -0
  17. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/python_version.py +0 -0
  18. {grpcio_csm_observability-1.76.0rc1 → grpcio_csm_observability-1.78.0rc2}/setup.cfg +0 -0
@@ -1,23 +1,25 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: grpcio-csm-observability
3
- Version: 1.76.0rc1
3
+ Version: 1.78.0rc2
4
4
  Summary: gRPC Python CSM observability package
5
- Home-page: https://grpc.io
6
- Author: The gRPC Authors
7
- Author-email: grpc-io@googlegroups.com
8
- License: Apache License 2.0
5
+ Author-email: The gRPC Authors <grpc-io@googlegroups.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://grpc.io
9
8
  Project-URL: Source Code, https://github.com/grpc/grpc/tree/master/src/python/grpcio_csm_observability
10
9
  Project-URL: Bug Tracker, https://github.com/grpc/grpc/issues
11
10
  Classifier: Development Status :: 5 - Production/Stable
12
11
  Classifier: Programming Language :: Python
13
12
  Classifier: Programming Language :: Python :: 3
14
- Classifier: License :: OSI Approved :: Apache Software License
15
13
  Requires-Python: >=3.9
14
+ Description-Content-Type: text/x-rst
16
15
  License-File: LICENSE
17
16
  Requires-Dist: opentelemetry-sdk>=1.25.0
18
17
  Requires-Dist: opentelemetry-resourcedetector-gcp>=1.6.0a0
19
- Requires-Dist: grpcio==1.76.0rc1
18
+ Requires-Dist: grpcio==1.78.0rc2
20
19
  Requires-Dist: protobuf<7.0.0,>=6.31.1
20
+ Dynamic: license-file
21
+ Dynamic: requires-dist
22
+ Dynamic: requires-python
21
23
 
22
24
  gRPC Python CSM Observability
23
25
  =============================
@@ -15,7 +15,13 @@
15
15
  load("@grpc_python_dependencies//:requirements.bzl", "requirement")
16
16
  load("@rules_python//python:defs.bzl", "py_library")
17
17
 
18
- package(default_visibility = ["//:__subpackages__"])
18
+ package(
19
+ default_visibility = ["//:__subpackages__"],
20
+ features = [
21
+ "layering_check",
22
+ "parse_headers",
23
+ ],
24
+ )
19
25
 
20
26
  # Since packages in requirement() are non-hermetic,
21
27
  # csm_observability is for internal use only.
@@ -91,7 +91,7 @@ class CSMOpenTelemetryLabelInjector(OpenTelemetryLabelInjector):
91
91
  # ResourceAttributes.CLOUD_AVAILABILITY_ZONE are called
92
92
  # "zones" on Google Cloud.
93
93
  location_value = get_str_value_from_resource("cloud.zone", gcp_resource)
94
- if UNKNOWN_VALUE == location_value:
94
+ if location_value == UNKNOWN_VALUE:
95
95
  location_value = get_str_value_from_resource(
96
96
  ResourceAttributes.CLOUD_REGION, gcp_resource
97
97
  )
@@ -149,7 +149,7 @@ class CSMOpenTelemetryLabelInjector(OpenTelemetryLabelInjector):
149
149
  def deserialize_labels(labels: Dict[str, AnyStr]) -> Dict[str, AnyStr]:
150
150
  deserialized_labels = {}
151
151
  for key, value in labels.items():
152
- if "XEnvoyPeerMetadata" == key:
152
+ if key == "XEnvoyPeerMetadata":
153
153
  pb_struct = struct_pb2.Struct()
154
154
  pb_struct.ParseFromString(value)
155
155
 
@@ -14,4 +14,4 @@
14
14
 
15
15
  # AUTO-GENERATED FROM `$REPO_ROOT/templates/src/python/grpcio_csm_observability/grpc_version.py.template`!!!
16
16
 
17
- VERSION = '1.76.0rc1'
17
+ VERSION = '1.78.0rc2'
@@ -1,23 +1,25 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: grpcio-csm-observability
3
- Version: 1.76.0rc1
3
+ Version: 1.78.0rc2
4
4
  Summary: gRPC Python CSM observability package
5
- Home-page: https://grpc.io
6
- Author: The gRPC Authors
7
- Author-email: grpc-io@googlegroups.com
8
- License: Apache License 2.0
5
+ Author-email: The gRPC Authors <grpc-io@googlegroups.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://grpc.io
9
8
  Project-URL: Source Code, https://github.com/grpc/grpc/tree/master/src/python/grpcio_csm_observability
10
9
  Project-URL: Bug Tracker, https://github.com/grpc/grpc/issues
11
10
  Classifier: Development Status :: 5 - Production/Stable
12
11
  Classifier: Programming Language :: Python
13
12
  Classifier: Programming Language :: Python :: 3
14
- Classifier: License :: OSI Approved :: Apache Software License
15
13
  Requires-Python: >=3.9
14
+ Description-Content-Type: text/x-rst
16
15
  License-File: LICENSE
17
16
  Requires-Dist: opentelemetry-sdk>=1.25.0
18
17
  Requires-Dist: opentelemetry-resourcedetector-gcp>=1.6.0a0
19
- Requires-Dist: grpcio==1.76.0rc1
18
+ Requires-Dist: grpcio==1.78.0rc2
20
19
  Requires-Dist: protobuf<7.0.0,>=6.31.1
20
+ Dynamic: license-file
21
+ Dynamic: requires-dist
22
+ Dynamic: requires-python
21
23
 
22
24
  gRPC Python CSM Observability
23
25
  =============================
@@ -2,6 +2,7 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.rst
4
4
  grpc_version.py
5
+ pyproject.toml
5
6
  python_version.py
6
7
  setup.py
7
8
  ./grpc_csm_observability/__init__.py
@@ -1,4 +1,4 @@
1
1
  opentelemetry-sdk>=1.25.0
2
2
  opentelemetry-resourcedetector-gcp>=1.6.0a0
3
- grpcio==1.76.0rc1
3
+ grpcio==1.78.0rc2
4
4
  protobuf<7.0.0,>=6.31.1
@@ -0,0 +1,48 @@
1
+ # Copyright 2025 gRPC authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ [build-system]
16
+ requires = [
17
+ "setuptools>=77.0.1",
18
+ "wheel",
19
+ ]
20
+ build-backend = "setuptools.build_meta"
21
+
22
+ [project]
23
+ name = "grpcio-csm-observability"
24
+ license = "Apache-2.0"
25
+ description = "gRPC Python CSM observability package"
26
+ readme = {file = "README.rst", content-type = "text/x-rst"}
27
+ authors = [{name = "The gRPC Authors", email = "grpc-io@googlegroups.com"}]
28
+ classifiers = [
29
+ "Development Status :: 5 - Production/Stable",
30
+ "Programming Language :: Python",
31
+ "Programming Language :: Python :: 3",
32
+ ]
33
+
34
+ dynamic = ["dependencies", "version", "requires-python"]
35
+
36
+ [project.urls]
37
+ Homepage = "https://grpc.io"
38
+ "Source Code" = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_csm_observability"
39
+ "Bug Tracker" = "https://github.com/grpc/grpc/issues"
40
+
41
+ [tool.setuptools.dynamic]
42
+ version = {attr = "grpc_version.VERSION"}
43
+
44
+ [tool.setuptools.packages]
45
+ find = {}
46
+
47
+ [tool.setuptools.package-dir]
48
+ "" = "."
@@ -0,0 +1,38 @@
1
+ # Copyright 2024 The gRPC Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ import os
16
+ import sys
17
+
18
+ import setuptools
19
+
20
+ # Manually insert the source directory into the Python path for local module
21
+ # imports to succeed
22
+ sys.path.insert(0, os.path.abspath("."))
23
+
24
+ import grpc_version
25
+ import python_version
26
+
27
+ INSTALL_REQUIRES = (
28
+ "opentelemetry-sdk>=1.25.0",
29
+ "opentelemetry-resourcedetector-gcp>=1.6.0a0",
30
+ "grpcio=={version}".format(version=grpc_version.VERSION),
31
+ "protobuf>=6.31.1,<7.0.0",
32
+ )
33
+
34
+ if __name__ == "__main__":
35
+ setuptools.setup(
36
+ python_requires=f">={python_version.MIN_PYTHON_VERSION}",
37
+ install_requires=INSTALL_REQUIRES,
38
+ )
@@ -1,65 +0,0 @@
1
- # Copyright 2024 The gRPC Authors
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- import os
16
-
17
- import setuptools
18
-
19
- _PACKAGE_PATH = os.path.realpath(os.path.dirname(__file__))
20
- _README_PATH = os.path.join(_PACKAGE_PATH, "README.rst")
21
-
22
- # Ensure we're in the proper directory whether or not we're being used by pip.
23
- os.chdir(os.path.dirname(os.path.abspath(__file__)))
24
-
25
- import python_version
26
-
27
- import grpc_version
28
-
29
- CLASSIFIERS = [
30
- "Development Status :: 5 - Production/Stable",
31
- "Programming Language :: Python",
32
- "Programming Language :: Python :: 3",
33
- "License :: OSI Approved :: Apache Software License",
34
- ]
35
-
36
- PACKAGE_DIRECTORIES = {
37
- "": ".",
38
- }
39
-
40
- INSTALL_REQUIRES = (
41
- "opentelemetry-sdk>=1.25.0",
42
- "opentelemetry-resourcedetector-gcp>=1.6.0a0",
43
- "grpcio=={version}".format(version=grpc_version.VERSION),
44
- "protobuf>=6.31.1,<7.0.0",
45
- )
46
-
47
- setuptools.setup(
48
- name="grpcio-csm-observability",
49
- version=grpc_version.VERSION,
50
- description="gRPC Python CSM observability package",
51
- long_description=open(_README_PATH, "r").read(),
52
- author="The gRPC Authors",
53
- author_email="grpc-io@googlegroups.com",
54
- url="https://grpc.io",
55
- project_urls={
56
- "Source Code": "https://github.com/grpc/grpc/tree/master/src/python/grpcio_csm_observability",
57
- "Bug Tracker": "https://github.com/grpc/grpc/issues",
58
- },
59
- license="Apache License 2.0",
60
- classifiers=CLASSIFIERS,
61
- package_dir=PACKAGE_DIRECTORIES,
62
- packages=setuptools.find_packages("."),
63
- python_requires=f">={python_version.MIN_PYTHON_VERSION}",
64
- install_requires=INSTALL_REQUIRES,
65
- )