-
Notifications
You must be signed in to change notification settings - Fork 332
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
skyapm dotnet support log collecting #467
Conversation
.AddLogging(logging => | ||
{ | ||
logging.AddSkyApmLogger(); | ||
})); |
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.
Is it necessary to report logs to Skywalking as the default option?
…for AddPushSkyApmLogger
Please add a copyright header to all new files |
@liuhaoyang Please consider skywalking-eyes to this repository. |
@@ -23,5 +23,6 @@ namespace SkyApm.Logging | |||
public interface ILoggerFactory | |||
{ | |||
ILogger CreateLogger(Type type); | |||
SkyApm.Logging.ILogger CreateSkyApmLogger(Type type); |
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.
SkyApm.Logging.ILogger CreateSkyApmLogger(Type type); | |
ILogger CreateSkyApmLogger(Type type); |
|
||
public ILogger CreateSkyApmLogger(Type type) | ||
{ | ||
throw new NotImplementedException(); |
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 not implement the method?
@@ -78,7 +78,6 @@ public SegmentContext CreateEntrySegment(string operationName, ICarrier carrier, | |||
}; | |||
segmentContext.References.Add(segmentReference); | |||
} | |||
|
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.
I don't think this page needs to be modified
_entrySegmentContextAccessor = serviceProvider.GetService<IEntrySegmentContextAccessor>(); | ||
_skyApmLogDispatcher = serviceProvider.GetService<ISkyApmLogDispatcher>(); | ||
_loggerName = type; | ||
_pushSkywalking= pushSkywalking; |
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.
I don't understand what the meaning of this switch is.
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.
Users can decide whether to push logs to Skywallking
Please answer these questions before submitting pull request
skywalking link tracing log