Create an HTTP Traces Source
To configure an HTTP Traces Source:
In the Sumo Logic web interface, select Manage Data > Collection > Collection.
On the Collection page, click Add Source next to a Hosted Collector.
Select HTTP Traces.
Enter a Name for the Source. A description is optional.
(Optional) For Source Host and Source Category, enter any string to tag the output collected from the source. These are built-in metadata fields that allow you to organize your data. We recommend you specify a Source Category indicating the data is from a browser.
- When you are finished configuring the Source click Save.
- The HTTP Source Address is displayed in a pop-up, copy the URL. You'll need to provide it in the script you set up in the next section, instrument your web application.
Instrument your web application
Edit and use the following script in your page head, with the <head></head> tags. The script sends trace data in OTLP/HTTP format.
- You need to replace
us2, or blank for
us1based on the deployment your account is on. See endpoints for more information. For example,
Your browser should be allowed to download from this domain.
<sumo_logic_http_traces_source_url>with the HTTP Traces Source URL you copied in step 8 above.
Within the endpoint URL you copied you also have to make a minor change. The hostname needs to be modified from
For example, if your URL is:
Your browser should be allowed to POST data to this URL.
<name_of_your_web_service>with any text you want to appear as the service name in the spans. For example, "Bookings web frontend".
(Recommended) If you use application name tags, specify the following in your script to ensure consistent tagging with your browser data:
<app_name> is the name of your application used for backend spans.
(Optional) You can specify sampling for heavy traffic sites. For example, 10% would be added to the script as:
Search traces from the browser
Create a trace query that specifies traces starting with the value you gave to
<name_of_your_web_service> as a root service name.