-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Logicmonitorexporter implementation #14182
Logicmonitorexporter implementation #14182
Conversation
@khyatigandhi6 can you please resolve merge conflicts |
@Aneurysm9 Can you please review this |
@dmitryax are you the rotating sponsor for this component? |
Hi @Aneurysm9 , |
Who is the sponsor of this component? I still see #13727 tagged as needing a sponsor. |
@bogdandrutu, it looks like you are the assigned sponsor for this one. |
@khyatigandhi6 can you please resolve the merge conflicts |
Hi Team, |
Removing the 'request changes' since it was addressed. @bogdandrutu this is on you as the sponsor :) |
@bogdandrutu can we please get some 👀 to it. |
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.
This needs more work and consider to split in simpler PRs to review.
require github.com/logicmonitor/lm-data-sdk-go v0.5.0 // indirect | ||
|
||
require ( |
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 block please
@@ -0,0 +1 @@ | |||
include ../../Makefile.Common |
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.
New line.
// LMAuthenticator is used for authenticating requests to Logicmonitor platform | ||
type LMAuthenticator struct { | ||
Config *Config | ||
} |
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 public? Who is using this?
// URL on which the logs/traces should be forwarded | ||
URL string `mapstructure:"url"` |
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.
confighttp.HTTPClientSettings already has notion of "endpoint" this is confusing.
// Headers for HTTP requests | ||
Headers map[string]string `mapstructure:"headers"` | ||
|
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.
Already defined in HTTPClientSettings https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/confighttp/confighttp.go#L57
Consider to follow the rules in:https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#when-adding-a-new-component |
Thanks @bogdandrutu for the review comments! |
Description:
Adding new component logicmonitorexporter for exporting traces and logs to Logicmonitor.
Link to tracking Issue: #13727
Testing: Added unit test cases.
Documentation: Details are mentioned in README.md file.