Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger Reply Tracing #949

Merged
merged 6 commits into from
Mar 22, 2019
Merged

Conversation

Harwayne
Copy link
Contributor

Proposed Changes

  • Trigger replies have the proper tracing headers attached.

Release Note

Complete tracing through Broker and Trigger.

@knative-prow-robot knative-prow-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 21, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 21, 2019
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 21, 2019
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/broker/receiver.go 82.7% 82.9% 0.2

for n, v := range tctx.Header {
lower := strings.ToLower(n)
if forwardHeaders.Has(lower) {
sendingCTX = addHeader(sendingCTX, n, v)
h[n] = v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the h.Add here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h.Add only works with an individual string and value is []string. Using h.Add, I would need to do a for loop:

for _, iv := range v {
  h.Add(n, iv)
}

continue
}
for _, prefix := range forwardPrefixes {
if strings.HasPrefix(lower, prefix) {
sendingCTX = addHeader(sendingCTX, n, v)
h[n] = v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

@vaikas
Copy link
Contributor

vaikas commented Mar 22, 2019

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 22, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Harwayne, vaikas-google

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Harwayne,vaikas-google]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit f95c7f4 into knative:master Mar 22, 2019
@Harwayne Harwayne deleted the reply-trace branch March 22, 2019 20:19
matzew pushed a commit to matzew/eventing that referenced this pull request Nov 5, 2020
* Reimplementing fetching of wathola report with K8s job

This change targets the problem of how to get report from cluster.
Clusters may have different networking setup, and it might not be
possible to directly make HTTP request from outside of cluster.

Previous approach used to guess an external address of cluster. That for
sure fails on OpenShift deployed on AWS.

This approach deploys a special Job that, being inside cluster, can
download a report and print it in it's logs. Then test client can fetch
logs of completed job, and parse it, replay the logs, and process report
further.

Removal of unneeded external node address package

* wathola-fetcher test image

* Adding a tip of how to override openshift/release repo location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants