googleapis / googleapis/google-cloud-python

tests/unit: test_metrics_emission_with_failure_attempt fails due to lack of "intercept"

オープン
#15,897 コメント 1 件 リアクション 0 件 担当者 2 名 @lszinv に割り当て済み GitHub で見る
api: spanner
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
122

説明

This is the failure output

```shell
_________________________________________________ test_metrics_emission_with_failure_attempt _________________________________________________

patched_client =

def test_metrics_emission_with_failure_attempt(patched_client):
instance = patched_client.instance("test-instance")
database = instance.database("example-db")
factory = SpannerMetricsTracerFactory()

assert factory.enabled

transport = database.spanner_api._transport
metrics_interceptor = transport._metrics_interceptor
> original_intercept = metrics_interceptor.intercept
E AttributeError: 'NoneType' object has no attribute 'intercept'

tests/unit/test_metrics.py:58: AttributeError
------------------------------------------------------------- Captured log setup -------------------------------------------------------------
WARNING opentelemetry.metrics._internal:__init__.py:864 Overriding of current MeterProvider is not allowed
----------------------------------------------------------- Captured log teardown ------------------------------------------------------------
WARNING opentelemetry.metrics._internal:__init__.py:864 Overriding of current MeterProvider is not allowed
============================================================== warnings summary ==============================================================
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。