Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/
class AzureMonitorLogRecordExporter implements LogRecordExporter {

private static final String LOGGER_PREFIX = "com.azure.monitor.opentelemetry.exporter";
private static final ClientLogger LOGGER = new ClientLogger(AzureMonitorLogRecordExporter.class);
private static final OperationLogger OPERATION_LOGGER =
new OperationLogger(AzureMonitorLogRecordExporter.class, "Exporting log");
Expand Down Expand Up @@ -54,6 +55,9 @@ public CompletableResultCode export(Collection<LogRecordData> logs) {

List<TelemetryItem> telemetryItems = new ArrayList<>();
for (LogRecordData log : logs) {
if (log.getInstrumentationScopeInfo().getName().startsWith(LOGGER_PREFIX)) {
continue;
}
LOGGER.verbose("exporting log: {}", log);
try {
String stack = log.getAttributes().get(SemanticAttributes.EXCEPTION_STACKTRACE);
Expand Down