Skip to content

Commit 15c9701

Browse files
committed
Remove unneeded validation
Better to allow telemetry to be submitted without a name than to throw exception here.
1 parent 008fe1c commit 15c9701

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/src/main/java/com/microsoft/applicationinsights/telemetry/RequestTelemetry.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ public String getName() {
144144
* @param name A human-readable name
145145
*/
146146
public void setName(String name) {
147-
if (Strings.isNullOrEmpty(name)) {
148-
throw new IllegalArgumentException("The event name cannot be null or empty");
149-
}
150147
data.setName(name);
151148
}
152149

0 commit comments

Comments
 (0)