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
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,9 @@ export default new TailExporter({
162
162
headers: {
163
163
164
164
},
165
+
defaultLogsEnabled: {
166
+
invocationLog: true;
167
+
};
165
168
}),
166
169
],
167
170
maxBufferSize: 20,
@@ -170,6 +173,25 @@ export default new TailExporter({
170
173
});
171
174
```
172
175
176
+
### Default log
177
+
178
+
The Tail Exporter can emit a small set of built-in logs per sink via the `defaultLogsEnabled` option (used by sinks such as `OtelLogSink`). The most common default log is:
179
+
180
+
-`invocationLog` (default: `true`): emits a per-invocation log record containing metadata about the invocation (script name, execution model, outcome, versionId), timing information, and any global tags. This complements automatic `console` capture and is useful for tracing, auditing, and correlating metrics with individual invocations.
181
+
182
+
To disable the invocation log for a sink, set:
183
+
184
+
```ts
185
+
newOtelLogSink({
186
+
...
187
+
defaultLogsEnabled: {
188
+
invocationLog: false;
189
+
};
190
+
}),
191
+
```
192
+
193
+
You can enable or disable default logs per sink when constructing the sink (see the `OtelLogSink` example above).
194
+
173
195
2. Set up Datadog API key:
174
196
175
197
```bash
@@ -240,3 +262,5 @@ export default new TailExporter({
0 commit comments