You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "Redirect to kibana to view log with formatted dates"
69
74
}]
70
75
}
71
76
```
@@ -146,6 +151,40 @@ For traces, the supported template fields are: `duration`, `endTime`, `startTime
146
151
147
152
Further, the trace template fields are available for substitution in process/logs/tags type when the trace template fields are prefixed with `trace.`. For example: `trace.traceID`, `trace.startTime`.
148
153
154
+
#### Formatting
155
+
156
+
In addition to interpolating fields into links, formatting functions can be used. The syntax is `#{field | function}` (eg `#{endTime | epoch_micros_to_date_iso}'`). Formatting functions can be chained together (eg `#{startTime | add 60000000 | epoch_micros_to_date_iso}`).
157
+
158
+
The available formatting functions and a description of their behavior are:
159
+
160
+
##### `epoch_micros_to_date_iso`
161
+
162
+
Format a date in microseconds since epoch to an ISO date time.
163
+
164
+
Example:
165
+
`#{endTime | epoch_micros_to_date_iso}`
166
+
167
+
##### `pad_start`
168
+
169
+
Pad the start of a string with a given character until the resulting string reaches the given length. Behavior is implemented by and thus matches javascript's [String.padStart](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart)
170
+
171
+
Arguments:
172
+
173
+
-`targetLength` (integer) - Desired length of the string after padding
174
+
-`padCharacter` (string) - String to pad the start of the input string with
175
+
176
+
Example: `#{traceID | pad_start 32 0}`
177
+
178
+
##### `add`
179
+
180
+
Add a value to another number. Can be positive or negative.
181
+
182
+
Arguments:
183
+
184
+
-`offset` (integer) - Value to add to the input number
185
+
186
+
Example: `#{startTime | add 1000000}`
187
+
149
188
## Embedded Mode
150
189
151
190
Starting with version 1.9, Jaeger UI provides an "embedded" layout mode which is intended to support integrating Jaeger UI into other applications. Currently (as of `v0`), the approach taken is to remove various UI elements from the page to make the UI better suited for space-constrained layouts.
"text": "Redirect to kibana to view log with formatted dates"
69
74
}]
70
75
}
71
76
```
@@ -146,6 +151,40 @@ For traces, the supported template fields are: `duration`, `endTime`, `startTime
146
151
147
152
Further, the trace template fields are available for substitution in process/logs/tags type when the trace template fields are prefixed with `trace.`. For example: `trace.traceID`, `trace.startTime`.
148
153
154
+
#### Formatting
155
+
156
+
In addition to interpolating fields into links, formatting functions can be used. The syntax is `#{field | function}` (eg `#{endTime | epoch_micros_to_date_iso}'`). Formatting functions can be chained together (eg `#{startTime | add 60000000 | epoch_micros_to_date_iso}`).
157
+
158
+
The available formatting functions and a description of their behavior are:
159
+
160
+
##### `epoch_micros_to_date_iso`
161
+
162
+
Format a date in microseconds since epoch to an ISO date time.
163
+
164
+
Example:
165
+
`#{endTime | epoch_micros_to_date_iso}`
166
+
167
+
##### `pad_start`
168
+
169
+
Pad the start of a string with a given character until the resulting string reaches the given length. Behavior is implemented by and thus matches javascript's [String.padStart](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart)
170
+
171
+
Arguments:
172
+
173
+
-`targetLength` (integer) - Desired length of the string after padding
174
+
-`padCharacter` (string) - String to pad the start of the input string with
175
+
176
+
Example: `#{traceID | pad_start 32 0}`
177
+
178
+
##### `add`
179
+
180
+
Add a value to another number. Can be positive or negative.
181
+
182
+
Arguments:
183
+
184
+
-`offset` (integer) - Value to add to the input number
185
+
186
+
Example: `#{startTime | add 1000000}`
187
+
149
188
## Embedded Mode
150
189
151
190
Starting with version 1.9, Jaeger UI provides an "embedded" layout mode which is intended to support integrating Jaeger UI into other applications. Currently (as of `v0`), the approach taken is to remove various UI elements from the page to make the UI better suited for space-constrained layouts.
0 commit comments