Skip to content

[Python Observability] Allow create call with registered method#35002

Closed
XuanWang-Amos wants to merge 25 commits intogrpc:masterfrom
XuanWang-Amos:add_registered_method
Closed

[Python Observability] Allow create call with registered method#35002
XuanWang-Amos wants to merge 25 commits intogrpc:masterfrom
XuanWang-Amos:add_registered_method

Conversation

@XuanWang-Amos
Copy link
Copy Markdown
Contributor

@XuanWang-Amos XuanWang-Amos commented Nov 16, 2023

Based on OpenTelemetry Metrics gRFC, we should recored unregistered RPC method name as other, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting registered_method=True when creating calls manually.

This is also enabled for simple stub flow but NOT enabled for AsyncIO, we'll add that later when start working on AsyncIO Observability.

@XuanWang-Amos XuanWang-Amos added the release notes: no Indicates if PR should not be in release notes label Nov 16, 2023
@XuanWang-Amos XuanWang-Amos changed the title [Python o11y] Allow pass registered_method when creating call [Python o11y] Allow create call with registered method Nov 16, 2023
@XuanWang-Amos XuanWang-Amos changed the title [Python o11y] Allow create call with registered method [Python Observability] Allow create call with registered method Nov 16, 2023
@XuanWang-Amos XuanWang-Amos marked this pull request as ready for review November 17, 2023 18:09
copybara-service bot pushed a commit that referenced this pull request Nov 20, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
copybara-service bot pushed a commit that referenced this pull request Nov 20, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
copybara-service bot pushed a commit that referenced this pull request Nov 21, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
copybara-service bot pushed a commit that referenced this pull request Nov 21, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
copybara-service bot pushed a commit that referenced this pull request Nov 21, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
copybara-service bot pushed a commit that referenced this pull request Nov 21, 2023
Based on [OpenTelemetry Metrics gRFC](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md#opentelemetry-metrics), we should recored unregistered RPC method name as `other`, this PR adds the ability to pass register method information when creating a call.

We'll consider calls created using generated stubs as registered, note that this won't prevent user from setting `registered_method=True` when creating calls manually.

This is also enabled for simple stub flow but **NOT enabled for AsyncIO**, we'll add that later when start working on AsyncIO Observability.

Note:
* **Distribution Tests Python Windows** test failed with error `AttributeError: module 'setuptools.errors' has no attribute 'CompileError'`, it's because we're using low version of setuptools for windows 3.7. I don't think the underlay issue is related to this PR, I tried debug it in this run but it passed: https://fusion2.corp.google.com/invocations/565f0f90-5965-40ca-b6b6-dc7ddc24e46a
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35002

FUTURE_COPYBARA_INTEGRATE_REVIEW=#35002 from XuanWang-Amos:add_registered_method 45a68b1
PiperOrigin-RevId: 584141205
@XuanWang-Amos XuanWang-Amos force-pushed the add_registered_method branch from 816fcf5 to 963e8a7 Compare January 4, 2024 20:31
@copybara-service copybara-service bot closed this in 9a7c0b5 Jan 8, 2024
XuanWang-Amos added a commit to XuanWang-Amos/grpc that referenced this pull request Jan 11, 2024
copybara-service bot pushed a commit that referenced this pull request Jan 11, 2024
We're having some issues internally, rolling this change back for now and wait for the affected users to figure out a solution.

This reverts: #35002, #35482 and 6872a7a

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35522

PiperOrigin-RevId: 597671989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants