question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Events with null Attributes on ManagerEvent

See original GitHub issue

Hi, i have a system that generates a lot of events per second and some times the system receives events with null attributes, causing crash.

So, i implanted a Dictionary class of non nullable values and keys, thread safe, to avoid crash on system. if u you like ? => https://github.com/hugodeco/DDictionary

public abstract class ManagerEvent : EventArgs, IParseSupport
{
#region Common Event Properties

    /// <summary>
    /// Store all unknown (without setter) keys from manager event.<br/>
    /// Use in default Parse method <see cref="ManagerEvent.Parse(string, string)"/>
    /// </summary>
    public IDictionary<string, string> Attributes { get; } = new DDictionary<string, string>();

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
hugodecocommented, Nov 6, 2018

When we have a huge flow of events, test for null attributes is not sufficient and crashes the system. e.Attributes[“test”] == null I had to override the Attributes dictionary, including a lock on record to avoid those erros.

0reactions
Deantwocommented, Dec 28, 2019

Does this mean you solved your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute becomes null in event handling - java
In the MyLabel constructor, the value of control is null (by default) when this is added as the MouseListener . If the listener...
Read more >
Search Attributes – Events Manager Documentation
Search Attributes. Since version 3.0, we've made a consistent set of accepted search attributes which you can pass to various shortcodes, template tags...
Read more >
Events Views
The MGMT$INCIDENTS view provides a view of the attributes of the incident including its ... It is set to null when the events...
Read more >
ICMSTItemEvents (Item Events Table)
Events may relate to actions of library users when working on items. ... Column Name, Data Type, Attribute. EventCode, INTEGER, NOT Null.
Read more >
cloudevents/spec - Are null values for attributes permitted?
I'd argue that if the concept of expressing "this attribute is definitely not present" isn't supported by the overall spec, then SDKs for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found