-
Notifications
You must be signed in to change notification settings - Fork 148
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
Added Readme file for otel #3992
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
magefile.go
Outdated
return tmpl.Execute(out, data) | ||
} | ||
|
||
func getDependencies() (receivers, exporters, processors []dependency, err error) { |
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 function is OTel specific so maybe rename it to reflect that?
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.
Consider parsing out extensions
as well, e.g. github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension
magefile.go
Outdated
} | ||
} | ||
|
||
readFile.Close() |
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.
Maybe move this to a defer
statement right after the the file is opened? That way, we close the file handle even if we return early from this function because of an error.
magefile.go
Outdated
} | ||
} | ||
|
||
func OtelReadme() error { |
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.
Can't say as of now if we'll end up with more OTel-specific mage targets, but if I had to guess I would say we would. So it might be a good idea to namespace all OTel-specific targets with otel:
? So this target would then become otel:readme
.
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
Co-authored-by: Shaunak Kashyap <[email protected]>
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.
LGTM - thanks for adding the README and the automation for keeping it up to date!
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
I would link to this from a new section in https://github.com/elastic/elastic-agent/blob/main/README.md |
Added README file for otel. README is dynamically re-generated when dependencies are changed. mage otelReadme will parse dependencies and regenerate output file. command is also part of mage update or mage check
Added README file for otel.
README is dynamically re-generated when dependencies are changed.
mage otelReadme
will parse dependencies and regenerate output file.
command is also part of
mage update
ormage check
Fixes: #3851