File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Tags"
3
+ sidebarTitle : " Tags"
4
+ description : " Set tags on requests to categorize them and search faster"
5
+ icon : " tag"
6
+ ---
7
+
8
+ You can configure Subtrace to tag requests to categorize and search faster when
9
+ you're dealing with large request volumes. Tags are commonly used for metadata
10
+ specific to your business, organization, or infrastructure.
11
+
12
+ An example use-case for tags is when you have a microservice architecture. It's
13
+ useful to tag each request by the service name so that you can later filter for
14
+ network activity within a specific service. Here's an example config:
15
+
16
+ ``` yaml
17
+ tags :
18
+ service_name : payments-api
19
+ deploy_env : prod
20
+ ` ` `
21
+
22
+ To use this config file, use the ` --config` command line flag:
23
+
24
+ ` ` ` bash
25
+ ./subtrace run --config=/path/to/subtrace.yaml -- node app.js
26
+ ` ` `
27
+
28
+ # # Default Tags
29
+
30
+ Subtrace automatically populates requests with the following set of default set
31
+ of tags based on the information it can gather about the environment :
32
+
33
+ - ` hostname`
34
+
35
+ The following default tags may be relevant if you're on Google Cloud :
36
+
37
+ - ` gcp_project`
38
+ - ` gke_cluster_location`
39
+ - ` gke_cluster_name`
40
+ - ` gke_node_name`
You can’t perform that action at this time.
0 commit comments