Skip to content
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

[exporter/azureblobexporter] New component for azureblobexporter skeleton - First PR #37788

Merged

Conversation

hgaol
Copy link
Member

@hgaol hgaol commented Feb 8, 2025

Description

First PR for new component, azureblobexporter.

Link to tracking issue

#34319

Testing

No tests at this point.

Documentation

As README.md showed.

This is the first PR for new exporter component, Azure Blob exporter. After this PR merged, I'll add another implementation PR.

@hgaol hgaol requested a review from a team as a code owner February 8, 2025 07:00
@hgaol hgaol requested a review from fatsheep9146 February 8, 2025 07:00
@github-actions github-actions bot added the cmd/otelcontribcol otelcontribcol command label Feb 8, 2025
@hgaol
Copy link
Member Author

hgaol commented Feb 8, 2025

Not sure if the new tidylist check failed is caused by my change.
++ component sponsor @MovieStoreGuy to review the first PR for the new component, thanks!

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@atoulme
Copy link
Contributor

atoulme commented Feb 12, 2025

@MovieStoreGuy please review as sponsor

@atoulme atoulme added the Accepted Component New component has been sponsored label Feb 12, 2025
Copy link
Contributor

@MovieStoreGuy MovieStoreGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits to address, and once done should be fine to merge.


// Config contains the main configuration options for the azure storage blob exporter
type Config struct {
URL string `mapstructure:"url"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MovieStoreGuy for the careful review. I noticed there's also auth settings in ClientConfig. If I squash it, it may conflict with the auth setting in current config. Currently I didn't find any auth extension for Azure and I'd like to investigate/explorer about azureauth extension for future. And for now, is it possible to use endpoint string instead of ClientConfig, or any suggestions? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, that makes complete sense.

So at this current point, what I suggest is the following:

  • Keep it as url for the time being as the key for the configmap
  • Create an azure auth provider
  • Once provider is ready, embed struct and warn users on field deprecation

There is a way that you could have the expected fields from the incoming struct and once ready, you could cleanly swap it out with minimal conversions.

I vote for the first since it is the most simple and it is fairly simple to fix up in future.

Perhaps make a note somewhere to users that this field is expected to change at some point to match the configuration standard?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to url and added some descriptions. Will do below changes in future PRs.

  • Create an azure auth provider
  • Once provider is ready, embed struct and warn users on field deprecation

@hgaol
Copy link
Member Author

hgaol commented Feb 15, 2025

Hi @MovieStoreGuy , could you help to review again? thanks!

@MovieStoreGuy MovieStoreGuy merged commit 63811d0 into open-telemetry:main Feb 18, 2025
162 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Component New component has been sponsored cmd/otelcontribcol otelcontribcol command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants