Skip to content

Commit ef3fe6e

Browse files
authored
docs: add ifeval for 7.10 release (#1004) (#1005)
1 parent d737de4 commit ef3fe6e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/log-correlation.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ endif::[]
66
[[log-correlation]]
77
== Log correlation
88

9-
109
The Elastic APM .NET agent provides integrations for popular logging frameworks, which take care of
1110
injecting trace ID fields into your application's log records. Currently supported logging frameworks are:
1211

@@ -20,7 +19,12 @@ If your favorite logging framework is not already supported, there are two other
2019

2120
Regardless of how you integrate APM with logging, you can use {filebeat-ref}[Filebeat] to
2221
send your logs to Elasticsearch, in order to correlate your traces and logs and link from
22+
ifeval::["{branch}"=="7.9"]
2323
APM to the {apm-app-ref}/xpack-logs.html[Logs app].
24+
endif::[]
25+
ifeval::["{branch}"!="7.9"]
26+
APM to the {observability-guide}/monitor-logs.html[Logs app].
27+
endif::[]
2428

2529
[[serilog]]
2630
=== Serilog
@@ -67,7 +71,7 @@ With this setup the application will send all the logs automatically to Elastics
6771
[[nlog]]
6872
=== NLog
6973

70-
For NLog, we offer two https://github.com/NLog/NLog/wiki/Layout-Renderers[LayoutRenderers] that inject the current trace and transaction id into logs.
74+
For NLog, we offer two https://github.com/NLog/NLog/wiki/Layout-Renderers[LayoutRenderers] that inject the current trace and transaction id into logs.
7175

7276
In order to use them, you need to add the https://www.nuget.org/packages/Elastic.Apm.NLog[Elastic.Apm.NLog] NuGet package to your application and load it in the `<extensions>` section of your NLog config file:
7377

@@ -109,7 +113,7 @@ For correlating structured logs with traces, the following fields should be adde
109113

110114
- `trace.id`
111115
- `transaction.id`
112-
116+
113117
Given a transaction object, you can obtain its trace id by using the `Transaction.TraceId` property and its transaction id by using the `Transaction.Id` property.
114118

115119
You can also use the <<api-current-transaction, Elastic.Apm.Agent.Tracer.CurrentTransaction>> property anywhere in the code to access the currently active transaction.

0 commit comments

Comments
 (0)