-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Pallister
authored and
Tom Pallister
committed
Feb 13, 2018
1 parent
7c62b55
commit 947a145
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Tracing | ||
======= | ||
|
||
Ocelot providers tracing functionality from the excellent `Butterfly <https://github.com/ButterflyAPM>`_ project. | ||
|
||
In order to use the tracing please read the Butterfly documentation. | ||
|
||
In ocelot you need to do the following if you wish to trace a ReRoute. | ||
|
||
In your ConfigureServices method | ||
|
||
.. code-block:: csharp | ||
services | ||
.AddOcelot(Configuration) | ||
.AddOpenTracing(option => | ||
{ | ||
//this is the url that the butterfly collector server is running on... | ||
option.CollectorUrl = "http://localhost:9618"; | ||
option.Service = "Ocelot"; | ||
}); | ||
Then in your configuration.json add the following to the ReRoute you want to trace.. | ||
|
||
.. code-block:: json | ||
"HttpHandlerOptions": { | ||
"UseTracing": true | ||
}, | ||
Ocelot will now send tracing information to Butterfly when this ReRoute is called. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters