Commit 4865868
authored
fix(bigtable): fix project id sent in otel (#13286)
Project ID sent to Google Monitoring was different than the project ID
sent in the labels, which was causing an error:
```
rpc error: code = InvalidArgument desc = Field resource.labels.project_id had an invalid value of "*": if present, must be the project number or ID in the request name (projects/*).
```
This happened when you run your app on a project but connect to Bigtable
from a different project. The project in the monitoring request name
would be the project that you are running on, and the project in the
labels would be the Bigtable project, causing the mismatch.1 parent 3b3253a commit 4865868
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments