Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding host information to messages #196

Merged
merged 11 commits into from
Mar 5, 2014
Merged

Conversation

johnsimons
Copy link
Member

  • plugins updated to send new data
  • new message HostInformation sent from Heartbeat plugin
  • Write handler for HostInformation message
  • Update model to include hostid
    ....

@andreasohlund
Copy link
Member

@johnsimons what do U think so far?

@andreasohlund andreasohlund added this to the 1.0.0 milestone Feb 12, 2014
@andreasohlund
Copy link
Member

What's left to do here @johnsimons ?

@johnsimons
Copy link
Member Author

No idea, haven't reviewed it yet.

On Wednesday, 19 February 2014, Andreas Öhlund notifications@github.com
wrote:

What's left to do here @johnsimons https://github.com/johnsimons ?

Reply to this email directly or view it on GitHubhttps://github.com//pull/196#issuecomment-35485257
.

@andreasohlund
Copy link
Member

@johnsimons lets get this one going, lets pair up tomorrow night?

{
public void MutateIncoming(TransportMessage transportMessage)
{
if (transportMessage.Headers.ContainsKey(Headers.HostId))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Headers.HostId doesn't exist in pre v4.4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll fix it

On Tue, Feb 25, 2014 at 7:47 AM, John Simons notifications@git.luolix.topwrote:

In
src/ServiceControl.Plugin.Heartbeat/EnrichPreV44MessagesWithHostDetailsMutator.cs:

@@ -0,0 +1,46 @@
+namespace ServiceControl.Plugin.Heartbeat
+{

  • using EndpointPlugin.Operations.ServiceControlBackend;
  • using NServiceBus;
  • using NServiceBus.MessageMutator;
  • class EnrichPreV44MessagesWithHostDetailsMutator:IMutateIncomingTransportMessages,INeedInitialization
  • {
  •    public void MutateIncoming(TransportMessage transportMessage)
    
  •    {
    
  •        if (transportMessage.Headers.ContainsKey(Headers.HostId))
    

Headers.HostId doesn't exist in pre v4.4

Reply to this email directly or view it on GitHubhttps://github.com//pull/196/files#r10025960
.

Description(m => string.Format("Endpoint '{0}' started at: {1} Host: {2}", m.Endpoint, m.StartedAt,m.HostDisplayName));

RelatesToEndpoint(m => m.Endpoint);
RelatesToHost(m => m.HostId.ToString());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be the hostdisplayname?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we need both, since the plan is to later link to a "hostdetails"
using that id as key. Since we have the HostDisplayName in the description
I think we're good?

On Wed, Feb 26, 2014 at 11:03 AM, John Simons notifications@git.luolix.topwrote:

In src/ServiceControl/EventLog/Definitions/EndpointStartedDefinition.cs:

@@ -0,0 +1,17 @@
+namespace ServiceControl.EventLog.Definitions
+{

  • using Contracts.HeartbeatMonitoring;
  • public class EndpointStartedDefinition : EventLogMappingDefinition
  • {
  •    public EndpointStartedDefinition()
    
  •    {
    
  •        Description(m => string.Format("Endpoint '{0}' started at: {1} Host: {2}", m.Endpoint, m.StartedAt,m.HostDisplayName));
    
  •        RelatesToEndpoint(m => m.Endpoint);
    
  •        RelatesToHost(m => m.HostId.ToString());
    

Should this be the hostdisplayname?

Reply to this email directly or view it on GitHubhttps://github.com//pull/196/files#r10073849
.

andreasohlund added a commit that referenced this pull request Mar 5, 2014
Adding host information to messages
@andreasohlund andreasohlund merged commit 92cc4bb into develop Mar 5, 2014
@andreasohlund andreasohlund deleted the endpoint-instances branch March 5, 2014 19:37
@andreasohlund andreasohlund modified the milestones: 1.0.0-Beta7, 1.0.0 Mar 7, 2014
andreasohlund added a commit that referenced this pull request Apr 1, 2014
Adding host information to messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants