Skip to content

Conversation

@VihasMakwana
Copy link
Contributor

@VihasMakwana VihasMakwana commented Oct 27, 2025

What does this PR do?

Remove the file_storage as it's not used anywhere and use flush_timeout.

Also added unit test cases to validate the samples using DryRun.

Screenshot 2025-10-27 at 7 35 58 PM

@VihasMakwana VihasMakwana requested review from a team as code owners October 27, 2025 14:05
@mergify
Copy link
Contributor

mergify bot commented Oct 27, 2025

This pull request does not have a backport label. Could you fix it @VihasMakwana? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@cmacknz
Copy link
Member

cmacknz commented Oct 27, 2025

I think #10826 should be addressed here, it doesn't seem like adding a basic unit test that the collector starts is that much work. If it is a lot of work let me know and we can discuss a better strategy to address this.

@VihasMakwana VihasMakwana requested a review from a team as a code owner October 28, 2025 09:51
@VihasMakwana VihasMakwana force-pushed the fix-config-key branch 2 times, most recently from 310b452 to 6aa0277 Compare October 29, 2025 10:41
@theletterf theletterf enabled auto-merge (squash) October 29, 2025 13:56
@theletterf theletterf merged commit 49af983 into elastic:main Oct 29, 2025
21 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.1 9.2

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @VihasMakwana

@mergify
Copy link
Contributor

mergify bot commented Oct 29, 2025

backport 8.19 9.1 9.2

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 29, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
(cherry picked from commit 49af983)

# Conflicts:
#	internal/pkg/otel/samples/linux/profiles_metrics.yml
#	internal/pkg/otel/samples/windows/managed_otlp/logs_metrics_traces.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs_hostmetrics.yml
mergify bot pushed a commit that referenced this pull request Oct 29, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
(cherry picked from commit 49af983)

# Conflicts:
#	internal/pkg/otel/samples/linux/profiles_metrics.yml
#	internal/pkg/otel/samples/windows/managed_otlp/logs_metrics_traces.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs_hostmetrics.yml
mergify bot pushed a commit that referenced this pull request Oct 29, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
(cherry picked from commit 49af983)

# Conflicts:
#	internal/pkg/otel/samples/windows/managed_otlp/logs_metrics_traces.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs.yml
#	internal/pkg/otel/samples/windows/managed_otlp/platformlogs_hostmetrics.yml
VihasMakwana added a commit that referenced this pull request Oct 30, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
VihasMakwana added a commit that referenced this pull request Oct 30, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
VihasMakwana added a commit that referenced this pull request Oct 30, 2025
* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
VihasMakwana added a commit that referenced this pull request Oct 31, 2025
…ws (#10855)

* [EDOT][windows] add missing samples for windows (#10728)

* add docs and changelog

* remove redundant

(cherry picked from commit 03a81c0)

* add flush_timeout

* [samples] remove unneeded file_storage and fix a bug (#10856)

* fix: add flush_interval

* couple of enhancements

* test samples

* lint

* use observer and t.Setenv

* lint

* fix profiling

* fix unit test race

* more time

* comment

* enable profiling for linux

* Add comment

* use DryRun to validate the config

---------

Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>

---------

Co-authored-by: Vihas Makwana <[email protected]>
Co-authored-by: Vihas <[email protected]>
Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants