Skip to content

Commit 43a314d

Browse files
Merge pull request #253324 from AaronMaxwell/aaronmax-java-faq-update
Log processors don't work with TelemetryClient.trackTrace
2 parents 50b49aa + 3a82ce1 commit 43a314d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

articles/azure-monitor/app/java-standalone-telemetry-processors-examples.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,3 +552,9 @@ Let's assume the input log message body is `User account with userId 123456xx fa
552552
}
553553
}
554554
```
555+
556+
## Frequently asked questions
557+
558+
### Why doesn't the log processor process logs using TelemetryClient.trackTrace()?
559+
560+
TelemetryClient.trackTrace() is part of the Application Insights Classic SDK bridge, and the log processors only work with the new [OpenTelemetry-based instrumentation](opentelemetry-enable.md).

articles/azure-monitor/app/java-standalone-telemetry-processors.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Some use cases:
3030

3131
Before you learn about telemetry processors, you should understand the terms *span* and *log*.
3232

33-
A span is a type of telemetry that represent one of:
33+
A span is a type of telemetry that represents one of:
3434

3535
* An incoming request.
3636
* An outgoing dependency (for example, a remote call to another service).
@@ -479,7 +479,7 @@ The log processor modifies either the log message body or attributes of a log ba
479479

480480
### Update Log message body
481481

482-
The `body` section requires the `fromAttributes` setting. The values from these attributes are used to create a new body, concatenated in the order that the configuration specifies. The processor will change the log body only if all of these attributes are present on the log.
482+
The `body` section requires the `fromAttributes` setting. The values from these attributes are used to create a new body, concatenated in the order that the configuration specifies. The processor changes the log body only if all of these attributes are present on the log.
483483

484484
The `separator` setting is optional. This setting is a string. It's specified to split values.
485485
> [!NOTE]
@@ -604,7 +604,7 @@ For more information, see [Telemetry processor examples](./java-standalone-telem
604604
605605
Metric filter are used to exclude some metrics in order to help control ingestion cost.
606606

607-
Metric filters only support `exclude` criteria. Metrics that match its `exclude` criteria will not be exported.
607+
Metric filters only support `exclude` criteria. Metrics that match its `exclude` criteria won't be exported.
608608

609609
To configure this option, under `exclude`, specify the `matchType` one or more `metricNames`.
610610

@@ -645,3 +645,9 @@ To configure this option, under `exclude`, specify the `matchType` one or more `
645645
| `\Process(??APP_WIN32_PROC??)\Private Bytes` | default metrics | Sum of [MemoryMXBean.getHeapMemoryUsage()](https://docs.oracle.com/javase/8/docs/api/java/lang/management/MemoryMXBean.html#getHeapMemoryUsage--) and [MemoryMXBean.getNonHeapMemoryUsage()](https://docs.oracle.com/javase/8/docs/api/java/lang/management/MemoryMXBean.html#getNonHeapMemoryUsage--). | no |
646646
| `\Process(??APP_WIN32_PROC??)\IO Data Bytes/sec` | default metrics | `/proc/[pid]/io` Sum of bytes read and written by the process (diff since last reported). See [proc(5)](https://man7.org/linux/man-pages/man5/proc.5.html). | no |
647647
| `\Memory\Available Bytes` | default metrics | See [OperatingSystemMXBean.getFreePhysicalMemorySize()](https://docs.oracle.com/javase/7/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html#getFreePhysicalMemorySize()). | no |
648+
649+
## Frequently asked questions
650+
651+
### Why doesn't the log processor process logs using TelemetryClient.trackTrace()?
652+
653+
TelemetryClient.trackTrace() is part of the Application Insights Classic SDK bridge, and the log processors only work with the new [OpenTelemetry-based instrumentation](opentelemetry-enable.md).

0 commit comments

Comments
 (0)