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

MF-399 - Add open tracing support #782

Merged
merged 14 commits into from
Jul 18, 2019
Merged

Conversation

anovakovic01
Copy link
Contributor

What does this do?

Adds base open tracing support to users and things service.

Which issue(s) does this PR fix/relate to?

Resolves #399.

List any changes that modify/break current functionality

There are no such changes.

Have you included tests for your changes?

Existing tests are updated.

Did you document any new/modified functionality?

README.md doc is updated with new env vars.

Notes

Open tracing support can be improved by adding tags to the existing spans. Also, open tracing support should be added to bootstrap service. One of the next steps would also be to add tracing of messages that are passing through NATS.

@codecov-io
Copy link

codecov-io commented Jul 13, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@a6a8648). Click here to learn what that means.
The diff coverage is 95.37%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #782   +/-   ##
=========================================
  Coverage          ?   85.51%           
=========================================
  Files             ?       72           
  Lines             ?     4624           
  Branches          ?        0           
=========================================
  Hits              ?     3954           
  Misses            ?      446           
  Partials          ?      224
Impacted Files Coverage Δ
ws/adapter.go 93.75% <ø> (ø)
users/users.go 100% <ø> (ø)
ws/api/transport.go 88.07% <ø> (ø)
things/users/users.go 100% <100%> (ø)
things/api/auth/http/endpoint.go 100% <100%> (ø)
things/api/auth/http/transport.go 89.18% <100%> (ø)
users/api/http/transport.go 83.6% <100%> (ø)
things/api/auth/grpc/client.go 100% <100%> (ø)
things/redis/things.go 90.9% <100%> (ø)
things/postgres/things.go 81.59% <100%> (ø)
... and 15 more

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 a6a8648...a43d385. Read the comment docs.

drasko
drasko previously approved these changes Jul 14, 2019
Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1,5 +1,5 @@
//
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest dropping a year from headers and contracting them to something like this:

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@drasko can we do this in another PR, this one is already huge?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, sure.

@@ -1,5 +1,5 @@
//
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -1,5 +1,5 @@
//
Copy link
Contributor

Choose a reason for hiding this comment

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

And so on...

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
@mteodor
Copy link
Contributor

mteodor commented Jul 16, 2019

LGTM

@nmarcetic nmarcetic merged commit 61f1c2e into absmach:master Jul 18, 2019
manuio pushed a commit that referenced this pull request Oct 12, 2020
* Add open tracing dependencies

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add open tracing to users service

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add open tracing to the things service

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add open tracing to the http adapter

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add open tracing to the ws adapter

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add open tracing to the CoAP adapter

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update LoRa adapter in accordance with changes

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update SDK tests in accordance with changes

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update bootstrap service in accordance with changes

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update reader services with accordance with changes

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update .env and docker-compose file

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Add jaeger and timeout env vars

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Fix broken test for can access by id endpoint

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>

* Update deps with proto empty package

Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add message UUID so that we can follow e2e flow
5 participants