Skip to content

otelgrpc: Add metrics tests for ServerStreamInterceptors #4323

@MadVikingGod

Description

@MadVikingGod

Problem Statement

There are two problems discovered in #4322:

  1. There are no tests around the metrics produced by a ServerStreamInteceptor
  2. Under test, ServerStreamInteceptors don't have peerInfo within the call made. This means that peer info will not show in tests, but does show in actual use.

Proposed Solution

Write a test similar to checkUnaryServerRecords to assert that the produced metrics match

Change the test such that it does have peerInfo within it's context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions