Skip to content

Commit 02fe3ec

Browse files
authored
Merge pull request #1324 from microsoft/trask/remove-unnecessary-custom-property
Remove unnecessary custom property
2 parents b6fb547 + 1740b44 commit 02fe3ec

File tree

1 file changed

+0
-5
lines changed
  • agent/exporter/src/main/java/com/microsoft/applicationinsights/agent

1 file changed

+0
-5
lines changed

agent/exporter/src/main/java/com/microsoft/applicationinsights/agent/Exporter.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ public CompletableResultCode shutdown() {
387387
}
388388

389389
private static void setProperties(Map<String, String> properties, long timeEpochNanos, String level, String loggerName, Map<String, AttributeValue> attributes) {
390-
properties.put("TimeStamp", getFormattedDate(NANOSECONDS.toMillis(timeEpochNanos)));
391390
if (level != null) {
392391
properties.put("SourceType", "Logger");
393392
properties.put("LoggingLevel", level);
@@ -586,10 +585,6 @@ private static String createTarget(URI uriObject) {
586585
return target;
587586
}
588587

589-
private static String getFormattedDate(long dateInMilliseconds) {
590-
return new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US).format(new Date(dateInMilliseconds));
591-
}
592-
593588
private static String getStringValue(AttributeValue value) {
594589
switch (value.getType()) {
595590
case STRING:

0 commit comments

Comments
 (0)