Skip to content

Commit a99da50

Browse files
tippmar-nrclaude
andcommitted
cleanup: remove CustomArrayErrorAttributes method from ASP.NET Core test controller
- Remove leftover CustomArrayErrorAttributes method that attempted to pass arrays to NoticeError() - Error attributes do not support arrays and this functionality will not be implemented - Ensures test applications only contain valid array attribute endpoints - Maintains clean separation between AddCustomAttribute (supports arrays) and NoticeError (does not) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 03e270a commit a99da50

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

tests/Agent/IntegrationTests/Applications/AspNetCoreWebApiCustomAttributesApplication/Controllers/AttributeTestingController.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,4 @@ public string CustomArrayWithNulls()
9696
return "success";
9797
}
9898

99-
[HttpGet]
100-
[Route("api/CustomArrayErrorAttributes")]
101-
public string CustomArrayErrorAttributes()
102-
{
103-
var errorAttributes = new Dictionary<string, object>
104-
{
105-
{"errorTags", new[] { "error", "critical", "timeout" }},
106-
{"errorCodes", new[] { 500, 503, 404 }},
107-
};
108-
NewRelic.Api.Agent.NewRelic.NoticeError("Array error occurred.", errorAttributes);
109-
110-
return "success";
111-
}
11299
}

0 commit comments

Comments
 (0)