File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ protobuf==3.20.2
1717deprecated==1.2.14
1818grpc-interceptor==0.15.4
1919google-cloud-monitoring==2.16.0
20+ mmh3==4.1.0
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ import pytest
1516from unittest .mock import MagicMock
1617from google .api_core .exceptions import ServiceUnavailable
1718from google .cloud .spanner_v1 .client import Client
2122 SpannerMetricsTracerFactory ,
2223)
2324
25+ pytest .importorskip ("opentelemetry" )
26+ # Skip if semconv attributes are not present, as tracing wont' be enabled either
27+ pytest .importorskip ("opentelemetry.semconv.attributes.otel_attributes" )
2428
2529def test_metrics_emission_with_failure_attempt (monkeypatch ):
2630 monkeypatch .setenv ("SPANNER_ENABLE_BUILTIN_METRICS" , "true" )
You can’t perform that action at this time.
0 commit comments