Skip to content

Add diagnostic logs at startup#769

Merged
kevingosse merged 5 commits into
masterfrom
kevin/startuplogs
Jul 1, 2020
Merged

Add diagnostic logs at startup#769
kevingosse merged 5 commits into
masterfrom
kevin/startuplogs

Conversation

@kevingosse

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/Datadog.Trace/Tracer.cs Outdated
Comment thread src/Datadog.Trace/Tracer.cs Outdated
@kevingosse
kevingosse force-pushed the kevin/startuplogs branch 2 times, most recently from 3b3e6d3 to 114d6a7 Compare June 29, 2020 14:17
@kevingosse
kevingosse marked this pull request as ready for review June 29, 2020 17:14
@kevingosse
kevingosse requested a review from a team as a code owner June 29, 2020 17:14
}
if (FAILED(hr)) {
Warn("Failed to attach profiler: unable to set event mask.");
Warn("DATADOG TRACER DIAGNOSTICS - Failed to attach profiler: unable to set event mask.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure what qualifies for DATADOG TRACER DIAGNOSTICS, but do the above domain-neutral logs need this message prefix or no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As I understand it, DATADOG TRACER DIAGNOSTICS should be used for stuff that causes the instrumentation to fail. The domain-neutral logs does not necessarily indicate an error condition.

}
}

internal async Task WriteDiagnosticLog()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In Azure App Services we may initialize the Tracer to send to one port for the trace-agent and one port for dogstatsd, and then update it later after using the filesystem to record which ports we were able to open for those processes. Perhaps this WriteDiagnosticLog method should be included in the TracingProcessManager.SubscribeToTraceAgentPortOverride and TracingProcessManager.SubscribeToDogStatsDPortOverride callbacks, if that won't be too noisy.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The issue is that we're supposed to have only one "DATADOG TRACER CONFIGURATION" log. I'll leave it as is for now.

@zacharycmontoya zacharycmontoya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, left a couple of small comments

@kevingosse
kevingosse merged commit 95611d4 into master Jul 1, 2020
@kevingosse
kevingosse deleted the kevin/startuplogs branch July 1, 2020 10:13
@zacharycmontoya zacharycmontoya added this to the 1.18.2 milestone Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants