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

Add opentracing operation name settings #4118

Conversation

JorritSalverda
Copy link
Contributor

What this PR does / why we need it:

In order to set custom span names for server and location span use the following config items in the configmap:

opentracing-operation-name: "HTTP $request_method $uri"
opentracing-location-operation-name: "HTTP $request_method $uri"

Which issue this PR fixes:

fixes #4116

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 25, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @JorritSalverda. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 25, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JorritSalverda
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: aledbf

If they are not already assigned, you can assign the PR to them by writing /assign @aledbf in a comment when ready.

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:

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

@JorritSalverda
Copy link
Contributor Author

/assign @aledbf

@ElvinEfendi
Copy link
Member

@JorritSalverda thanks for the PR, please write e2e tests to cover these new functionality.

@aledbf aledbf added this to In Progress in 0.25.0 May 26, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 27, 2019
@JorritSalverda
Copy link
Contributor Author

@ElvinEfendi I've added tests confirming presence of the directives in the generated config. I guess it's easiest to add tests for #4117 when this one's merged.

@aledbf
Copy link
Member

aledbf commented Jun 5, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 5, 2019
@aledbf
Copy link
Member

aledbf commented Jun 5, 2019

@JorritSalverda please rebase and squash the commits

@codecov-io
Copy link

codecov-io commented Jun 5, 2019

Codecov Report

Merging #4118 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4118      +/-   ##
==========================================
+ Coverage   57.63%   57.64%   +<.01%     
==========================================
  Files          87       87              
  Lines        6463     6459       -4     
==========================================
- Hits         3725     3723       -2     
  Misses       2307     2307              
+ Partials      431      429       -2
Impacted Files Coverage Δ
internal/ingress/controller/config/config.go 98.56% <ø> (ø) ⬆️
internal/watch/file_watcher.go 80.76% <0%> (-3.85%) ⬇️
internal/ingress/controller/controller.go 46.56% <0%> (+0.05%) ⬆️
...ternal/ingress/annotations/sessionaffinity/main.go 57.14% <0%> (+1.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e76418c...f77eaae. Read the comment docs.

@JorritSalverda JorritSalverda force-pushed the add-opentracing-operation-name-settings branch from 17c8bb1 to 9f32199 Compare June 7, 2019 12:19
…e config settings

With these settings custom span names can be used for the server span and location span

Signed-off-by: Jorrit Salverda <jsalverda@travix.com>
@JorritSalverda JorritSalverda force-pushed the add-opentracing-operation-name-settings branch from 9f32199 to f77eaae Compare June 7, 2019 12:19
@JorritSalverda
Copy link
Contributor Author

@aledbf I've squashed and rebased. I'm not fully clear on why the tests have failed, whether it's an error in my tests or the test run experiences timeouts for another reason.

@aledbf
Copy link
Member

aledbf commented Jun 7, 2019

I'm not fully clear on why the tests have failed, whether it's an error in my tests or the test run experiences timeouts for another reason

The errors are related to your tests. (you can check the failures https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/ingress-nginx/4118/pull-ingress-nginx-e2e-1-13/1136971198354165760)

@aledbf aledbf removed this from In Progress in 0.25.0 Jun 20, 2019
@aledbf aledbf added this to In Progress in 0.26.0 Jun 20, 2019
@aledbf
Copy link
Member

aledbf commented Aug 15, 2019

@JorritSalverda friendly ping

@aledbf aledbf removed this from In Progress in 0.26.0 Aug 16, 2019
@aledbf aledbf added this to In Progress in 0.27.0 Sep 27, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 13, 2019
@k8s-ci-robot
Copy link
Contributor

@JorritSalverda: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-ingress-nginx-e2e-1-13 f77eaae link /test pull-ingress-nginx-e2e-1-13
pull-ingress-nginx-e2e-1-14 f77eaae link /test pull-ingress-nginx-e2e-1-14
pull-ingress-nginx-e2e-1-15 f77eaae link /test pull-ingress-nginx-e2e-1-15
pull-ingress-nginx-e2e-1-16 f77eaae link /test pull-ingress-nginx-e2e-1-16
pull-ingress-nginx-e2e-1-17 f77eaae link /test pull-ingress-nginx-e2e-1-17

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@aledbf
Copy link
Member

aledbf commented Dec 13, 2019

@JorritSalverda please reopen when you can fix the e2e issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request - set opentracing operation name
6 participants