-
Notifications
You must be signed in to change notification settings - Fork 462
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
EdgeAgent: Add logs provider #930
Conversation
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Docker/RuntimeInfoProvider.cs
Outdated
Show resolved
Hide resolved
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/RuntimeInfoProvider.cs
Outdated
Show resolved
Hide resolved
@@ -15,6 +17,8 @@ public interface IRuntimeInfoProvider | |||
{ | |||
Task<IEnumerable<ModuleRuntimeInfo>> GetModules(CancellationToken ctsToken); | |||
|
|||
Task<Stream> GetModuleLogs(string module, bool follow, Option<int> tail, CancellationToken cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ctsToken, same as above.
@@ -40,4 +41,12 @@ | |||
<CodeAnalysisRuleSet>..\..\..\stylecop.ruleset</CodeAnalysisRuleSet> | |||
</PropertyGroup> | |||
<Import Project="..\..\..\stylecop.props" /> | |||
|
|||
<Target Name="ChangeAliasOfAkkaNet" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Akka has some types which have the same name as the types we use elsewhere. So we need to quality the akka types with an alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should no longer be necessary since Akka.NET v1.4 - we were able to remove most of those type aliases now that we've moved onto .NET Standard 2.0.
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/logs/ILogsProcessor.cs
Show resolved
Hide resolved
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/logs/ILogsProcessor.cs
Outdated
Show resolved
Hide resolved
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/logs/LogMessageParser.cs
Outdated
Show resolved
Hide resolved
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/logs/LogMessageParser.cs
Show resolved
Hide resolved
5afdfae
to
c0b5eea
Compare
Add a LogsProvider class that processes the logs obtained from iotedged, including deframing them, parsing them, compressing them, etc.
Next step will be to hook it all up to support uploading the logs/streaming the logs.