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
* Click on Parsers → Create Parser → Choose JSON type
62
+
* Enter example JSON log content it will parse and extract fields and map it to specific field names as needed and click save changes.
63
+
64
+
LogRecord
65
+
```
66
+
{"name":"OCILogger","hostname":"emcc.marketplace.com","pid":12586,"level":50,"msg":"Inside delete method:Cannot Delete with id 649b4ac1883092297279051b. Maybe id
67
+
is wrong","time":"2023-07-10T07:02:13.678Z","src":{},"v":0,"trace_id":"5941ccd308fcb49e30b3ebfcffcff38f","span_id":"0bed4a8c3b33d48e","trace_flags":"01"}
@@ -80,3 +189,33 @@ Make sure to run the metric and tracing files alog with your server
80
189
node -r ./metrics.js -r ./tracing.js server.js
81
190
```
82
191
192
+
193
+
# Correlating Traces & Logs
194
+
OpenTelemetry includes TraceId and SpanId in the LogRecords and this allows to directly correlate logs and traces that correspond to the same execution context.
195
+
Application traces and spans flows into OCI Application Performance Monitoring and logs into OCI Logging Analytics service, So OCI APM provides easy way to
196
+
navigate from traces and spans to logs in logging analytics in one click using drilldown configuration.
197
+
198
+
Drilldowns are links to other services in OCI or other custom services using customizable URLs including attributes from spans
199
+
(e.g. loganalytics/explorer?search=<OciInstanceId> where OciInstanceId is a span attribute).
Once your tracing data and metrics are in OCI, you can use that data to visually represent it in any way you like. Creating a custom dashboard is easy, just add
209
+
the widgets you want to show and modify the source data (metric or trace data). Here are a few links to help you get started with that:
* You can also follow the [blog article on implementing Custom Trace Data Widgets](https://blogs.oracle.com/observability/post/apm-custom-dashboards) to create custom widgets from APM's Trace Explorer queries.
214
+
215
+
There is an example dashboard which can be found in the /scripts/CustomDashboardExample.json and can be imported into your APM Dashboards.
0 commit comments