-
Notifications
You must be signed in to change notification settings - Fork 0
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
modify code to make it extensive for logs #42
Conversation
302b3df
to
a6833fe
Compare
a6833fe
to
6c8ed01
Compare
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.
Thanks for implementing the new PR! I think main concern is to isolate both component so that they could be used separately
@@ -60,7 +60,7 @@ The following settings are optional: | |||
|
|||
```yaml | |||
receivers: | |||
huaweicloudcesreceiver: | |||
huaweicloudreceiver: |
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.
since LTS is effectively a different service, i think it makes more sense to keep separate components like awscloudwatchlogsexporter
and awskinesisexporter
but, i'm open for discussion
return newHuaweiCloudReceiver(settings, Metrics, cfg, &metricsReceiver{consumer: metrics}) | ||
} | ||
|
||
type logsReceiver struct { |
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.
if keeping the same component, i think you could separate files, ces_consumer
, lts_consumer
. And the same for the other files, so that they don't grow indefinitely
// Check https://github.com/vektra/mockery on how to install it on your machine. | ||
// | ||
//go:generate mockery --name LtsClient --case=underscore --output=./mocks | ||
type LtsClient interface { |
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.
same for CES Client.
shouldn't it be enough to only have the methods used in our code?
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.
You right. See #43
if err := rcvr.dataProcessor.processReceivedData(ctx, otpMetrics); err != nil { | ||
return err | ||
} | ||
case Logs: |
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.
in my mind these methods should be independent. for example, someone could configure LTS receiver frequency with a higher frequency than metrics because so that less data is accumulated in each retrieval round
this PR is deprecated |
No description provided.