Skip to content

Commit bf004d8

Browse files
committed
fix: Cast search attributes to string for proper tagging in activity
1 parent 74ab26e commit bf004d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AlbusKavaliro.TraceableLdapClient/TraceableLdapConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ protected virtual void Dispose(bool disposing)
355355
activity.SetTag("ldap.search.base", sr.DistinguishedName);
356356
activity.SetTag("ldap.search.scope", sr.Scope.ToString());
357357
activity.SetTag("ldap.search.filter", sr.Filter);
358-
activity.SetTag("ldap.search.attributes", string.Join(',', sr.Attributes));
358+
activity.SetTag("ldap.search.attributes", string.Join(',', sr.Attributes.Cast<string>()));
359359
activity.SetTag("ldap.search.size_limit", sr.SizeLimit);
360360
activity.SetTag("ldap.search.time_limit", sr.TimeLimit);
361361
}

0 commit comments

Comments
 (0)