Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 8 additions & 1 deletion src/ApiService/ApiService/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ private static SeverityLevel GetSeverityLevel(LogLevel logLevel) {
/// <param name="eventId">Event Id information.</param>
private void PopulateTelemetry<TState>(ISupportProperties telemetryItem, TState state, EventId eventId) {
IDictionary<string, string> dict = telemetryItem.Properties;

PopulateTags(telemetryItem);

dict["CategoryName"] = this.categoryName;
dict["Logger"] = nameof(OneFuzzLogger);

Expand All @@ -181,11 +184,15 @@ private void PopulateTelemetry<TState>(ISupportProperties telemetryItem, TState
if (string.Equals(item.Key, "{OriginalFormat}")) {
dict["OriginalFormat"] = Convert.ToString(item.Value, CultureInfo.InvariantCulture) ?? $"Failed to convert {item.Value}";
} else {
//if there is an existing tag that is shadowing the log message tag - rename it
if (dict.ContainsKey(item.Key)) {
dict[$"!@#<--- {item.Key} --->#@!"] = dict[item.Key];
}
dict[item.Key] = Convert.ToString(item.Value, CultureInfo.InvariantCulture) ?? $"Failed to convert {item.Value}";
}
}
}
PopulateTags(telemetryItem);

}

/// <param name="telemetryItem"></param>
Expand Down
2 changes: 1 addition & 1 deletion src/deployment/bicep-templates/feature-flags.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ resource enableWorkItemCreation 'Microsoft.AppConfiguration/configurationStores/
value: string({
id: 'EnableWorkItemCreation'
description: 'Create work items'
enabled: false
enabled: true
})
contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
}
Expand Down