Adds RequestOption and WithHeader functions that allow users to customize
the request options when taking polling actions.
This unblocks Knative Serving to pass user set headers through
in conformance testing.
* Add a variant of wait for status with explicit timeout.
This permits setting higher timeouts in the performance tests,
which it seems take longer to come to life.
* revert the default timeout change
This is a breaking change, that can be fixed up by replacing `logger,` with `logger.Infof,` in the argument lists for these functions.
This is part of a larger cleanup to allow us to use alternate log methods like `t.Logf` in place of `BaseLogger`.
* Metrics logging fix in pkg/test: Issue-3150
https://github.com/knative/serving/issues/3150 describes the issue
that currently exists in our test logging framework. This change
fixes the problem by prefixing metrics that needs to be emited by
a constant which the logging.ExpoxtSpan method then uses to identify
the spans that needs to be emitted as logs
Note this only fixes part of the issue:
https://github.com/knative/serving/issues/3150
this change needs to be ported to knative serving before the issue
can be closed.
* Update test/logging/logging.go
Adding required lines.
Co-Authored-By: dushyanthsc <43390008+dushyanthsc@users.noreply.github.com>