Copy disabled (too large)
Download .txt
Showing preview only (10,435K chars total). Download the full file to get everything.
Repository: open-telemetry/opentelemetry-collector
Branch: main
Commit: fdadab8a8302
Files: 2607
Total size: 9.5 MB
Directory structure:
gitextract_tdgbeses/
├── .checkapi.yaml
├── .chloggen/
│ ├── README.md
│ ├── TEMPLATE.yaml
│ ├── aix_tier3.yaml
│ ├── alpha-profiles.yaml
│ ├── config.yaml
│ ├── fix-mdatagen-entity-builder.yaml
│ ├── mdatagen_fix_reporoot.yaml
│ ├── remove-resource-constant-labels.yaml
│ └── summary.tmpl
├── .codecov.yml
├── .gitattributes
├── .github/
│ ├── ALLOWLIST
│ ├── CODEOWNERS
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.yaml
│ │ ├── component-graduation.md
│ │ ├── feature_request.yaml
│ │ ├── other.yaml
│ │ ├── stabilization.md
│ │ └── vote.md
│ ├── actionlint.yaml
│ ├── lychee.toml
│ ├── pull_request_template.md
│ └── workflows/
│ ├── add-labels-and-owners.yml
│ ├── add-labels-command.yml
│ ├── api-compatibility.yml
│ ├── build-and-test-arm.yml
│ ├── build-and-test-windows.yaml
│ ├── build-and-test.yml
│ ├── builder-integration-test.yaml
│ ├── builder-snapshot.yaml
│ ├── changelog.yml
│ ├── check-codeowners.yaml
│ ├── check-links.yaml
│ ├── check-merge-freeze.yml
│ ├── codeql-analysis.yml
│ ├── contrib-tests.yml
│ ├── fossa.yml
│ ├── go-benchmarks.yml
│ ├── lint-workflow-files.yml
│ ├── milestone-add-to-pr.yml
│ ├── perf.yml
│ ├── ping-codeowners-issues.yml
│ ├── ping-codeowners-on-new-issue.yml
│ ├── ping-codeowners-prs.yml
│ ├── prepare-release.yml
│ ├── release-branch.yml
│ ├── rerun-workflows.yml
│ ├── scorecard.yml
│ ├── scripts/
│ │ ├── add-labels-and-owners.sh
│ │ ├── add-labels-command.sh
│ │ ├── check-merge-freeze.sh
│ │ ├── free-disk-space.sh
│ │ ├── get-codeowners.sh
│ │ ├── get-components.sh
│ │ ├── ping-codeowners-issues.sh
│ │ ├── ping-codeowners-on-new-issue.sh
│ │ ├── ping-codeowners-prs.sh
│ │ ├── release-branch.sh
│ │ ├── release-check-blockers.sh
│ │ ├── release-check-build-status.sh
│ │ ├── release-create-tracking-issue.sh
│ │ ├── release-prepare-release.sh
│ │ ├── rerun-failed-workflows.sh
│ │ └── win-required-ports.ps1
│ ├── shellcheck.yml
│ ├── sourcecode-release.yaml
│ ├── spell-check.yaml
│ ├── stale-pr.yaml
│ ├── survey-on-merged-pr.yml
│ ├── tidy-dependencies.yml
│ └── utils/
│ └── cspell.json
├── .gitignore
├── .golangci.yml
├── .markdownlint.yaml
├── .markdownlintignore
├── AGENTS.md
├── CHANGELOG-API.md
├── CHANGELOG.md
├── CLAUDE.md
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── Makefile.Common
├── README.md
├── VERSIONING.md
├── client/
│ ├── Makefile
│ ├── client.go
│ ├── client_test.go
│ ├── doc_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ └── package_test.go
├── cmd/
│ ├── builder/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── RELEASE.md
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── header.txt
│ │ ├── internal/
│ │ │ ├── .gitignore
│ │ │ ├── builder/
│ │ │ │ ├── config.go
│ │ │ │ ├── config_test.go
│ │ │ │ ├── main.go
│ │ │ │ ├── main_test.go
│ │ │ │ ├── package_test.go
│ │ │ │ ├── templates/
│ │ │ │ │ ├── components.go.tmpl
│ │ │ │ │ ├── go.mod.tmpl
│ │ │ │ │ ├── main.go.tmpl
│ │ │ │ │ ├── main_others.go.tmpl
│ │ │ │ │ └── main_windows.go.tmpl
│ │ │ │ └── templates.go
│ │ │ ├── command.go
│ │ │ ├── command_init.go
│ │ │ ├── command_init_test.go
│ │ │ ├── command_test.go
│ │ │ ├── config/
│ │ │ │ ├── default.go
│ │ │ │ └── default.yaml
│ │ │ ├── init/
│ │ │ │ └── templates/
│ │ │ │ ├── .gitignore.tmpl
│ │ │ │ ├── Makefile.tmpl
│ │ │ │ ├── README.md.tmpl
│ │ │ │ ├── config.yaml.tmpl
│ │ │ │ ├── go.mod.tmpl
│ │ │ │ └── manifest.yaml.tmpl
│ │ │ ├── package_test.go
│ │ │ └── version.go
│ │ ├── main.go
│ │ ├── metadata.yaml
│ │ └── test/
│ │ ├── README.md
│ │ ├── core.builder.yaml
│ │ ├── core.otel.yaml
│ │ └── test.sh
│ ├── githubgen/
│ │ └── allowlist.txt
│ ├── mdatagen/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── cfggen/
│ │ │ │ ├── generation.go
│ │ │ │ ├── generation_test.go
│ │ │ │ ├── loader.go
│ │ │ │ ├── loader_test.go
│ │ │ │ ├── model.go
│ │ │ │ ├── model_test.go
│ │ │ │ ├── namespace.go
│ │ │ │ ├── namespace_test.go
│ │ │ │ ├── resolver.go
│ │ │ │ ├── resolver_test.go
│ │ │ │ ├── type_ref.go
│ │ │ │ ├── type_ref_test.go
│ │ │ │ ├── writer.go
│ │ │ │ └── writer_test.go
│ │ │ ├── command.go
│ │ │ ├── command_test.go
│ │ │ ├── embedded_templates.go
│ │ │ ├── embedded_templates_test.go
│ │ │ ├── event.go
│ │ │ ├── event_test.go
│ │ │ ├── helpers/
│ │ │ │ ├── lint.go
│ │ │ │ ├── lint_test.go
│ │ │ │ ├── packages.go
│ │ │ │ └── packages_test.go
│ │ │ ├── loader.go
│ │ │ ├── loader_test.go
│ │ │ ├── metadata.go
│ │ │ ├── metadata_test.go
│ │ │ ├── metric.go
│ │ │ ├── metric_test.go
│ │ │ ├── sampleconnector/
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ ├── config.schema.yaml
│ │ │ │ │ ├── generated_config.go
│ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ ├── generated_entity_metrics.go
│ │ │ │ │ ├── generated_entity_metrics_test.go
│ │ │ │ │ ├── generated_metrics.go
│ │ │ │ │ ├── generated_metrics_test.go
│ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ ├── generated_status.go
│ │ │ │ │ └── testdata/
│ │ │ │ │ └── config.yaml
│ │ │ │ ├── metadata.yaml
│ │ │ │ └── metrics_test.go
│ │ │ ├── sampleentityreceiver/
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ ├── config.schema.yaml
│ │ │ │ │ ├── generated_config.go
│ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ ├── generated_entity_metrics.go
│ │ │ │ │ ├── generated_entity_metrics_test.go
│ │ │ │ │ ├── generated_metrics.go
│ │ │ │ │ ├── generated_metrics_test.go
│ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ ├── generated_status.go
│ │ │ │ │ └── testdata/
│ │ │ │ │ └── config.yaml
│ │ │ │ └── metadata.yaml
│ │ │ ├── samplefactoryreceiver/
│ │ │ │ ├── README.md
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ ├── generated_config.go
│ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ ├── generated_logs.go
│ │ │ │ │ ├── generated_logs_test.go
│ │ │ │ │ ├── generated_metrics.go
│ │ │ │ │ ├── generated_metrics_test.go
│ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ ├── generated_status.go
│ │ │ │ │ ├── generated_telemetry.go
│ │ │ │ │ ├── generated_telemetry_test.go
│ │ │ │ │ └── testdata/
│ │ │ │ │ └── config.yaml
│ │ │ │ └── metadata.yaml
│ │ │ ├── sampleprocessor/
│ │ │ │ ├── README.md
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ ├── config.schema.yaml
│ │ │ │ │ ├── generated_config.go
│ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ ├── generated_status.go
│ │ │ │ │ └── testdata/
│ │ │ │ │ └── config.yaml
│ │ │ │ └── metadata.yaml
│ │ │ ├── samplereceiver/
│ │ │ │ ├── README.md
│ │ │ │ ├── config.schema.json
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_config.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ ├── metadata/
│ │ │ │ │ │ ├── config.schema.yaml
│ │ │ │ │ │ ├── generated_config.go
│ │ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ │ ├── generated_feature_gates.go
│ │ │ │ │ │ ├── generated_logs.go
│ │ │ │ │ │ ├── generated_logs_test.go
│ │ │ │ │ │ ├── generated_metrics.go
│ │ │ │ │ │ ├── generated_metrics_test.go
│ │ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ │ ├── generated_status.go
│ │ │ │ │ │ ├── generated_telemetry.go
│ │ │ │ │ │ ├── generated_telemetry_test.go
│ │ │ │ │ │ └── testdata/
│ │ │ │ │ │ └── config.yaml
│ │ │ │ │ └── metadatatest/
│ │ │ │ │ ├── generated_telemetrytest.go
│ │ │ │ │ └── generated_telemetrytest_test.go
│ │ │ │ ├── metadata.yaml
│ │ │ │ └── metrics_test.go
│ │ │ ├── samplescraper/
│ │ │ │ ├── README.md
│ │ │ │ ├── config.schema.json
│ │ │ │ ├── doc.go
│ │ │ │ ├── documentation.md
│ │ │ │ ├── factory.go
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_config.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ ├── config.schema.yaml
│ │ │ │ │ ├── generated_config.go
│ │ │ │ │ ├── generated_config_test.go
│ │ │ │ │ ├── generated_logs.go
│ │ │ │ │ ├── generated_logs_test.go
│ │ │ │ │ ├── generated_metrics.go
│ │ │ │ │ ├── generated_metrics_test.go
│ │ │ │ │ ├── generated_resource.go
│ │ │ │ │ ├── generated_resource_test.go
│ │ │ │ │ ├── generated_status.go
│ │ │ │ │ └── testdata/
│ │ │ │ │ └── config.yaml
│ │ │ │ └── metadata.yaml
│ │ │ ├── status.go
│ │ │ ├── status_test.go
│ │ │ ├── telemetry.go
│ │ │ ├── templates/
│ │ │ │ ├── component_test.go.tmpl
│ │ │ │ ├── config.go.tmpl
│ │ │ │ ├── config.schema.yaml.tmpl
│ │ │ │ ├── config_from_cfggen.go.tmpl
│ │ │ │ ├── config_test.go.tmpl
│ │ │ │ ├── documentation.md.tmpl
│ │ │ │ ├── entity_metrics.go.tmpl
│ │ │ │ ├── entity_metrics_test.go.tmpl
│ │ │ │ ├── feature_gates.go.tmpl
│ │ │ │ ├── feature_gates.md.tmpl
│ │ │ │ ├── helper.tmpl
│ │ │ │ ├── logs.go.tmpl
│ │ │ │ ├── logs_test.go.tmpl
│ │ │ │ ├── metrics.go.tmpl
│ │ │ │ ├── metrics_test.go.tmpl
│ │ │ │ ├── package_test.go.tmpl
│ │ │ │ ├── readme.md.tmpl
│ │ │ │ ├── resource.go.tmpl
│ │ │ │ ├── resource_test.go.tmpl
│ │ │ │ ├── status.go.tmpl
│ │ │ │ ├── telemetry.go.tmpl
│ │ │ │ ├── telemetry_test.go.tmpl
│ │ │ │ ├── telemetrytest.go.tmpl
│ │ │ │ ├── telemetrytest_test.go.tmpl
│ │ │ │ └── testdata/
│ │ │ │ └── config.yaml.tmpl
│ │ │ ├── testdata/
│ │ │ │ ├── async_metric.yaml
│ │ │ │ ├── basic_connector.yaml
│ │ │ │ ├── basic_pkg.yaml
│ │ │ │ ├── basic_receiver.yaml
│ │ │ │ ├── custom_generated_package_name.yaml
│ │ │ │ ├── deprecation_info_invalid_date.yaml
│ │ │ │ ├── display_name.yaml
│ │ │ │ ├── documentation.md
│ │ │ │ ├── empty.go
│ │ │ │ ├── empty_test_config.yaml
│ │ │ │ ├── entity_duplicate_attributes.yaml
│ │ │ │ ├── entity_duplicate_types.yaml
│ │ │ │ ├── entity_empty_id_attributes.yaml
│ │ │ │ ├── entity_event_missing_association.yaml
│ │ │ │ ├── entity_metric_missing_association.yaml
│ │ │ │ ├── entity_metrics_events_valid.yaml
│ │ │ │ ├── entity_relationships_bidirectional.yaml
│ │ │ │ ├── entity_relationships_empty_target.yaml
│ │ │ │ ├── entity_relationships_empty_type.yaml
│ │ │ │ ├── entity_relationships_undefined_target.yaml
│ │ │ │ ├── entity_relationships_valid.yaml
│ │ │ │ ├── entity_single_metric_missing_association.yaml
│ │ │ │ ├── entity_undefined_description_attribute.yaml
│ │ │ │ ├── entity_undefined_id_attribute.yaml
│ │ │ │ ├── entity_undefined_reference.yaml
│ │ │ │ ├── entity_valid.yaml
│ │ │ │ ├── events/
│ │ │ │ │ ├── basic_event.yaml
│ │ │ │ │ ├── empty.go
│ │ │ │ │ ├── no_description.yaml
│ │ │ │ │ ├── no_enabled.yaml
│ │ │ │ │ └── unknown_attribute.yaml
│ │ │ │ ├── feature_gates.yaml
│ │ │ │ ├── generated_component_test.go
│ │ │ │ ├── generated_package_name.yaml
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── internal/
│ │ │ │ │ └── metadata/
│ │ │ │ │ └── generated_status.go
│ │ │ │ ├── invalid.yaml
│ │ │ │ ├── invalid_aggregation.yaml
│ │ │ │ ├── invalid_class.yaml
│ │ │ │ ├── invalid_config.yaml
│ │ │ │ ├── invalid_entity_stability.yaml
│ │ │ │ ├── invalid_input_type.yaml
│ │ │ │ ├── invalid_metric_semconvref.yaml
│ │ │ │ ├── invalid_metric_stability.yaml
│ │ │ │ ├── invalid_stability.yaml
│ │ │ │ ├── invalid_stability_component.yaml
│ │ │ │ ├── invalid_telemetry_missing_value_type_for_histogram.yaml
│ │ │ │ ├── invalid_type_attr.yaml
│ │ │ │ ├── invalid_type_rattr.yaml
│ │ │ │ ├── metrics_and_type.yaml
│ │ │ │ ├── no_aggregation.yaml
│ │ │ │ ├── no_class.yaml
│ │ │ │ ├── no_deprecation_date_info.yaml
│ │ │ │ ├── no_deprecation_info.yaml
│ │ │ │ ├── no_deprecation_migration_info.yaml
│ │ │ │ ├── no_description_attr.yaml
│ │ │ │ ├── no_description_rattr.yaml
│ │ │ │ ├── no_display_name.yaml
│ │ │ │ ├── no_enabled.yaml
│ │ │ │ ├── no_metric_description.yaml
│ │ │ │ ├── no_metric_stability.yaml
│ │ │ │ ├── no_metric_type.yaml
│ │ │ │ ├── no_metric_unit.yaml
│ │ │ │ ├── no_monotonic.yaml
│ │ │ │ ├── no_stability.yaml
│ │ │ │ ├── no_stability_component.yaml
│ │ │ │ ├── no_status.yaml
│ │ │ │ ├── no_type.yaml
│ │ │ │ ├── no_type_attr.yaml
│ │ │ │ ├── no_type_rattr.yaml
│ │ │ │ ├── no_value_type.yaml
│ │ │ │ ├── parent.yaml
│ │ │ │ ├── readme_with_cmd_class.md
│ │ │ │ ├── readme_with_multiple_signals.md
│ │ │ │ ├── readme_with_multiple_signals_and_deprecation.md
│ │ │ │ ├── readme_with_status.md
│ │ │ │ ├── readme_with_status_codeowners.md
│ │ │ │ ├── readme_with_status_codeowners_and_emeritus.md
│ │ │ │ ├── readme_with_status_codeowners_and_seeking_new.md
│ │ │ │ ├── readme_with_status_converter.md
│ │ │ │ ├── readme_with_status_extension.md
│ │ │ │ ├── readme_with_status_provider.md
│ │ │ │ ├── readme_with_warnings.md
│ │ │ │ ├── readme_without_status.md
│ │ │ │ ├── resource_attributes_only.yaml
│ │ │ │ ├── status_only.yaml
│ │ │ │ ├── two_metric_types.yaml
│ │ │ │ ├── twopackages.yaml
│ │ │ │ ├── undeprecated_with_deprecation.yaml
│ │ │ │ ├── unknown_metric_attribute.yaml
│ │ │ │ ├── unknown_value_type.yaml
│ │ │ │ ├── unsorted_rattr.yaml
│ │ │ │ ├── unused_attribute.yaml
│ │ │ │ ├── with_conditional_attribute.yaml
│ │ │ │ ├── with_config.yaml
│ │ │ │ ├── with_description.yaml
│ │ │ │ ├── with_goleak_ignores.yaml
│ │ │ │ ├── with_goleak_setup.yaml
│ │ │ │ ├── with_goleak_skip.yaml
│ │ │ │ ├── with_goleak_teardown.yaml
│ │ │ │ ├── with_invalid_config_ref.yaml
│ │ │ │ ├── with_stability_from.yaml
│ │ │ │ ├── with_telemetry.yaml
│ │ │ │ ├── with_tests_connector.yaml
│ │ │ │ ├── with_tests_exporter.yaml
│ │ │ │ ├── with_tests_extension.yaml
│ │ │ │ ├── with_tests_processor.yaml
│ │ │ │ ├── with_tests_profiles_connector.yaml
│ │ │ │ ├── with_tests_receiver.yaml
│ │ │ │ └── with_underscore_in_semconv_ref_anchor_tag.yaml
│ │ │ └── tests.go
│ │ ├── main.go
│ │ ├── metadata-schema.yaml
│ │ ├── metadata.yaml
│ │ └── third_party/
│ │ └── golint/
│ │ ├── LICENSE
│ │ └── golint.go
│ └── otelcorecol/
│ ├── Makefile
│ ├── README.md
│ ├── builder-config.yaml
│ ├── components.go
│ ├── go.mod
│ ├── go.sum
│ ├── main.go
│ ├── main_others.go
│ └── main_windows.go
├── component/
│ ├── Makefile
│ ├── build_info.go
│ ├── component.go
│ ├── component_test.go
│ ├── componentstatus/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── instance.go
│ │ ├── instance_test.go
│ │ ├── metadata.yaml
│ │ ├── status.go
│ │ └── status_test.go
│ ├── componenttest/
│ │ ├── Makefile
│ │ ├── configtest.go
│ │ ├── configtest_test.go
│ │ ├── doc.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop_host.go
│ │ ├── nop_host_test.go
│ │ ├── nop_telemetry.go
│ │ ├── nop_telemetry_test.go
│ │ ├── package_test.go
│ │ ├── telemetry.go
│ │ └── telemetry_test.go
│ ├── config.go
│ ├── doc.go
│ ├── go.mod
│ ├── go.sum
│ ├── host.go
│ ├── identifiable.go
│ ├── identifiable_example_test.go
│ ├── identifiable_test.go
│ ├── metadata.yaml
│ ├── package_test.go
│ └── telemetry.go
├── config/
│ ├── configauth/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.schema.yaml
│ │ ├── configauth.go
│ │ ├── configauth_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ ├── configcompression/
│ │ ├── Makefile
│ │ ├── compressiontype.go
│ │ ├── compressiontype_test.go
│ │ ├── config.schema.yaml
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ ├── configgrpc/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── client_middleware_test.go
│ │ ├── config.schema.yaml
│ │ ├── configgrpc.go
│ │ ├── configgrpc_benchmark_test.go
│ │ ├── configgrpc_test.go
│ │ ├── doc.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── gzip.go
│ │ ├── metadata.yaml
│ │ ├── package_test.go
│ │ ├── server_middleware_test.go
│ │ ├── testdata/
│ │ │ ├── ca.crt
│ │ │ ├── client.crt
│ │ │ ├── client.key
│ │ │ ├── server.crt
│ │ │ └── server.key
│ │ ├── wrappedstream.go
│ │ └── wrappedstream_test.go
│ ├── confighttp/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── client_middleware_test.go
│ │ ├── client_test.go
│ │ ├── clientinfohandler.go
│ │ ├── clientinfohandler_test.go
│ │ ├── compress_readcloser.go
│ │ ├── compress_readcloser_test.go
│ │ ├── compression.go
│ │ ├── compression_test.go
│ │ ├── compressor.go
│ │ ├── compressor_test.go
│ │ ├── config.schema.yaml
│ │ ├── confighttp_example_test.go
│ │ ├── doc.go
│ │ ├── documentation.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ └── generated_feature_gates.go
│ │ │ └── options.go
│ │ ├── metadata.yaml
│ │ ├── server.go
│ │ ├── server_middleware_test.go
│ │ ├── server_test.go
│ │ ├── testdata/
│ │ │ ├── ca.crt
│ │ │ ├── client.crt
│ │ │ ├── client.key
│ │ │ ├── config.yaml
│ │ │ ├── middlewares.yaml
│ │ │ ├── server.crt
│ │ │ └── server.key
│ │ └── xconfighttp/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── options.go
│ │ └── options_test.go
│ ├── configmiddleware/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.schema.yaml
│ │ ├── configmiddleware.go
│ │ ├── configmiddleware_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ └── metadata.yaml
│ ├── confignet/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.schema.yaml
│ │ ├── confignet.go
│ │ ├── confignet_test.go
│ │ ├── doc.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ ├── configopaque/
│ │ ├── Makefile
│ │ ├── config.schema.yaml
│ │ ├── doc.go
│ │ ├── doc_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── maplist.go
│ │ ├── maplist_test.go
│ │ ├── metadata.yaml
│ │ ├── opaque.go
│ │ ├── opaque_test.go
│ │ └── package_test.go
│ ├── configoptional/
│ │ ├── Makefile
│ │ ├── documentation.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_feature_gates.go
│ │ ├── metadata.yaml
│ │ ├── optional.go
│ │ ├── optional_test.go
│ │ └── testdata/
│ │ ├── validate_explicit.yaml
│ │ ├── validate_implicit.yaml
│ │ ├── validate_invalid.yaml
│ │ └── validate_no_default.yaml
│ ├── configretry/
│ │ ├── Makefile
│ │ ├── backoff.go
│ │ ├── backoff_test.go
│ │ ├── config.schema.yaml
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ ├── configtelemetry/
│ │ ├── Makefile
│ │ ├── config.schema.yaml
│ │ ├── configtelemetry.go
│ │ ├── configtelemetry_test.go
│ │ ├── doc.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ └── configtls/
│ ├── Makefile
│ ├── README.md
│ ├── clientcasfilereloader.go
│ ├── clientcasfilereloader_test.go
│ ├── config.schema.yaml
│ ├── configtls.go
│ ├── configtls_test.go
│ ├── curves_fips.go
│ ├── curves_nofips.go
│ ├── doc.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── testdata/
│ │ ├── ca-1.crt
│ │ ├── ca-2.crt
│ │ ├── client-1.crt
│ │ ├── client-1.key
│ │ ├── client-2.crt
│ │ ├── client-2.key
│ │ ├── server-1.crt
│ │ ├── server-1.key
│ │ ├── server-2.crt
│ │ ├── server-2.key
│ │ └── testCA-bad.txt
│ ├── tpm.go
│ ├── tpm_open_linux.go
│ ├── tpm_open_others.go
│ ├── tpm_open_windows.go
│ └── tpm_test.go
├── confmap/
│ ├── Makefile
│ ├── README.md
│ ├── confmap.go
│ ├── confmaptest/
│ │ ├── configtest.go
│ │ ├── configtest_test.go
│ │ ├── doc.go
│ │ ├── package_test.go
│ │ ├── provider_settings.go
│ │ └── testdata/
│ │ ├── empty-slice.yaml
│ │ ├── invalid.yaml
│ │ └── simple.yaml
│ ├── converter.go
│ ├── doc_test.go
│ ├── documentation.md
│ ├── example_provider_and_converter_test.go
│ ├── expand.go
│ ├── expand_test.go
│ ├── factory.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ ├── conf.go
│ │ ├── confmap.go
│ │ ├── confmap_test.go
│ │ ├── decoder.go
│ │ ├── e2e/
│ │ │ ├── Makefile
│ │ │ ├── expand_test.go
│ │ │ ├── fuzz_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── maplist_expanded_test.go
│ │ │ ├── nil_test.go
│ │ │ ├── testdata/
│ │ │ │ ├── expand-escaped-env.yaml
│ │ │ │ ├── indirect-slice-env-var-main.yaml
│ │ │ │ ├── indirect-slice-env-var-pipelines.yaml
│ │ │ │ ├── issue-10787-main.yaml
│ │ │ │ ├── issue-10787-snippet.yaml
│ │ │ │ ├── subsection_empty_map.yaml
│ │ │ │ ├── subsection_null.yaml
│ │ │ │ ├── subsection_set_but_empty.yaml
│ │ │ │ ├── subsection_unset.yaml
│ │ │ │ ├── subsection_unset_empty_map.yaml
│ │ │ │ ├── types_complex.yaml
│ │ │ │ ├── types_expand.yaml
│ │ │ │ ├── types_expand_inline.yaml
│ │ │ │ ├── types_map.yaml
│ │ │ │ └── types_slice.yaml
│ │ │ └── types_test.go
│ │ ├── encoder.go
│ │ ├── envvar/
│ │ │ └── pattern.go
│ │ ├── expand.go
│ │ ├── mapstructure/
│ │ │ ├── encoder.go
│ │ │ ├── encoder_test.go
│ │ │ └── package_test.go
│ │ ├── marshaloption.go
│ │ ├── merge.go
│ │ ├── metadata/
│ │ │ └── generated_feature_gates.go
│ │ ├── testdata/
│ │ │ ├── basic_types.yaml
│ │ │ ├── config.yaml
│ │ │ ├── config2.yaml
│ │ │ └── embedded_keys.yaml
│ │ ├── third_party/
│ │ │ └── composehook/
│ │ │ └── compose_hook.go
│ │ └── unmarshaloption.go
│ ├── metadata.yaml
│ ├── provider/
│ │ ├── envprovider/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── generated_package_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── provider.go
│ │ │ └── provider_test.go
│ │ ├── fileprovider/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── generated_package_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── provider.go
│ │ │ ├── provider_test.go
│ │ │ └── testdata/
│ │ │ ├── default-config.yaml
│ │ │ └── invalid-yaml.yaml
│ │ ├── httpprovider/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── generated_package_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── provider.go
│ │ │ └── provider_test.go
│ │ ├── httpsprovider/
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── generated_package_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── provider.go
│ │ │ └── provider_test.go
│ │ ├── internal/
│ │ │ ├── configurablehttpprovider/
│ │ │ │ ├── package_test.go
│ │ │ │ ├── provider.go
│ │ │ │ ├── provider_test.go
│ │ │ │ └── testdata/
│ │ │ │ └── otel-config.yaml
│ │ │ └── package_test.go
│ │ └── yamlprovider/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── provider.go
│ │ └── provider_test.go
│ ├── provider.go
│ ├── provider_test.go
│ ├── resolver.go
│ ├── resolver_test.go
│ ├── testdata/
│ │ ├── config.yaml
│ │ ├── expand-with-all-env.yaml
│ │ ├── expand-with-no-env.yaml
│ │ ├── expand-with-partial-env.yaml
│ │ ├── merge-append-scenarios-featuregate-disabled.yaml
│ │ └── merge-append-scenarios.yaml
│ └── xconfmap/
│ ├── Makefile
│ ├── config.go
│ ├── config_test.go
│ ├── confmap.go
│ ├── example_test.go
│ ├── go.mod
│ ├── go.sum
│ └── metadata.yaml
├── connector/
│ ├── Makefile
│ ├── README.md
│ ├── connector.go
│ ├── connector_test.go
│ ├── connectortest/
│ │ ├── Makefile
│ │ ├── connector.go
│ │ ├── connector_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── package_test.go
│ ├── forwardconnector/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── doc.go
│ │ ├── forward.go
│ │ ├── forward_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_status.go
│ │ └── metadata.yaml
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ ├── factory.go
│ │ └── router.go
│ ├── logs_router.go
│ ├── logs_router_test.go
│ ├── metadata.yaml
│ ├── metrics_router.go
│ ├── metrics_router_test.go
│ ├── package_test.go
│ ├── traces_router.go
│ ├── traces_router_test.go
│ └── xconnector/
│ ├── Makefile
│ ├── connector.go
│ ├── connector_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── profiles_router.go
│ └── profiles_router_test.go
├── consumer/
│ ├── Makefile
│ ├── consumer.go
│ ├── consumererror/
│ │ ├── Makefile
│ │ ├── doc.go
│ │ ├── downstream.go
│ │ ├── downstream_test.go
│ │ ├── error.go
│ │ ├── error_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── retryable.go
│ │ │ └── statusconversion/
│ │ │ ├── conversion.go
│ │ │ └── conversion_test.go
│ │ ├── metadata.yaml
│ │ ├── package_test.go
│ │ ├── permanent.go
│ │ ├── permanent_test.go
│ │ ├── signalerrors.go
│ │ ├── signalerrors_test.go
│ │ └── xconsumererror/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── signalerrors.go
│ │ └── signalerrors_test.go
│ ├── consumertest/
│ │ ├── Makefile
│ │ ├── consumer.go
│ │ ├── doc.go
│ │ ├── err.go
│ │ ├── err_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop.go
│ │ ├── nop_test.go
│ │ ├── package_test.go
│ │ ├── sink.go
│ │ └── sink_test.go
│ ├── doc.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── consumer.go
│ ├── logs.go
│ ├── logs_test.go
│ ├── metadata.yaml
│ ├── metrics.go
│ ├── metrics_test.go
│ ├── package_test.go
│ ├── traces.go
│ ├── traces_test.go
│ └── xconsumer/
│ ├── Makefile
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── profiles.go
│ └── profiles_test.go
├── distributions.yaml
├── docs/
│ ├── README.md
│ ├── coding-guidelines.md
│ ├── component-stability.md
│ ├── component-status.md
│ ├── ga-roadmap.md
│ ├── internal-architecture.md
│ ├── observability.md
│ ├── platform-support.md
│ ├── release.md
│ ├── rfcs/
│ │ ├── README.md
│ │ ├── component-configuration-schema-roadmap.md
│ │ ├── component-status-reporting.md
│ │ ├── component-universal-telemetry.md
│ │ ├── configuration-merging-strategy.md
│ │ ├── configuring-confmap-providers.md
│ │ ├── env-vars.md
│ │ ├── experimental-profiling.md
│ │ ├── logging-before-config-resolution.md
│ │ ├── metadata.yaml
│ │ ├── optional-config-type.md
│ │ ├── processing.md
│ │ ├── release-approvers.md
│ │ └── semconv-feature-gates.md
│ ├── scraping-receivers.md
│ ├── security-best-practices.md
│ ├── standard-warnings.md
│ └── vision.md
├── examples/
│ ├── README.md
│ ├── k8s/
│ │ └── otel-config.yaml
│ └── local/
│ └── otel-config.yaml
├── exporter/
│ ├── Makefile
│ ├── README.md
│ ├── debugexporter/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── doc.go
│ │ ├── exporter.go
│ │ ├── exporter_test.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── generating-example-output.md
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ └── generated_status.go
│ │ │ ├── normal/
│ │ │ │ ├── common.go
│ │ │ │ ├── logs.go
│ │ │ │ ├── logs_test.go
│ │ │ │ ├── metrics.go
│ │ │ │ ├── metrics_test.go
│ │ │ │ ├── profiles.go
│ │ │ │ ├── profiles_test.go
│ │ │ │ ├── traces.go
│ │ │ │ └── traces_test.go
│ │ │ └── otlptext/
│ │ │ ├── databuffer.go
│ │ │ ├── databuffer_test.go
│ │ │ ├── known_sync_error.go
│ │ │ ├── known_sync_error_other.go
│ │ │ ├── known_sync_error_windows.go
│ │ │ ├── logs.go
│ │ │ ├── logs_test.go
│ │ │ ├── metrics.go
│ │ │ ├── metrics_test.go
│ │ │ ├── package_test.go
│ │ │ ├── profiles.go
│ │ │ ├── profiles_test.go
│ │ │ ├── sync.go
│ │ │ ├── test_helpers.go
│ │ │ ├── testdata/
│ │ │ │ ├── logs/
│ │ │ │ │ ├── embedded_maps.out
│ │ │ │ │ ├── empty.out
│ │ │ │ │ ├── log_with_event_name.out
│ │ │ │ │ ├── logs_with_entity_refs.out
│ │ │ │ │ ├── one_record.out
│ │ │ │ │ └── two_records.out
│ │ │ │ ├── metrics/
│ │ │ │ │ ├── empty.out
│ │ │ │ │ ├── invalid_metric_type.out
│ │ │ │ │ ├── metrics_with_all_types.out
│ │ │ │ │ ├── metrics_with_entity_refs.out
│ │ │ │ │ ├── metrics_with_metadata.out
│ │ │ │ │ └── two_metrics.out
│ │ │ │ ├── profiles/
│ │ │ │ │ ├── empty.out
│ │ │ │ │ ├── profiles_with_entity_refs.out
│ │ │ │ │ └── two_profiles.out
│ │ │ │ └── traces/
│ │ │ │ ├── empty.out
│ │ │ │ ├── traces_with_entity_refs.out
│ │ │ │ └── two_spans.out
│ │ │ ├── traces.go
│ │ │ └── traces_test.go
│ │ ├── metadata.yaml
│ │ └── testdata/
│ │ ├── config_output_paths.yaml
│ │ ├── config_output_paths_empty.yaml
│ │ ├── config_verbosity.yaml
│ │ └── config_verbosity_typo.yaml
│ ├── example_test.go
│ ├── exporter.go
│ ├── exporter_test.go
│ ├── exporterhelper/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── common.go
│ │ ├── config.schema.yaml
│ │ ├── constants.go
│ │ ├── doc.go
│ │ ├── documentation.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── base_exporter.go
│ │ │ ├── base_exporter_test.go
│ │ │ ├── config.schema.yaml
│ │ │ ├── constants.go
│ │ │ ├── experr/
│ │ │ │ ├── err.go
│ │ │ │ └── err_test.go
│ │ │ ├── hosttest/
│ │ │ │ ├── hosttest.go
│ │ │ │ └── hosttest_test.go
│ │ │ ├── metadata/
│ │ │ │ ├── generated_feature_gates.go
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ ├── metadatatest/
│ │ │ │ ├── generated_telemetrytest.go
│ │ │ │ └── generated_telemetrytest_test.go
│ │ │ ├── new_request.go
│ │ │ ├── new_request_test.go
│ │ │ ├── obs_report_sender.go
│ │ │ ├── obs_report_sender_test.go
│ │ │ ├── oteltest/
│ │ │ │ └── tracetest.go
│ │ │ ├── package_test.go
│ │ │ ├── queue/
│ │ │ │ ├── async_queue.go
│ │ │ │ ├── async_queue_test.go
│ │ │ │ ├── cond.go
│ │ │ │ ├── fg.go
│ │ │ │ ├── memory_queue.go
│ │ │ │ ├── memory_queue_test.go
│ │ │ │ ├── meta.pb.go
│ │ │ │ ├── meta.proto
│ │ │ │ ├── obs_queue.go
│ │ │ │ ├── obs_queue_test.go
│ │ │ │ ├── persistent_queue.go
│ │ │ │ ├── persistent_queue_test.go
│ │ │ │ └── queue.go
│ │ │ ├── queue_sender.go
│ │ │ ├── queue_sender_test.go
│ │ │ ├── queuebatch/
│ │ │ │ ├── batch_context.go
│ │ │ │ ├── batch_context_test.go
│ │ │ │ ├── batcher.go
│ │ │ │ ├── config.go
│ │ │ │ ├── config.schema.yaml
│ │ │ │ ├── config_test.go
│ │ │ │ ├── disabled_batcher.go
│ │ │ │ ├── disabled_batcher_test.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── encoding.go
│ │ │ │ ├── generated_package_test.go
│ │ │ │ ├── logs.go
│ │ │ │ ├── logs_batch.go
│ │ │ │ ├── logs_batch_test.go
│ │ │ │ ├── logs_test.go
│ │ │ │ ├── metadata.yaml
│ │ │ │ ├── metadata_partitioner.go
│ │ │ │ ├── metadata_partitioner_test.go
│ │ │ │ ├── metrics.go
│ │ │ │ ├── metrics_batch.go
│ │ │ │ ├── metrics_batch_test.go
│ │ │ │ ├── metrics_test.go
│ │ │ │ ├── multi_batcher.go
│ │ │ │ ├── multi_batcher_test.go
│ │ │ │ ├── partition_batcher.go
│ │ │ │ ├── partition_batcher_test.go
│ │ │ │ ├── partitioner.go
│ │ │ │ ├── partitioner_test.go
│ │ │ │ ├── queue_batch.go
│ │ │ │ ├── queue_batch_test.go
│ │ │ │ ├── testdata/
│ │ │ │ │ ├── batch_set_empty_explicit_sizer.yaml
│ │ │ │ │ ├── batch_set_empty_no_explicit_sizer.yaml
│ │ │ │ │ ├── batch_set_nonempty_explicit_sizer.yaml
│ │ │ │ │ ├── batch_set_nonempty_no_explicit_sizer.yaml
│ │ │ │ │ └── batch_unset.yaml
│ │ │ │ ├── traces.go
│ │ │ │ ├── traces_batch.go
│ │ │ │ ├── traces_batch_test.go
│ │ │ │ └── traces_test.go
│ │ │ ├── request/
│ │ │ │ ├── request.go
│ │ │ │ ├── sizer.go
│ │ │ │ └── sizer_test.go
│ │ │ ├── requesttest/
│ │ │ │ ├── request.go
│ │ │ │ └── sink.go
│ │ │ ├── retry_sender.go
│ │ │ ├── retry_sender_test.go
│ │ │ ├── sender/
│ │ │ │ ├── sender.go
│ │ │ │ └── sender_test.go
│ │ │ ├── sendertest/
│ │ │ │ ├── sendertest.go
│ │ │ │ └── sendertest_test.go
│ │ │ ├── sizer/
│ │ │ │ ├── logs_sizer.go
│ │ │ │ ├── logs_sizer_test.go
│ │ │ │ ├── metrics_sizer.go
│ │ │ │ ├── metrics_sizer_test.go
│ │ │ │ ├── profiles_sizer.go
│ │ │ │ ├── proto_delta_sizer.go
│ │ │ │ ├── proto_delta_sizer_test.go
│ │ │ │ ├── traces_sizer.go
│ │ │ │ └── traces_sizer_test.go
│ │ │ ├── storagetest/
│ │ │ │ └── mock_storage.go
│ │ │ ├── timeout_sender.go
│ │ │ └── timeout_sender_test.go
│ │ ├── logs.go
│ │ ├── logs_test.go
│ │ ├── metadata.yaml
│ │ ├── metrics.go
│ │ ├── metrics_test.go
│ │ ├── queue_batch.go
│ │ ├── request.go
│ │ ├── retry_sender.go
│ │ ├── timeout_sender.go
│ │ ├── traces.go
│ │ ├── traces_test.go
│ │ └── xexporterhelper/
│ │ ├── Makefile
│ │ ├── constants.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── new_request.go
│ │ ├── profiles.go
│ │ ├── profiles_batch.go
│ │ ├── profiles_batch_test.go
│ │ ├── profiles_test.go
│ │ └── request.go
│ ├── exportertest/
│ │ ├── Makefile
│ │ ├── contract_checker.go
│ │ ├── contract_checker_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── mock_consumer.go
│ │ ├── mock_consumer_test.go
│ │ ├── nop_exporter.go
│ │ └── nop_exporter_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── experr/
│ │ └── err.go
│ ├── metadata.yaml
│ ├── nopexporter/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── doc.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_status.go
│ │ ├── metadata.yaml
│ │ ├── nop_exporter.go
│ │ └── nop_exporter_test.go
│ ├── otlpexporter/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── cfg-schema.yaml
│ │ ├── config.go
│ │ ├── config.yaml
│ │ ├── config_test.go
│ │ ├── doc.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_status.go
│ │ ├── metadata.yaml
│ │ ├── otlp.go
│ │ ├── otlp_test.go
│ │ └── testdata/
│ │ ├── config.yaml
│ │ ├── default-batch.yaml
│ │ ├── invalid_configs.yaml
│ │ ├── test_cert.pem
│ │ └── test_key.pem
│ ├── otlphttpexporter/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── doc.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_status.go
│ │ ├── metadata.yaml
│ │ ├── otlp.go
│ │ ├── otlp_test.go
│ │ └── testdata/
│ │ ├── bad_empty_config.yaml
│ │ ├── bad_invalid_encoding.yaml
│ │ ├── config.yaml
│ │ └── test_cert.pem
│ ├── package_test.go
│ └── xexporter/
│ ├── Makefile
│ ├── exporter.go
│ ├── exporter_test.go
│ ├── go.mod
│ ├── go.sum
│ └── metadata.yaml
├── extension/
│ ├── Makefile
│ ├── README.md
│ ├── extension.go
│ ├── extension_test.go
│ ├── extensionauth/
│ │ ├── Makefile
│ │ ├── client.go
│ │ ├── client_test.go
│ │ ├── doc.go
│ │ ├── extensionauthtest/
│ │ │ ├── Makefile
│ │ │ ├── err.go
│ │ │ ├── err_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── nop_client.go
│ │ │ ├── nop_client_test.go
│ │ │ ├── nop_server.go
│ │ │ └── package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── package_test.go
│ │ ├── server.go
│ │ └── server_test.go
│ ├── extensioncapabilities/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── interfaces.go
│ │ └── metadata.yaml
│ ├── extensionmiddleware/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── client_test.go
│ │ ├── extensionmiddlewaretest/
│ │ │ ├── Makefile
│ │ │ ├── err.go
│ │ │ ├── err_test.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── metadata.yaml
│ │ │ ├── nop.go
│ │ │ └── nop_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── server.go
│ │ └── server_test.go
│ ├── extensiontest/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop_extension.go
│ │ └── nop_extension_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── memorylimiterextension/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ └── generated_status.go
│ │ ├── memorylimiter.go
│ │ ├── memorylimiter_test.go
│ │ ├── metadata.yaml
│ │ └── testdata/
│ │ └── config.yaml
│ ├── metadata.yaml
│ ├── package_test.go
│ ├── xextension/
│ │ ├── Makefile
│ │ ├── extension.go
│ │ ├── extension_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── storage/
│ │ ├── README.md
│ │ ├── doc.go
│ │ ├── metadata.yaml
│ │ ├── nop_client.go
│ │ └── storage.go
│ └── zpagesextension/
│ ├── Makefile
│ ├── README.md
│ ├── config.go
│ ├── config_test.go
│ ├── doc.go
│ ├── factory.go
│ ├── factory_test.go
│ ├── generated_component_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── metadata/
│ │ └── generated_status.go
│ ├── metadata.yaml
│ ├── testdata/
│ │ └── config.yaml
│ ├── zpagesextension.go
│ └── zpagesextension_test.go
├── featuregate/
│ ├── Makefile
│ ├── README.md
│ ├── examples_test.go
│ ├── flag.go
│ ├── flag_test.go
│ ├── gate.go
│ ├── gate_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── package_test.go
│ ├── registry.go
│ ├── registry_test.go
│ ├── stage.go
│ └── stage_test.go
├── filter/
│ ├── Makefile
│ ├── config.go
│ ├── config.schema.yaml
│ ├── config_test.go
│ ├── doc.go
│ ├── filter.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ └── testdata/
│ ├── config.yaml
│ └── config_invalid.yaml
├── go.mod
├── go.sum
├── internal/
│ ├── buildscripts/
│ │ ├── compare-apidiff.sh
│ │ ├── gen-apidiff.sh
│ │ └── gen-certs.sh
│ ├── cmd/
│ │ └── pdatagen/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── pdata/
│ │ │ │ ├── base_slices.go
│ │ │ │ ├── base_struct.go
│ │ │ │ ├── field.go
│ │ │ │ ├── message_field.go
│ │ │ │ ├── one_of_field.go
│ │ │ │ ├── one_of_message_value.go
│ │ │ │ ├── one_of_primitive_value.go
│ │ │ │ ├── optional_primitive_field.go
│ │ │ │ ├── packages.go
│ │ │ │ ├── pcommon_package.go
│ │ │ │ ├── plog_package.go
│ │ │ │ ├── plogotlp_package.go
│ │ │ │ ├── pmetric_package.go
│ │ │ │ ├── pmetricotlp_package.go
│ │ │ │ ├── pprofile_package.go
│ │ │ │ ├── pprofileotlp_package.go
│ │ │ │ ├── primitive_field.go
│ │ │ │ ├── primitive_slice_structs.go
│ │ │ │ ├── ptrace_package.go
│ │ │ │ ├── ptraceotlp_package.go
│ │ │ │ ├── request_package.go
│ │ │ │ ├── slice_field.go
│ │ │ │ ├── templates/
│ │ │ │ │ ├── message.go.tmpl
│ │ │ │ │ ├── message_internal.go.tmpl
│ │ │ │ │ ├── message_test.go.tmpl
│ │ │ │ │ ├── primitive_slice.go.tmpl
│ │ │ │ │ ├── primitive_slice_internal.go.tmpl
│ │ │ │ │ ├── primitive_slice_test.go.tmpl
│ │ │ │ │ ├── slice.go.tmpl
│ │ │ │ │ ├── slice_internal.go.tmpl
│ │ │ │ │ └── slice_test.go.tmpl
│ │ │ │ ├── templates.go
│ │ │ │ ├── typed_field.go
│ │ │ │ └── xpdata_entity_package.go
│ │ │ ├── proto/
│ │ │ │ ├── copy.go
│ │ │ │ ├── delete.go
│ │ │ │ ├── enum.go
│ │ │ │ ├── field.go
│ │ │ │ ├── json_marshal.go
│ │ │ │ ├── json_unmarshal.go
│ │ │ │ ├── message.go
│ │ │ │ ├── metadata.go
│ │ │ │ ├── oneof_message.go
│ │ │ │ ├── pools.go
│ │ │ │ ├── proto.go
│ │ │ │ ├── proto_marshal.go
│ │ │ │ ├── proto_size.go
│ │ │ │ ├── proto_unmarshal.go
│ │ │ │ ├── templates/
│ │ │ │ │ ├── message.go.tmpl
│ │ │ │ │ └── message_test.go.tmpl
│ │ │ │ ├── test_encoding_values.go
│ │ │ │ └── wire_type.go
│ │ │ └── tmplutil/
│ │ │ └── template.go
│ │ └── main.go
│ ├── componentalias/
│ │ ├── Makefile
│ │ ├── alias.go
│ │ ├── alias_test.go
│ │ ├── go.mod
│ │ └── go.sum
│ ├── e2e/
│ │ ├── Makefile
│ │ ├── configauth_test.go
│ │ ├── configgrpc_test.go
│ │ ├── confighttp_test.go
│ │ ├── confignet_test.go
│ │ ├── configtls_test.go
│ │ ├── consume_contract_test.go
│ │ ├── error_propagation_test.go
│ │ ├── exporter_failure_attributes_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal_telemetry_test.go
│ │ ├── metric_stability_test.go
│ │ ├── opaque_test.go
│ │ ├── otlphttp_test.go
│ │ ├── package_test.go
│ │ ├── status_test.go
│ │ └── testdata/
│ │ ├── exporter_failure_attributes_test.yaml
│ │ ├── metric_stability_test_no_readers.yaml
│ │ └── metric_stability_test_readers.yaml
│ ├── fanoutconsumer/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── logs.go
│ │ ├── logs_test.go
│ │ ├── metrics.go
│ │ ├── metrics_test.go
│ │ ├── package_test.go
│ │ ├── profiles.go
│ │ ├── profiles_test.go
│ │ ├── traces.go
│ │ └── traces_test.go
│ ├── memorylimiter/
│ │ ├── Makefile
│ │ ├── cgroups/
│ │ │ ├── cgroup.go
│ │ │ ├── cgroup_test.go
│ │ │ ├── cgroups.go
│ │ │ ├── cgroups_test.go
│ │ │ ├── doc.go
│ │ │ ├── errors.go
│ │ │ ├── mountpoint.go
│ │ │ ├── mountpoint_test.go
│ │ │ ├── package_test.go
│ │ │ ├── subsys.go
│ │ │ ├── subsys_test.go
│ │ │ ├── testdata/
│ │ │ │ ├── cgroups/
│ │ │ │ │ ├── cpu/
│ │ │ │ │ │ ├── cpu.cfs_period_us
│ │ │ │ │ │ └── cpu.cfs_quota_us
│ │ │ │ │ ├── empty/
│ │ │ │ │ │ └── cpu.cfs_quota_us
│ │ │ │ │ ├── invalid/
│ │ │ │ │ │ └── cpu.cfs_quota_us
│ │ │ │ │ ├── memory/
│ │ │ │ │ │ └── memory.limit_in_bytes
│ │ │ │ │ ├── undefined/
│ │ │ │ │ │ ├── cpu.cfs_period_us
│ │ │ │ │ │ └── cpu.cfs_quota_us
│ │ │ │ │ ├── undefined-period/
│ │ │ │ │ │ └── cpu.cfs_quota_us
│ │ │ │ │ └── v2/
│ │ │ │ │ ├── empty/
│ │ │ │ │ │ └── memory.max
│ │ │ │ │ ├── invalid/
│ │ │ │ │ │ └── memory.max
│ │ │ │ │ ├── memory/
│ │ │ │ │ │ └── memory.max
│ │ │ │ │ └── undefined/
│ │ │ │ │ └── memory.max
│ │ │ │ └── proc/
│ │ │ │ ├── cgroups/
│ │ │ │ │ ├── cgroup
│ │ │ │ │ └── mountinfo
│ │ │ │ ├── invalid-cgroup/
│ │ │ │ │ └── cgroup
│ │ │ │ ├── invalid-mountinfo/
│ │ │ │ │ └── mountinfo
│ │ │ │ ├── untranslatable/
│ │ │ │ │ ├── cgroup
│ │ │ │ │ └── mountinfo
│ │ │ │ └── v2/
│ │ │ │ ├── cgroupv1/
│ │ │ │ │ └── mountinfo
│ │ │ │ ├── cgroupv1v2/
│ │ │ │ │ └── mountinfo
│ │ │ │ └── cgroupv2/
│ │ │ │ └── mountinfo
│ │ │ └── util_test.go
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── iruntime/
│ │ │ ├── mem_info.go
│ │ │ ├── mem_info_test.go
│ │ │ ├── package_test.go
│ │ │ ├── total_memory_linux.go
│ │ │ ├── total_memory_linux_test.go
│ │ │ ├── total_memory_other.go
│ │ │ └── total_memory_other_test.go
│ │ ├── memorylimiter.go
│ │ ├── memorylimiter_test.go
│ │ └── testdata/
│ │ ├── config.yaml
│ │ └── negative_unsigned_limits_config.yaml
│ ├── sharedcomponent/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── package_test.go
│ │ ├── sharedcomponent.go
│ │ └── sharedcomponent_test.go
│ ├── statusutil/
│ │ ├── helper.go
│ │ └── helper_test.go
│ ├── telemetry/
│ │ ├── Makefile
│ │ ├── attribute.go
│ │ ├── attribute_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── telemetry.go
│ │ └── telemetrytest/
│ │ └── mock.go
│ ├── testutil/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── benchmarks.go
│ │ ├── fips.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── package_test.go
│ │ ├── testutil.go
│ │ └── testutil_test.go
│ └── tools/
│ ├── Makefile
│ ├── go.mod
│ └── go.sum
├── otelcol/
│ ├── Makefile
│ ├── buffered_core.go
│ ├── buffered_core_test.go
│ ├── collector.go
│ ├── collector_core.go
│ ├── collector_core_test.go
│ ├── collector_test.go
│ ├── collector_windows.go
│ ├── collector_windows_service_test.go
│ ├── collector_windows_test.go
│ ├── command.go
│ ├── command_components.go
│ ├── command_components_test.go
│ ├── command_print.go
│ ├── command_print_test.go
│ ├── command_test.go
│ ├── command_validate.go
│ ├── command_validate_test.go
│ ├── config.go
│ ├── config_test.go
│ ├── configprovider.go
│ ├── configprovider_test.go
│ ├── documentation.md
│ ├── factories.go
│ ├── factories_test.go
│ ├── flags.go
│ ├── flags_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ ├── configunmarshaler/
│ │ │ ├── configs.go
│ │ │ ├── configs_test.go
│ │ │ └── package_test.go
│ │ ├── grpclog/
│ │ │ ├── logger.go
│ │ │ ├── logger_test.go
│ │ │ └── package_test.go
│ │ └── metadata/
│ │ └── generated_feature_gates.go
│ ├── metadata.yaml
│ ├── otelcoltest/
│ │ ├── Makefile
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop_factories.go
│ │ ├── nop_factories_test.go
│ │ ├── package_test.go
│ │ └── testdata/
│ │ ├── config.yaml
│ │ ├── config_default_scheme.yaml
│ │ └── config_env.yaml
│ ├── signals_others.go
│ ├── signals_wasm.go
│ ├── testdata/
│ │ ├── components-output-sorted.yaml
│ │ ├── components-output.yaml
│ │ ├── configs/
│ │ │ ├── 1-config-first.yaml
│ │ │ ├── 1-config-output.yaml
│ │ │ ├── 1-config-second.yaml
│ │ │ └── 2-config-output.yaml
│ │ ├── otelcol-cyclic-connector.yaml
│ │ ├── otelcol-invalid-components.yaml
│ │ ├── otelcol-invalid-connector-unused-exp.yaml
│ │ ├── otelcol-invalid-connector-unused-rec.yaml
│ │ ├── otelcol-invalid-receiver-type.yaml
│ │ ├── otelcol-invalid-telemetry.yaml
│ │ ├── otelcol-invalid.yaml
│ │ ├── otelcol-log-to-file.yaml
│ │ ├── otelcol-nop.yaml
│ │ ├── otelcol-otelconftelemetry.yaml
│ │ ├── otelcol-statuswatcher.yaml
│ │ ├── otelcol-valid-connector-use.yaml
│ │ ├── print.yaml
│ │ ├── print_default.yaml
│ │ ├── print_invalid.yaml
│ │ └── print_negative.yaml
│ ├── unmarshal_dry_run_test.go
│ ├── unmarshaler.go
│ └── unmarshaler_test.go
├── pdata/
│ ├── Makefile
│ ├── README.md
│ ├── doc.go
│ ├── documentation.md
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ ├── .gitignore
│ │ ├── bytesid.go
│ │ ├── bytesid_test.go
│ │ ├── config.schema.yaml
│ │ ├── generated_enum_aggregationtemporality.go
│ │ ├── generated_enum_severitynumber.go
│ │ ├── generated_enum_spankind.go
│ │ ├── generated_enum_statuscode.go
│ │ ├── generated_proto_anyvalue.go
│ │ ├── generated_proto_anyvalue_test.go
│ │ ├── generated_proto_arrayvalue.go
│ │ ├── generated_proto_arrayvalue_test.go
│ │ ├── generated_proto_entityref.go
│ │ ├── generated_proto_entityref_test.go
│ │ ├── generated_proto_exemplar.go
│ │ ├── generated_proto_exemplar_test.go
│ │ ├── generated_proto_exponentialhistogram.go
│ │ ├── generated_proto_exponentialhistogram_test.go
│ │ ├── generated_proto_exponentialhistogramdatapoint.go
│ │ ├── generated_proto_exponentialhistogramdatapoint_test.go
│ │ ├── generated_proto_exponentialhistogramdatapointbuckets.go
│ │ ├── generated_proto_exponentialhistogramdatapointbuckets_test.go
│ │ ├── generated_proto_exportlogspartialsuccess.go
│ │ ├── generated_proto_exportlogspartialsuccess_test.go
│ │ ├── generated_proto_exportlogsservicerequest.go
│ │ ├── generated_proto_exportlogsservicerequest_test.go
│ │ ├── generated_proto_exportlogsserviceresponse.go
│ │ ├── generated_proto_exportlogsserviceresponse_test.go
│ │ ├── generated_proto_exportmetricspartialsuccess.go
│ │ ├── generated_proto_exportmetricspartialsuccess_test.go
│ │ ├── generated_proto_exportmetricsservicerequest.go
│ │ ├── generated_proto_exportmetricsservicerequest_test.go
│ │ ├── generated_proto_exportmetricsserviceresponse.go
│ │ ├── generated_proto_exportmetricsserviceresponse_test.go
│ │ ├── generated_proto_exportprofilespartialsuccess.go
│ │ ├── generated_proto_exportprofilespartialsuccess_test.go
│ │ ├── generated_proto_exportprofilesservicerequest.go
│ │ ├── generated_proto_exportprofilesservicerequest_test.go
│ │ ├── generated_proto_exportprofilesserviceresponse.go
│ │ ├── generated_proto_exportprofilesserviceresponse_test.go
│ │ ├── generated_proto_exporttracepartialsuccess.go
│ │ ├── generated_proto_exporttracepartialsuccess_test.go
│ │ ├── generated_proto_exporttraceservicerequest.go
│ │ ├── generated_proto_exporttraceservicerequest_test.go
│ │ ├── generated_proto_exporttraceserviceresponse.go
│ │ ├── generated_proto_exporttraceserviceresponse_test.go
│ │ ├── generated_proto_function.go
│ │ ├── generated_proto_function_test.go
│ │ ├── generated_proto_gauge.go
│ │ ├── generated_proto_gauge_test.go
│ │ ├── generated_proto_histogram.go
│ │ ├── generated_proto_histogram_test.go
│ │ ├── generated_proto_histogramdatapoint.go
│ │ ├── generated_proto_histogramdatapoint_test.go
│ │ ├── generated_proto_instrumentationscope.go
│ │ ├── generated_proto_instrumentationscope_test.go
│ │ ├── generated_proto_ipaddr.go
│ │ ├── generated_proto_ipaddr_test.go
│ │ ├── generated_proto_keyvalue.go
│ │ ├── generated_proto_keyvalue_test.go
│ │ ├── generated_proto_keyvalueandunit.go
│ │ ├── generated_proto_keyvalueandunit_test.go
│ │ ├── generated_proto_keyvaluelist.go
│ │ ├── generated_proto_keyvaluelist_test.go
│ │ ├── generated_proto_line.go
│ │ ├── generated_proto_line_test.go
│ │ ├── generated_proto_link.go
│ │ ├── generated_proto_link_test.go
│ │ ├── generated_proto_location.go
│ │ ├── generated_proto_location_test.go
│ │ ├── generated_proto_logrecord.go
│ │ ├── generated_proto_logrecord_test.go
│ │ ├── generated_proto_logsdata.go
│ │ ├── generated_proto_logsdata_test.go
│ │ ├── generated_proto_logsrequest.go
│ │ ├── generated_proto_logsrequest_test.go
│ │ ├── generated_proto_mapping.go
│ │ ├── generated_proto_mapping_test.go
│ │ ├── generated_proto_metric.go
│ │ ├── generated_proto_metric_test.go
│ │ ├── generated_proto_metricsdata.go
│ │ ├── generated_proto_metricsdata_test.go
│ │ ├── generated_proto_metricsrequest.go
│ │ ├── generated_proto_metricsrequest_test.go
│ │ ├── generated_proto_numberdatapoint.go
│ │ ├── generated_proto_numberdatapoint_test.go
│ │ ├── generated_proto_profile.go
│ │ ├── generated_proto_profile_test.go
│ │ ├── generated_proto_profilesdata.go
│ │ ├── generated_proto_profilesdata_test.go
│ │ ├── generated_proto_profilesdictionary.go
│ │ ├── generated_proto_profilesdictionary_test.go
│ │ ├── generated_proto_profilesrequest.go
│ │ ├── generated_proto_profilesrequest_test.go
│ │ ├── generated_proto_requestcontext.go
│ │ ├── generated_proto_requestcontext_test.go
│ │ ├── generated_proto_resource.go
│ │ ├── generated_proto_resource_test.go
│ │ ├── generated_proto_resourcelogs.go
│ │ ├── generated_proto_resourcelogs_test.go
│ │ ├── generated_proto_resourcemetrics.go
│ │ ├── generated_proto_resourcemetrics_test.go
│ │ ├── generated_proto_resourceprofiles.go
│ │ ├── generated_proto_resourceprofiles_test.go
│ │ ├── generated_proto_resourcespans.go
│ │ ├── generated_proto_resourcespans_test.go
│ │ ├── generated_proto_sample.go
│ │ ├── generated_proto_sample_test.go
│ │ ├── generated_proto_scopelogs.go
│ │ ├── generated_proto_scopelogs_test.go
│ │ ├── generated_proto_scopemetrics.go
│ │ ├── generated_proto_scopemetrics_test.go
│ │ ├── generated_proto_scopeprofiles.go
│ │ ├── generated_proto_scopeprofiles_test.go
│ │ ├── generated_proto_scopespans.go
│ │ ├── generated_proto_scopespans_test.go
│ │ ├── generated_proto_span.go
│ │ ├── generated_proto_span_test.go
│ │ ├── generated_proto_spancontext.go
│ │ ├── generated_proto_spancontext_test.go
│ │ ├── generated_proto_spanevent.go
│ │ ├── generated_proto_spanevent_test.go
│ │ ├── generated_proto_spanlink.go
│ │ ├── generated_proto_spanlink_test.go
│ │ ├── generated_proto_stack.go
│ │ ├── generated_proto_stack_test.go
│ │ ├── generated_proto_status.go
│ │ ├── generated_proto_status_test.go
│ │ ├── generated_proto_sum.go
│ │ ├── generated_proto_sum_test.go
│ │ ├── generated_proto_summary.go
│ │ ├── generated_proto_summary_test.go
│ │ ├── generated_proto_summarydatapoint.go
│ │ ├── generated_proto_summarydatapoint_test.go
│ │ ├── generated_proto_summarydatapointvalueatquantile.go
│ │ ├── generated_proto_summarydatapointvalueatquantile_test.go
│ │ ├── generated_proto_tcpaddr.go
│ │ ├── generated_proto_tcpaddr_test.go
│ │ ├── generated_proto_tracesdata.go
│ │ ├── generated_proto_tracesdata_test.go
│ │ ├── generated_proto_tracesrequest.go
│ │ ├── generated_proto_tracesrequest_test.go
│ │ ├── generated_proto_udpaddr.go
│ │ ├── generated_proto_udpaddr_test.go
│ │ ├── generated_proto_unixaddr.go
│ │ ├── generated_proto_unixaddr_test.go
│ │ ├── generated_proto_valuetype.go
│ │ ├── generated_proto_valuetype_test.go
│ │ ├── generated_wrapper_anyvalueslice.go
│ │ ├── generated_wrapper_byteslice.go
│ │ ├── generated_wrapper_entityref.go
│ │ ├── generated_wrapper_entityrefslice.go
│ │ ├── generated_wrapper_exportlogsservicerequest.go
│ │ ├── generated_wrapper_exportmetricsservicerequest.go
│ │ ├── generated_wrapper_exportprofilesservicerequest.go
│ │ ├── generated_wrapper_exporttraceservicerequest.go
│ │ ├── generated_wrapper_float64slice.go
│ │ ├── generated_wrapper_instrumentationscope.go
│ │ ├── generated_wrapper_int32slice.go
│ │ ├── generated_wrapper_int64slice.go
│ │ ├── generated_wrapper_profilesdata.go
│ │ ├── generated_wrapper_resource.go
│ │ ├── generated_wrapper_stringslice.go
│ │ ├── generated_wrapper_uint64slice.go
│ │ ├── json/
│ │ │ ├── iterator.go
│ │ │ ├── iterator_test.go
│ │ │ ├── package_test.go
│ │ │ ├── stream.go
│ │ │ └── stream_test.go
│ │ ├── metadata/
│ │ │ └── generated_feature_gates.go
│ │ ├── otelgrpc/
│ │ │ ├── encoding.go
│ │ │ ├── logs_service.go
│ │ │ ├── metrics_service.go
│ │ │ ├── profiles_service.go
│ │ │ └── trace_service.go
│ │ ├── otlp/
│ │ │ ├── logs.go
│ │ │ ├── logs_test.go
│ │ │ ├── metrics.go
│ │ │ ├── metrics_test.go
│ │ │ ├── package_test.go
│ │ │ ├── profiles.go
│ │ │ ├── profiles_test.go
│ │ │ ├── traces.go
│ │ │ └── traces_test.go
│ │ ├── profileid.go
│ │ ├── profileid_test.go
│ │ ├── proto/
│ │ │ ├── marshal.go
│ │ │ ├── size.go
│ │ │ └── unmarshal.go
│ │ ├── spanid.go
│ │ ├── spanid_test.go
│ │ ├── state.go
│ │ ├── state_test.go
│ │ ├── traceid.go
│ │ ├── traceid_test.go
│ │ ├── unpacked_unmarshal_test.go
│ │ ├── wrapper_logs.go
│ │ ├── wrapper_map.go
│ │ ├── wrapper_metrics.go
│ │ ├── wrapper_profiles.go
│ │ ├── wrapper_traces.go
│ │ ├── wrapper_tracestate.go
│ │ ├── wrapper_value.go
│ │ └── wrapper_value_test.go
│ ├── metadata.yaml
│ ├── pcommon/
│ │ ├── generated_byteslice.go
│ │ ├── generated_byteslice_test.go
│ │ ├── generated_float64slice.go
│ │ ├── generated_float64slice_test.go
│ │ ├── generated_instrumentationscope.go
│ │ ├── generated_instrumentationscope_test.go
│ │ ├── generated_int32slice.go
│ │ ├── generated_int32slice_test.go
│ │ ├── generated_int64slice.go
│ │ ├── generated_int64slice_test.go
│ │ ├── generated_resource.go
│ │ ├── generated_resource_test.go
│ │ ├── generated_slice.go
│ │ ├── generated_slice_test.go
│ │ ├── generated_stringslice.go
│ │ ├── generated_stringslice_test.go
│ │ ├── generated_uint64slice.go
│ │ ├── generated_uint64slice_test.go
│ │ ├── map.go
│ │ ├── map_test.go
│ │ ├── package_test.go
│ │ ├── slice.go
│ │ ├── slice_test.go
│ │ ├── spanid.go
│ │ ├── spanid_test.go
│ │ ├── timestamp.go
│ │ ├── timestamp_test.go
│ │ ├── trace_state.go
│ │ ├── trace_state_test.go
│ │ ├── traceid.go
│ │ ├── traceid_test.go
│ │ ├── value.go
│ │ └── value_test.go
│ ├── plog/
│ │ ├── config.schema.yaml
│ │ ├── doc_test.go
│ │ ├── encoding.go
│ │ ├── fuzz_test.go
│ │ ├── generated_logrecord.go
│ │ ├── generated_logrecord_test.go
│ │ ├── generated_logrecordslice.go
│ │ ├── generated_logrecordslice_test.go
│ │ ├── generated_logs.go
│ │ ├── generated_logs_test.go
│ │ ├── generated_resourcelogs.go
│ │ ├── generated_resourcelogs_test.go
│ │ ├── generated_resourcelogsslice.go
│ │ ├── generated_resourcelogsslice_test.go
│ │ ├── generated_scopelogs.go
│ │ ├── generated_scopelogs_test.go
│ │ ├── generated_scopelogsslice.go
│ │ ├── generated_scopelogsslice_test.go
│ │ ├── json.go
│ │ ├── log_record_flags.go
│ │ ├── log_record_flags_test.go
│ │ ├── logs.go
│ │ ├── logs_test.go
│ │ ├── package_test.go
│ │ ├── pb.go
│ │ ├── pb_test.go
│ │ ├── plogotlp/
│ │ │ ├── fuzz_test.go
│ │ │ ├── generated_exportpartialsuccess.go
│ │ │ ├── generated_exportpartialsuccess_test.go
│ │ │ ├── generated_exportresponse.go
│ │ │ ├── generated_exportresponse_test.go
│ │ │ ├── grpc.go
│ │ │ ├── grpc_test.go
│ │ │ ├── package_test.go
│ │ │ ├── request.go
│ │ │ ├── request_test.go
│ │ │ ├── response.go
│ │ │ └── response_test.go
│ │ ├── severity_number.go
│ │ └── severity_number_test.go
│ ├── pmetric/
│ │ ├── aggregation_temporality.go
│ │ ├── aggregation_temporality_test.go
│ │ ├── doc_test.go
│ │ ├── encoding.go
│ │ ├── exemplar_value_type.go
│ │ ├── exemplar_value_type_test.go
│ │ ├── fuzz_test.go
│ │ ├── generated_exemplar.go
│ │ ├── generated_exemplar_test.go
│ │ ├── generated_exemplarslice.go
│ │ ├── generated_exemplarslice_test.go
│ │ ├── generated_exponentialhistogram.go
│ │ ├── generated_exponentialhistogram_test.go
│ │ ├── generated_exponentialhistogramdatapoint.go
│ │ ├── generated_exponentialhistogramdatapoint_test.go
│ │ ├── generated_exponentialhistogramdatapointbuckets.go
│ │ ├── generated_exponentialhistogramdatapointbuckets_test.go
│ │ ├── generated_exponentialhistogramdatapointslice.go
│ │ ├── generated_exponentialhistogramdatapointslice_test.go
│ │ ├── generated_gauge.go
│ │ ├── generated_gauge_test.go
│ │ ├── generated_histogram.go
│ │ ├── generated_histogram_test.go
│ │ ├── generated_histogramdatapoint.go
│ │ ├── generated_histogramdatapoint_test.go
│ │ ├── generated_histogramdatapointslice.go
│ │ ├── generated_histogramdatapointslice_test.go
│ │ ├── generated_metric.go
│ │ ├── generated_metric_test.go
│ │ ├── generated_metrics.go
│ │ ├── generated_metrics_test.go
│ │ ├── generated_metricslice.go
│ │ ├── generated_metricslice_test.go
│ │ ├── generated_numberdatapoint.go
│ │ ├── generated_numberdatapoint_test.go
│ │ ├── generated_numberdatapointslice.go
│ │ ├── generated_numberdatapointslice_test.go
│ │ ├── generated_resourcemetrics.go
│ │ ├── generated_resourcemetrics_test.go
│ │ ├── generated_resourcemetricsslice.go
│ │ ├── generated_resourcemetricsslice_test.go
│ │ ├── generated_scopemetrics.go
│ │ ├── generated_scopemetrics_test.go
│ │ ├── generated_scopemetricsslice.go
│ │ ├── generated_scopemetricsslice_test.go
│ │ ├── generated_sum.go
│ │ ├── generated_sum_test.go
│ │ ├── generated_summary.go
│ │ ├── generated_summary_test.go
│ │ ├── generated_summarydatapoint.go
│ │ ├── generated_summarydatapoint_test.go
│ │ ├── generated_summarydatapointslice.go
│ │ ├── generated_summarydatapointslice_test.go
│ │ ├── generated_summarydatapointvalueatquantile.go
│ │ ├── generated_summarydatapointvalueatquantile_test.go
│ │ ├── generated_summarydatapointvalueatquantileslice.go
│ │ ├── generated_summarydatapointvalueatquantileslice_test.go
│ │ ├── json.go
│ │ ├── metric_data_point_flags.go
│ │ ├── metric_data_point_flags_test.go
│ │ ├── metric_type.go
│ │ ├── metric_type_test.go
│ │ ├── metrics.go
│ │ ├── metrics_test.go
│ │ ├── number_data_point_value_type.go
│ │ ├── number_data_point_value_type_test.go
│ │ ├── package_test.go
│ │ ├── pb.go
│ │ ├── pb_test.go
│ │ └── pmetricotlp/
│ │ ├── fuzz_test.go
│ │ ├── generated_exportpartialsuccess.go
│ │ ├── generated_exportpartialsuccess_test.go
│ │ ├── generated_exportresponse.go
│ │ ├── generated_exportresponse_test.go
│ │ ├── grpc.go
│ │ ├── grpc_test.go
│ │ ├── package_test.go
│ │ ├── request.go
│ │ ├── request_test.go
│ │ ├── response.go
│ │ └── response_test.go
│ ├── pprofile/
│ │ ├── Makefile
│ │ ├── aggregation_temporality.go
│ │ ├── aggregation_temporality_test.go
│ │ ├── attributes.go
│ │ ├── attributes_test.go
│ │ ├── dictionary_helpers.go
│ │ ├── dictionary_helpers_test.go
│ │ ├── encoding.go
│ │ ├── function.go
│ │ ├── function_test.go
│ │ ├── functions.go
│ │ ├── functions_test.go
│ │ ├── fuzz_test.go
│ │ ├── generated_function.go
│ │ ├── generated_function_test.go
│ │ ├── generated_functionslice.go
│ │ ├── generated_functionslice_test.go
│ │ ├── generated_keyvalueandunit.go
│ │ ├── generated_keyvalueandunit_test.go
│ │ ├── generated_keyvalueandunitslice.go
│ │ ├── generated_keyvalueandunitslice_test.go
│ │ ├── generated_line.go
│ │ ├── generated_line_test.go
│ │ ├── generated_lineslice.go
│ │ ├── generated_lineslice_test.go
│ │ ├── generated_link.go
│ │ ├── generated_link_test.go
│ │ ├── generated_linkslice.go
│ │ ├── generated_linkslice_test.go
│ │ ├── generated_location.go
│ │ ├── generated_location_test.go
│ │ ├── generated_locationslice.go
│ │ ├── generated_locationslice_test.go
│ │ ├── generated_mapping.go
│ │ ├── generated_mapping_test.go
│ │ ├── generated_mappingslice.go
│ │ ├── generated_mappingslice_test.go
│ │ ├── generated_profile.go
│ │ ├── generated_profile_test.go
│ │ ├── generated_profiles.go
│ │ ├── generated_profiles_test.go
│ │ ├── generated_profilesdata.go
│ │ ├── generated_profilesdata_test.go
│ │ ├── generated_profilesdictionary.go
│ │ ├── generated_profilesdictionary_test.go
│ │ ├── generated_profilesslice.go
│ │ ├── generated_profilesslice_test.go
│ │ ├── generated_resourceprofiles.go
│ │ ├── generated_resourceprofiles_test.go
│ │ ├── generated_resourceprofilesslice.go
│ │ ├── generated_resourceprofilesslice_test.go
│ │ ├── generated_sample.go
│ │ ├── generated_sample_test.go
│ │ ├── generated_sampleslice.go
│ │ ├── generated_sampleslice_test.go
│ │ ├── generated_scopeprofiles.go
│ │ ├── generated_scopeprofiles_test.go
│ │ ├── generated_scopeprofilesslice.go
│ │ ├── generated_scopeprofilesslice_test.go
│ │ ├── generated_stack.go
│ │ ├── generated_stack_test.go
│ │ ├── generated_stackslice.go
│ │ ├── generated_stackslice_test.go
│ │ ├── generated_valuetype.go
│ │ ├── generated_valuetype_test.go
│ │ ├── generated_valuetypeslice.go
│ │ ├── generated_valuetypeslice_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── json.go
│ │ ├── json_references_test.go
│ │ ├── keyvalueandunit.go
│ │ ├── keyvalueandunit_test.go
│ │ ├── line.go
│ │ ├── line_test.go
│ │ ├── link.go
│ │ ├── link_test.go
│ │ ├── links.go
│ │ ├── links_test.go
│ │ ├── location.go
│ │ ├── location_test.go
│ │ ├── locations.go
│ │ ├── locations_test.go
│ │ ├── mapping.go
│ │ ├── mapping_test.go
│ │ ├── mappings.go
│ │ ├── mappings_test.go
│ │ ├── metadata.yaml
│ │ ├── pb.go
│ │ ├── pb_references_test.go
│ │ ├── pb_test.go
│ │ ├── pprofileotlp/
│ │ │ ├── fuzz_test.go
│ │ │ ├── generated_exportpartialsuccess.go
│ │ │ ├── generated_exportpartialsuccess_test.go
│ │ │ ├── generated_exportresponse.go
│ │ │ ├── generated_exportresponse_test.go
│ │ │ ├── grpc.go
│ │ │ ├── grpc_test.go
│ │ │ ├── package_test.go
│ │ │ ├── request.go
│ │ │ ├── request_test.go
│ │ │ ├── response.go
│ │ │ └── response_test.go
│ │ ├── profile.go
│ │ ├── profile_test.go
│ │ ├── profileid.go
│ │ ├── profileid_test.go
│ │ ├── profiles.go
│ │ ├── profiles_merge.go
│ │ ├── profiles_merge_test.go
│ │ ├── profiles_test.go
│ │ ├── resourceprofiles.go
│ │ ├── resourceprofiles_test.go
│ │ ├── sample.go
│ │ ├── sample_test.go
│ │ ├── scopeprofiles.go
│ │ ├── scopeprofiles_test.go
│ │ ├── stack.go
│ │ ├── stack_test.go
│ │ ├── stacks.go
│ │ ├── stacks_test.go
│ │ ├── string_table.go
│ │ ├── string_table_test.go
│ │ ├── valuetype.go
│ │ └── valuetype_test.go
│ ├── ptrace/
│ │ ├── doc_test.go
│ │ ├── encoding.go
│ │ ├── fuzz_test.go
│ │ ├── generated_resourcespans.go
│ │ ├── generated_resourcespans_test.go
│ │ ├── generated_resourcespansslice.go
│ │ ├── generated_resourcespansslice_test.go
│ │ ├── generated_scopespans.go
│ │ ├── generated_scopespans_test.go
│ │ ├── generated_scopespansslice.go
│ │ ├── generated_scopespansslice_test.go
│ │ ├── generated_span.go
│ │ ├── generated_span_test.go
│ │ ├── generated_spanevent.go
│ │ ├── generated_spanevent_test.go
│ │ ├── generated_spaneventslice.go
│ │ ├── generated_spaneventslice_test.go
│ │ ├── generated_spanlink.go
│ │ ├── generated_spanlink_test.go
│ │ ├── generated_spanlinkslice.go
│ │ ├── generated_spanlinkslice_test.go
│ │ ├── generated_spanslice.go
│ │ ├── generated_spanslice_test.go
│ │ ├── generated_status.go
│ │ ├── generated_status_test.go
│ │ ├── generated_traces.go
│ │ ├── generated_traces_test.go
│ │ ├── json.go
│ │ ├── package_test.go
│ │ ├── pb.go
│ │ ├── pb_test.go
│ │ ├── ptraceotlp/
│ │ │ ├── fuzz_test.go
│ │ │ ├── generated_exportpartialsuccess.go
│ │ │ ├── generated_exportpartialsuccess_test.go
│ │ │ ├── generated_exportresponse.go
│ │ │ ├── generated_exportresponse_test.go
│ │ │ ├── grpc.go
│ │ │ ├── grpc_test.go
│ │ │ ├── package_test.go
│ │ │ ├── request.go
│ │ │ ├── request_test.go
│ │ │ ├── response.go
│ │ │ └── response_test.go
│ │ ├── span_kind.go
│ │ ├── span_kind_test.go
│ │ ├── status_code.go
│ │ ├── status_code_test.go
│ │ ├── traces.go
│ │ └── traces_test.go
│ ├── testdata/
│ │ ├── Makefile
│ │ ├── common.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── log.go
│ │ ├── metric.go
│ │ ├── profile.go
│ │ ├── resource.go
│ │ └── trace.go
│ └── xpdata/
│ ├── Makefile
│ ├── documentation.md
│ ├── entity/
│ │ ├── entity.go
│ │ ├── entity_attribute_map.go
│ │ ├── entity_attribute_map_test.go
│ │ ├── entity_map.go
│ │ ├── entity_map_test.go
│ │ ├── entity_test.go
│ │ ├── generated_entityref.go
│ │ ├── generated_entityref_test.go
│ │ ├── generated_entityrefslice.go
│ │ ├── generated_entityrefslice_test.go
│ │ ├── resource_entities.go
│ │ └── resource_entities_test.go
│ ├── fuzz_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── metadata/
│ │ └── generated_feature_gates.go
│ ├── json.go
│ ├── json_test.go
│ ├── map_builder.go
│ ├── map_builder_test.go
│ ├── metadata.yaml
│ ├── pref/
│ │ ├── gate.go
│ │ ├── logs.go
│ │ ├── metrics.go
│ │ ├── profiles.go
│ │ └── traces.go
│ ├── request/
│ │ ├── context.go
│ │ ├── context_test.go
│ │ ├── internal/
│ │ │ └── request.proto
│ │ ├── logs_request.go
│ │ ├── logs_request_test.go
│ │ ├── metrics_request.go
│ │ ├── metrics_request_test.go
│ │ ├── profiles_request.go
│ │ ├── profiles_request_test.go
│ │ ├── requesttest.go
│ │ ├── traces_request.go
│ │ ├── traces_request_test.go
│ │ ├── version_check.go
│ │ └── version_check_test.go
│ └── xpdata.go
├── pipeline/
│ ├── Makefile
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── globalsignal/
│ │ ├── signal.go
│ │ └── signal_test.go
│ ├── metadata.yaml
│ ├── pipeline.go
│ ├── pipeline_test.go
│ ├── signal.go
│ └── xpipeline/
│ ├── Makefile
│ ├── config.go
│ ├── go.mod
│ ├── go.sum
│ └── metadata.yaml
├── processor/
│ ├── Makefile
│ ├── README.md
│ ├── batchprocessor/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── batch_processor.go
│ │ ├── batch_processor_test.go
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── documentation.md
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ ├── generated_status.go
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ └── metadatatest/
│ │ │ ├── generated_telemetrytest.go
│ │ │ └── generated_telemetrytest_test.go
│ │ ├── metadata.yaml
│ │ ├── metrics.go
│ │ ├── splitlogs.go
│ │ ├── splitlogs_test.go
│ │ ├── splitmetrics.go
│ │ ├── splitmetrics_test.go
│ │ ├── splittraces.go
│ │ ├── splittraces_test.go
│ │ └── testdata/
│ │ └── config.yaml
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ ├── err.go
│ │ └── obsmetrics.go
│ ├── memorylimiterprocessor/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.go
│ │ ├── documentation.md
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ ├── generated_status.go
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ ├── metadatatest/
│ │ │ │ ├── generated_telemetrytest.go
│ │ │ │ └── generated_telemetrytest_test.go
│ │ │ ├── mock_exporter.go
│ │ │ └── mock_receiver.go
│ │ ├── memorylimiter.go
│ │ ├── memorylimiter_test.go
│ │ ├── metadata.yaml
│ │ └── obsreport.go
│ ├── metadata.yaml
│ ├── package_test.go
│ ├── processor.go
│ ├── processor_test.go
│ ├── processorhelper/
│ │ ├── Makefile
│ │ ├── documentation.md
│ │ ├── example_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ └── metadatatest/
│ │ │ ├── generated_telemetrytest.go
│ │ │ └── generated_telemetrytest_test.go
│ │ ├── logs.go
│ │ ├── logs_test.go
│ │ ├── metadata.yaml
│ │ ├── metrics.go
│ │ ├── metrics_test.go
│ │ ├── obsreport.go
│ │ ├── processor.go
│ │ ├── traces.go
│ │ ├── traces_test.go
│ │ └── xprocessorhelper/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── processor.go
│ │ ├── profiles.go
│ │ └── profiles_test.go
│ ├── processortest/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop_processor.go
│ │ ├── nop_processor_test.go
│ │ ├── package_test.go
│ │ ├── shutdown_verifier.go
│ │ ├── shutdown_verifier_test.go
│ │ ├── unhealthy_processor.go
│ │ └── unhealthy_processor_test.go
│ └── xprocessor/
│ ├── Makefile
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── processor.go
│ └── processor_test.go
├── receiver/
│ ├── Makefile
│ ├── README.md
│ ├── doc.go
│ ├── example_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── internal/
│ │ └── err.go
│ ├── metadata.yaml
│ ├── nopreceiver/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── doc.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ └── metadata/
│ │ │ ├── generated_logs.go
│ │ │ ├── generated_logs_test.go
│ │ │ └── generated_status.go
│ │ ├── metadata.yaml
│ │ ├── nop_receiver.go
│ │ └── nop_receiver_test.go
│ ├── otlpreceiver/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.go
│ │ ├── config.md
│ │ ├── config_test.go
│ │ ├── doc.go
│ │ ├── encoder.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── fuzz_test.go
│ │ ├── generated_component_test.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── errors/
│ │ │ │ ├── errors.go
│ │ │ │ └── errors_test.go
│ │ │ ├── logs/
│ │ │ │ ├── otlp.go
│ │ │ │ ├── otlp_test.go
│ │ │ │ └── package_test.go
│ │ │ ├── metadata/
│ │ │ │ ├── generated_logs.go
│ │ │ │ ├── generated_logs_test.go
│ │ │ │ └── generated_status.go
│ │ │ ├── metrics/
│ │ │ │ ├── otlp.go
│ │ │ │ ├── otlp_test.go
│ │ │ │ └── package_test.go
│ │ │ ├── profiles/
│ │ │ │ ├── otlp.go
│ │ │ │ ├── otlp_test.go
│ │ │ │ └── package_test.go
│ │ │ └── trace/
│ │ │ ├── otlp.go
│ │ │ ├── otlp_test.go
│ │ │ └── package_test.go
│ │ ├── metadata.yaml
│ │ ├── otlp.go
│ │ ├── otlp_benchmark_test.go
│ │ ├── otlp_test.go
│ │ ├── otlphttp.go
│ │ ├── otlphttp_test.go
│ │ └── testdata/
│ │ ├── bad_no_proto_config.yaml
│ │ ├── bad_proto_config.yaml
│ │ ├── config.yaml
│ │ ├── default.yaml
│ │ ├── invalid_logs_path.yaml
│ │ ├── invalid_metrics_path.yaml
│ │ ├── invalid_profiles_path.yaml
│ │ ├── invalid_traces_path.yaml
│ │ ├── only_grpc.yaml
│ │ ├── only_http.yaml
│ │ ├── only_http_empty_map.yaml
│ │ ├── only_http_null.yaml
│ │ ├── typo_default_proto_config.yaml
│ │ └── uds.yaml
│ ├── package_test.go
│ ├── receiver.go
│ ├── receiver_test.go
│ ├── receiverhelper/
│ │ ├── Makefile
│ │ ├── documentation.md
│ │ ├── featuregates.go
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ ├── generated_feature_gates.go
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ ├── metadatatest/
│ │ │ │ ├── generated_telemetrytest.go
│ │ │ │ └── generated_telemetrytest_test.go
│ │ │ └── obsmetrics.go
│ │ ├── metadata.yaml
│ │ ├── obsreport.go
│ │ └── obsreport_test.go
│ ├── receivertest/
│ │ ├── Makefile
│ │ ├── contract_checker.go
│ │ ├── contract_checker_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ ├── nop_receiver.go
│ │ ├── nop_receiver_test.go
│ │ └── package_test.go
│ └── xreceiver/
│ ├── Makefile
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── receiver.go
│ └── receiver_test.go
├── renovate.json
├── reports/
│ └── distributions/
│ ├── contrib.yaml
│ ├── core.yaml
│ ├── k8s.yaml
│ └── otlp.yaml
├── scraper/
│ ├── Makefile
│ ├── README.md
│ ├── doc.go
│ ├── factory.go
│ ├── factory_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── logs.go
│ ├── logs_test.go
│ ├── metadata.yaml
│ ├── metrics.go
│ ├── metrics_test.go
│ ├── scraper.go
│ ├── scrapererror/
│ │ ├── doc.go
│ │ ├── package_test.go
│ │ ├── partialscrapeerror.go
│ │ ├── partialscrapeerror_test.go
│ │ ├── scrapeerror.go
│ │ └── scrapeerror_test.go
│ ├── scraperhelper/
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── config.schema.yaml
│ │ ├── controller.go
│ │ ├── controller_test.go
│ │ ├── doc.go
│ │ ├── documentation.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── controller/
│ │ │ │ ├── config.go
│ │ │ │ ├── config_test.go
│ │ │ │ └── controller.go
│ │ │ ├── metadata/
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ ├── metadatatest/
│ │ │ │ ├── generated_telemetrytest.go
│ │ │ │ └── generated_telemetrytest_test.go
│ │ │ └── testhelper/
│ │ │ └── helper.go
│ │ ├── metadata.yaml
│ │ ├── obs_logs.go
│ │ ├── obs_logs_test.go
│ │ ├── obs_metrics.go
│ │ ├── obs_metrics_test.go
│ │ └── xscraperhelper/
│ │ ├── Makefile
│ │ ├── controller.go
│ │ ├── controller_test.go
│ │ ├── doc.go
│ │ ├── documentation.md
│ │ ├── generated_package_test.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal/
│ │ │ ├── metadata/
│ │ │ │ ├── generated_telemetry.go
│ │ │ │ └── generated_telemetry_test.go
│ │ │ └── metadatatest/
│ │ │ ├── generated_telemetrytest.go
│ │ │ └── generated_telemetrytest_test.go
│ │ ├── metadata.yaml
│ │ ├── obs_profiles.go
│ │ └── obs_profiles_test.go
│ ├── scrapertest/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── metadata.yaml
│ │ └── settings.go
│ └── xscraper/
│ ├── Makefile
│ ├── doc.go
│ ├── factory.go
│ ├── factory_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── profiles.go
│ ├── profiles_test.go
│ └── scraper.go
├── service/
│ ├── Makefile
│ ├── README.md
│ ├── config.go
│ ├── config_test.go
│ ├── documentation.md
│ ├── extensions/
│ │ ├── config.go
│ │ ├── extensions.go
│ │ ├── extensions_test.go
│ │ ├── graph.go
│ │ ├── graph_test.go
│ │ └── package_test.go
│ ├── generated_package_test.go
│ ├── go.mod
│ ├── go.sum
│ ├── hostcapabilities/
│ │ ├── Makefile
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── interfaces.go
│ │ └── metadata.yaml
│ ├── internal/
│ │ ├── attribute/
│ │ │ ├── attribute.go
│ │ │ └── attribute_test.go
│ │ ├── builders/
│ │ │ ├── builders.go
│ │ │ ├── builders_test/
│ │ │ │ ├── connector_test.go
│ │ │ │ ├── exporter_test.go
│ │ │ │ ├── extension_test.go
│ │ │ │ ├── processor_test.go
│ │ │ │ └── receiver_test.go
│ │ │ ├── builders_test.go
│ │ │ ├── connector.go
│ │ │ ├── exporter.go
│ │ │ ├── extension.go
│ │ │ ├── processor.go
│ │ │ └── receiver.go
│ │ ├── capabilityconsumer/
│ │ │ ├── capabilities.go
│ │ │ ├── capabilities_test.go
│ │ │ └── package_test.go
│ │ ├── componentattribute/
│ │ │ ├── logger_zap.go
│ │ │ ├── meter_provider.go
│ │ │ ├── telemetry.go
│ │ │ ├── telemetry_test.go
│ │ │ └── tracer_provider.go
│ │ ├── graph/
│ │ │ ├── capabilities.go
│ │ │ ├── connector.go
│ │ │ ├── consumer.go
│ │ │ ├── exporter.go
│ │ │ ├── fanout.go
│ │ │ ├── graph.go
│ │ │ ├── graph_test.go
│ │ │ ├── host.go
│ │ │ ├── lifecycle_test.go
│ │ │ ├── metadata.yaml
│ │ │ ├── obs_test.go
│ │ │ ├── package_test.go
│ │ │ ├── processor.go
│ │ │ ├── receiver.go
│ │ │ ├── util_test.go
│ │ │ └── zpages.go
│ │ ├── metadata/
│ │ │ ├── generated_feature_gates.go
│ │ │ ├── generated_telemetry.go
│ │ │ └── generated_telemetry_test.go
│ │ ├── metadatatest/
│ │ │ ├── generated_telemetrytest.go
│ │ │ └── generated_telemetrytest_test.go
│ │ ├── metricviews/
│ │ │ ├── views.go
│ │ │ └── views_test.go
│ │ ├── moduleinfo/
│ │ │ └── moduleinfo.go
│ │ ├── obsconsumer/
│ │ │ ├── consumer_test.go
│ │ │ ├── enabled.go
│ │ │ ├── enabled_test.go
│ │ │ ├── gate_test.go
│ │ │ ├── logs.go
│ │ │ ├── logs_test.go
│ │ │ ├── metrics.go
│ │ │ ├── metrics_test.go
│ │ │ ├── option.go
│ │ │ ├── package_test.go
│ │ │ ├── profiles.go
│ │ │ ├── profiles_test.go
│ │ │ ├── telemetry.go
│ │ │ ├── traces.go
│ │ │ └── traces_test.go
│ │ ├── proctelemetry/
│ │ │ ├── process_telemetry.go
│ │ │ ├── process_telemetry_linux_test.go
│ │ │ └── process_telemetry_test.go
│ │ ├── promtest/
│ │ │ └── server_util.go
│ │ ├── refconsumer/
│ │ │ ├── logs.go
│ │ │ ├── logs_test.go
│ │ │ ├── metrics.go
│ │ │ ├── metrics_test.go
│ │ │ ├── profiles.go
│ │ │ ├── profiles_test.go
│ │ │ ├── traces.go
│ │ │ └── traces_test.go
│ │ ├── resource/
│ │ │ ├── config.go
│ │ │ └── config_test.go
│ │ ├── status/
│ │ │ ├── nop.go
│ │ │ ├── nop_test.go
│ │ │ ├── package_test.go
│ │ │ ├── status.go
│ │ │ └── status_test.go
│ │ ├── testcomponents/
│ │ │ ├── example_connector.go
│ │ │ ├── example_connector_test.go
│ │ │ ├── example_exporter.go
│ │ │ ├── example_exporter_test.go
│ │ │ ├── example_processor.go
│ │ │ ├── example_processor_test.go
│ │ │ ├── example_receiver.go
│ │ │ ├── example_receiver_test.go
│ │ │ ├── example_router.go
│ │ │ ├── example_router_test.go
│ │ │ ├── package_test.go
│ │ │ └── stateful_component.go
│ │ └── zpages/
│ │ ├── package_test.go
│ │ ├── templates/
│ │ │ ├── component_header.html
│ │ │ ├── extensions_table.html
│ │ │ ├── features_table.html
│ │ │ ├── page_footer.html
│ │ │ ├── page_header.html
│ │ │ ├── pipelines_table.html
│ │ │ └── properties_table.html
│ │ ├── templates.go
│ │ └── templates_test.go
│ ├── metadata.yaml
│ ├── pipelines/
│ │ ├── config.go
│ │ ├── config_test.go
│ │ └── package_test.go
│ ├── service.go
│ ├── service_host_test.go
│ ├── service_test.go
│ └── telemetry/
│ ├── doc.go
│ ├── otelconftelemetry/
│ │ ├── config.go
│ │ ├── config_test.go
│ │ ├── factory.go
│ │ ├── factory_test.go
│ │ ├── internal/
│ │ │ └── migration/
│ │ │ ├── normalize.go
│ │ │ ├── testdata/
│ │ │ │ ├── v0.2.0_logs.yaml
│ │ │ │ ├── v0.2.0_metrics.yaml
│ │ │ │ ├── v0.2.0_traces.yaml
│ │ │ │ ├── v0.3.0_logs.yaml
│ │ │ │ ├── v0.3.0_metrics.yaml
│ │ │ │ └── v0.3.0_traces.yaml
│ │ │ ├── v0.2.0.go
│ │ │ ├── v0.2.0_test.go
│ │ │ ├── v0.3.0.go
│ │ │ └── v0.3.0_test.go
│ │ ├── logger.go
│ │ ├── logger_tee.go
│ │ ├── logger_test.go
│ │ ├── metrics.go
│ │ ├── metrics_test.go
│ │ ├── package_test.go
│ │ ├── resource.go
│ │ ├── resource_test.go
│ │ ├── sdk.go
│ │ ├── testdata/
│ │ │ ├── config_deprecated_address.yaml
│ │ │ ├── config_deprecated_address_and_readers.yaml
│ │ │ ├── config_empty.yaml
│ │ │ ├── config_empty_readers.yaml
│ │ │ ├── config_invalid_deprecated_address.yaml
│ │ │ ├── config_invalid_metrics_empty_readers.yaml
│ │ │ ├── config_invalid_metrics_views_feature_gate.yaml
│ │ │ ├── config_invalid_metrics_views_level.yaml
│ │ │ ├── config_invalid_unknown_field.yaml
│ │ │ ├── config_logs.yaml
│ │ │ └── config_metrics_empty_readers.yaml
│ │ ├── tracer.go
│ │ └── tracer_test.go
│ ├── telemetry.go
│ ├── telemetry_test.go
│ └── telemetrytest/
│ ├── Makefile
│ ├── go.mod
│ ├── go.sum
│ ├── metadata.yaml
│ ├── providers.go
│ └── providers_test.go
└── versions.yaml
================================================
FILE CONTENTS
================================================
================================================
FILE: .checkapi.yaml
================================================
ignored_paths:
- confmap/doc_test.go
excluded_files:
- example_*.go
- "*_test.go"
unkeyed_literal_initialization:
enabled: true
limit: 6
================================================
FILE: .chloggen/README.md
================================================
### Changelog folder
This repo uses `chloggen` to manage its changelog files. You can find the source code for the tool [here](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/chloggen).
Here is a quick explanation of the `config.yaml` file for chloggen:
```yaml
# The directory that stores individual changelog entries.
# Each entry is stored in a dedicated yaml file.
# - 'chloggen new' will copy the 'template_yaml' to this directory as a new entry file.
# - 'chloggen validate' will validate that all entry files are valid.
# - 'chloggen update' will read and delete all entry files in this directory, and update 'changelog_md'.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen
entries_dir: .chloggen
# This file is used as the input for individual changelog entries.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen/TEMPLATE.yaml
template_yaml: .chloggen/TEMPLATE.yaml
summary_template: .chloggen/summary.tmpl
# The CHANGELOG file or files to which 'chloggen update' will write new entries
# (Optional) Default filename: CHANGELOG.md
change_logs:
user: CHANGELOG.md
api: CHANGELOG-API.md
# The default change_log or change_logs to which an entry should be added.
# If 'change_logs' is specified in this file, and no value is specified for 'default_change_logs',
# then 'change_logs' MUST be specified in every entry file.
default_change_logs: [user]
```
================================================
FILE: .chloggen/TEMPLATE.yaml
================================================
# Use this changelog template to create an entry for release notes.
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type:
# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp)
component:
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note:
# One or more tracking issues or pull requests related to the change
issues: []
# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
================================================
FILE: .chloggen/aix_tier3.yaml
================================================
# Use this changelog template to create an entry for release notes.
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement
# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp)
component: all
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Move aix/ppc64 to tier 3 support
# One or more tracking issues or pull requests related to the change
issues: [13380]
# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
================================================
FILE: .chloggen/alpha-profiles.yaml
================================================
# Use this changelog template to create an entry for release notes.
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement
# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp)
component: all
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Upgrade the profiles stability status to alpha
# One or more tracking issues or pull requests related to the change
issues: [14817]
# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: |
The following components have their profiles status upgraded from development to alpha:
* pdata/pprofile
* connector/forward
* exporter/debug
* receiver/nop
* exporter/nop
* exporter/otlp_grpc
* exporter/otlp_http
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
================================================
FILE: .chloggen/config.yaml
================================================
change_logs:
api: CHANGELOG-API.md
user: CHANGELOG.md
default_change_logs:
- user
entries_dir: .chloggen
template_yaml: .chloggen/TEMPLATE.yaml
summary_template: .chloggen/summary.tmpl
components:
- all
- cmd/builder
- cmd/mdatagen
- connector/forward
- connector/sample
- consumer/consumererror/xconsumererror
- consumer/xconsumer
- docs/rfcs
- exporter/debug
- exporter/nop
- exporter/otlp_grpc
- exporter/otlp_http
- extension/memory_limiter
- extension/zpages
- pdata/pprofile
- pkg/client
- pkg/component
- pkg/component/componentstatus
- pkg/component/componenttest
- pkg/config/configauth
- pkg/config/configcompression
- pkg/config/configgrpc
- pkg/config/confighttp/xconfighttp
- pkg/config/configmiddleware
- pkg/config/confignet
- pkg/config/configopaque
- pkg/config/configretry
- pkg/config/configtelemetry
- pkg/config/configtls
- pkg/confighttp
- pkg/configoptional
- pkg/confmap
- pkg/connector
- pkg/connector/connectortest
- pkg/consumer
- pkg/consumer/consumererror
- pkg/consumer/consumertest
- pkg/exporter
- pkg/exporter/exportertest
- pkg/exporterhelper
- pkg/extension
- pkg/extension/extensiontest
- pkg/extensionauth
- pkg/extensionauth/extensionauthtest
- pkg/extensioncapabilities
- pkg/extensionmiddleware
- pkg/extensionmiddleware/extensionmiddlewaretest
- pkg/featuregate
- pkg/filter
- pkg/otelcol
- pkg/otelcol/otelcoltest
- pkg/pdata
- pkg/pipeline
- pkg/processor
- pkg/processor/processortest
- pkg/processorhelper
- pkg/queuebatch
- pkg/receiver
- pkg/receiver/receivertest
- pkg/receiverhelper
- pkg/scraper
- pkg/scraper/scrapertest
- pkg/scraperhelper
- pkg/service
- pkg/service/hostcapabilities
- pkg/service/telemetry/telemetrytest
- pkg/xconfmap
- pkg/xconnector
- pkg/xexporter
- pkg/xexporterhelper
- pkg/xextension
- pkg/xextension/storage
- pkg/xpdata
- pkg/xpipeline
- pkg/xprocessor
- pkg/xprocessorhelper
- pkg/xreceiver
- pkg/xscraper
- pkg/xscraperhelper
- processor/batch
- processor/memory_limiter
- processor/sample
- provider/env
- provider/file
- provider/http
- provider/https
- provider/yaml
- receiver/nop
- receiver/otlp
- receiver/sample
- receiver/sample
- receiver/sampleentity
- scraper/sample
- service/graph
================================================
FILE: .chloggen/fix-mdatagen-entity-builder.yaml
================================================
change_type: bug_fix
component: cmd/mdatagen
note: Fix entity code generation so `extra_attributes` are emitted as resource attributes instead of entity descriptive attributes.
issues: [14778]
================================================
FILE: .chloggen/mdatagen_fix_reporoot.yaml
================================================
# Use this changelog template to create an entry for release notes.
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix
# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp)
component: cmd/mdatagen
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Fix RootPackage to use go module root instead of git repo root
# One or more tracking issues or pull requests related to the change
issues: [14801]
# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: Fixes issue with running mdatagen when the git repository root is different from the go module root.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [api]
================================================
FILE: .chloggen/remove-resource-constant-labels.yaml
================================================
change_type: breaking
component: pkg/service
note: Remove `service_name`, `service_instance_id`, and `service_version` as constant labels on every internal metric datapoint. These attributes are already present in `target_info` and were being duplicated on each series for OpenCensus backwards compatibility.
issues: [14811]
subtext: |
Previously, the collector stamped every internal metric series (e.g. `otelcol_process_runtime_heap_alloc_bytes`)
with `service_name`, `service_instance_id`, and `service_version` labels to match the old OpenCensus behavior.
These attributes are now only present in the `target_info` metric, which is the correct Prometheus/OTel convention.
Users who filter or group by these labels on individual metrics will need to update their queries to use
`target_info` joins instead.
change_logs: [user]
================================================
FILE: .chloggen/summary.tmpl
================================================
{{- define "entry" -}}
- `{{ .Component }}`: {{ .Note }} (
{{- range $i, $issue := .Issues }}
{{- if $i }}, {{ end -}}
#{{ $issue }}
{{- end -}}
)
{{- if .SubText }}
{{ .SubText | indent 2 }}
{{- end }}
{{- end }}
## {{ .Version }}
{{- if .BreakingChanges }}
### 🛑 Breaking changes 🛑
{{- range $i, $change := .BreakingChanges }}
{{- if eq $i 0}}
{{end}}
{{ template "entry" $change }}
{{- end }}
{{- end }}
{{- if .Deprecations }}
### 🚩 Deprecations 🚩
{{- range $i, $change := .Deprecations }}
{{- if eq $i 0}}
{{end}}
{{ template "entry" $change }}
{{- end }}
{{- end }}
{{- if .NewComponents }}
### 🚀 New components 🚀
{{- range $i, $change := .NewComponents }}
{{- if eq $i 0}}
{{end}}
{{ template "entry" $change }}
{{- end }}
{{- end }}
{{- if .Enhancements }}
### 💡 Enhancements 💡
{{- range $i, $change := .Enhancements }}
{{- if eq $i 0}}
{{end}}
{{ template "entry" $change }}
{{- end }}
{{- end }}
{{- if .BugFixes }}
### 🧰 Bug fixes 🧰
{{- range $i, $change := .BugFixes }}
{{- if eq $i 0}}
{{end}}
{{ template "entry" $change }}
{{- end }}
{{- end }}
<!-- previous-version -->
================================================
FILE: .codecov.yml
================================================
codecov:
branch: main
# only use the latest copy on main branch
strict_yaml_branch: main
coverage:
precision: 2
round: down
range: "80...100"
status:
project:
default:
enabled: yes
target: 90%
patch:
default:
enabled: yes
target: 95%
ignore:
- "pdata/internal/data/protogen/**/*"
- "**/*.pb.go"
- "cmd/mdatagen/third_party/**/*"
================================================
FILE: .gitattributes
================================================
# This file is documented at https://git-scm.com/docs/gitattributes.
# Linguist-specific attributes are documented at
# https://github.com/github/linguist.
go.sum linguist-generated=true
# Avoid git status and other tools (lint, fmt) reporting whitespace differences
# on Windows machines by ensuring that `lf` on text files are not converted to `crlf`.
* text=auto eol=lf
================================================
FILE: .github/ALLOWLIST
================================================
# Code generated by githubgen. DO NOT EDIT.
#####################################################
#
# List of components
# waiting on owners to be assigned
#
#####################################################
#
# Learn about CODEOWNERS file format:
# https://help.github.com/en/articles/about-code-owners
#
##
# NOTE: New components MUST have one or more codeowners. Add codeowners to the component metadata.yaml and run make gengithub
##
## COMMON & SHARED components
internal/common
## DEPRECATED components
# Start deprecated components list
# End deprecated components list
## UNMAINTAINED components
# Start unmaintained components list
# End unmaintained components list
================================================
FILE: .github/CODEOWNERS
================================================
# Code generated by githubgen. DO NOT EDIT.
#####################################################
#
# List of codeowners
#
#####################################################
#
# Learn about CODEOWNERS file format:
# https://help.github.com/en/articles/about-code-owners
#
* @open-telemetry/collector-approvers
# Files owned by collector-releases-approvers
.github/workflows/prepare-release.yml @open-telemetry/collector-approvers @open-telemetry/collector-releases-approvers
.github/workflows/sourcecode-release.yml @open-telemetry/collector-approvers @open-telemetry/collector-releases-approvers
.github/workflows/scripts/release-*.sh @open-telemetry/collector-approvers @open-telemetry/collector-releases-approvers
# Start components list
cmd/builder/ @open-telemetry/collector-approvers @ArthurSens @dmathieu
cmd/mdatagen/ @open-telemetry/collector-approvers @dmitryax
cmd/mdatagen/internal/sampleconnector/ @open-telemetry/collector-approvers
cmd/mdatagen/internal/sampleentityreceiver/ @open-telemetry/collector-approvers @dmitryax
cmd/mdatagen/internal/samplefactoryreceiver/ @open-telemetry/collector-approvers @dmitryax
cmd/mdatagen/internal/sampleprocessor/ @open-telemetry/collector-approvers
cmd/mdatagen/internal/samplereceiver/ @open-telemetry/collector-approvers @dmitryax
cmd/mdatagen/internal/samplescraper/ @open-telemetry/collector-approvers @dmitryax
config/configauth/ @open-telemetry/collector-approvers
config/configcompression/ @open-telemetry/collector-approvers
config/configgrpc/ @open-telemetry/collector-approvers
config/confighttp/ @open-telemetry/collector-approvers
config/configmiddleware/ @open-telemetry/collector-approvers
config/confignet/ @open-telemetry/collector-approvers
config/configopaque/ @open-telemetry/collector-approvers
config/configoptional/ @open-telemetry/collector-approvers
config/configretry/ @open-telemetry/collector-approvers
config/configtelemetry/ @open-telemetry/collector-approvers
config/configtls/ @open-telemetry/collector-approvers
confmap/ @open-telemetry/collector-approvers @mx-psi @evan-bradley
confmap/provider/envprovider/ @open-telemetry/collector-approvers
confmap/provider/fileprovider/ @open-telemetry/collector-approvers
confmap/provider/httpprovider/ @open-telemetry/collector-approvers
confmap/provider/httpsprovider/ @open-telemetry/collector-approvers
confmap/provider/yamlprovider/ @open-telemetry/collector-approvers
connector/forwardconnector/ @open-telemetry/collector-approvers
connector/xconnector/ @open-telemetry/collector-approvers @mx-psi @dmathieu
consumer/consumererror/xconsumererror/ @open-telemetry/collector-approvers
consumer/xconsumer/ @open-telemetry/collector-approvers @mx-psi @dmathieu
docs/rfcs/ @open-telemetry/collector-approvers @codeboten @bogdandrutu @dmitryax @mx-psi
exporter/debugexporter/ @open-telemetry/collector-approvers @andrzej-stencel
exporter/exporterhelper/ @open-telemetry/collector-approvers @bogdandrutu @dmitryax
exporter/exporterhelper/internal/queuebatch/ @open-telemetry/collector-approvers
exporter/exporterhelper/xexporterhelper/ @open-telemetry/collector-approvers @mx-psi @dmathieu
exporter/nopexporter/ @open-telemetry/collector-approvers @evan-bradley
exporter/otlpexporter/ @open-telemetry/collector-approvers
exporter/otlphttpexporter/ @open-telemetry/collector-approvers
exporter/xexporter/ @open-telemetry/collector-approvers @mx-psi @dmathieu
extension/memorylimiterextension/ @open-telemetry/collector-approvers
extension/xextension/ @open-telemetry/collector-approvers
extension/xextension/storage/ @open-telemetry/collector-approvers @swiatekm
extension/zpagesextension/ @open-telemetry/collector-approvers
otelcol/ @open-telemetry/collector-approvers
pdata/ @open-telemetry/collector-approvers @bogdandrutu @dmitryax
pdata/pprofile/ @open-telemetry/collector-approvers @mx-psi @dmathieu
pdata/xpdata/ @open-telemetry/collector-approvers
processor/batchprocessor/ @open-telemetry/collector-approvers
processor/memorylimiterprocessor/ @open-telemetry/collector-approvers
processor/processorhelper/ @open-telemetry/collector-approvers
processor/xprocessor/ @open-telemetry/collector-approvers @mx-psi @dmathieu
receiver/nopreceiver/ @open-telemetry/collector-approvers @evan-bradley
receiver/otlpreceiver/ @open-telemetry/collector-approvers
receiver/receiverhelper/ @open-telemetry/collector-approvers
receiver/xreceiver/ @open-telemetry/collector-approvers @mx-psi @dmathieu
scraper/ @open-telemetry/collector-approvers
scraper/xscraper @open-telemetry/collector-approvers
scraper/scraperhelper/ @open-telemetry/collector-approvers
scraper/scraperhelper/xscraperhelper @open-telemetry/collector-approvers
service/ @open-telemetry/collector-approvers
service/internal/graph/ @open-telemetry/collector-approvers
# End components list
#####################################################
#
# List of distribution maintainers
#
#####################################################
# Start distribution list
reports/distributions/core.yaml @open-telemetry/collector-approvers
reports/distributions/contrib.yaml @open-telemetry/collector-approvers
reports/distributions/k8s.yaml @open-telemetry/collector-approvers
reports/distributions/otlp.yaml @open-telemetry/collector-approvers
# End distribution list
#####################################################
#
## UNMAINTAINED components
#
#####################################################
# Start unmaintained components list
# End unmaintained components list
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yaml
================================================
name: Bug report
description: Create a report to help us improve
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please make sure to fill out the entire form below, providing as much context as you can in order to help us triage and track down your bug as quickly as possible.
Before filing a bug, please be sure you have searched through [existing bugs](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug) to see if an existing issue covers your bug.
- type: dropdown
id: component
attributes:
label: Component(s)
description: Which component(s) does your bug report concern?
multiple: true
options:
# NOTE: The list below is autogenerated using `make generate-gh-issue-templates`
# Do not manually edit it.
# Start components list
- cmd/builder
- cmd/mdatagen
- cmd/mdatagen/internal/sampleconnector
- cmd/mdatagen/internal/samplefactoryreceiver
- cmd/mdatagen/internal/sampleprocessor
- cmd/mdatagen/internal/samplereceiver
- cmd/mdatagen/internal/samplescraper
- config/configauth
- config/configcompression
- config/configgrpc
- config/confighttp
- config/configmiddleware
- config/confignet
- config/configopaque
- config/configoptional
- config/configretry
- config/configtelemetry
- config/configtls
- confmap
- confmap/provider/envprovider
- confmap/provider/fileprovider
- confmap/provider/httpprovider
- confmap/provider/httpsprovider
- confmap/provider/yamlprovider
- connector/forward
- connector/x
- consumer/consumererror/xconsumererror
- consumer/xconsumer
- docs/rfcs
- exporter/debug
- exporter/exporterhelper
- exporter/exporterhelper/internal/queuebatch
- exporter/exporterhelper/xexporterhelper
- exporter/nop
- exporter/otlp
- exporter/otlp_http
- exporter/x
- extension/memorylimiter
- extension/x
- extension/x/storage
- extension/zpages
- otelcol
- pdata
- pdata/pprofile
- pdata/xpdata
- processor/batch
- processor/memorylimiter
- processor/processorhelper
- processor/x
- receiver/nop
- receiver/otlp
- receiver/receiverhelper
- receiver/x
- scraper
- scraper/scraperhelper
- scraper/scraperhelper/xscraperhelper
- scraper/xscraper
- service
- service/internal/graph
# End components list
- type: textarea
attributes:
label: What happened?
description: Please provide as much detail as you reasonably can.
value: |
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**Steps to reproduce**
<!-- If possible, provide a recipe for reproducing the error. -->
**What did you expect to see?**
<!-- A clear and concise description of what you expected to see. -->
**What did you see instead?**
<!-- A clear and concise description of what you saw instead. -->
validations:
required: true
- type: input
attributes:
label: Collector version
description: What version did you use? (e.g., `v0.4.0`, `1eb551b`, etc)
validations:
required: true
- type: textarea
attributes:
label: Environment information
description: Please provide any additional information about your installation.
value: |
## Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
- type: textarea
attributes:
label: OpenTelemetry Collector configuration
description: Please provide the configuration you are using (e.g. the YAML config file).
placeholder: | # Empty Collector config
receivers:
exporters:
processors:
extensions:
service:
pipelines:
traces:
receivers: []
exporters: []
processors: []
metrics:
receivers: []
exporters: []
processors: []
logs:
receivers: []
exporters: []
processors: []
render: yaml
- type: textarea
attributes:
label: Log output
description: |
Please copy and paste any relevant log output.
render: shell
- type: textarea
attributes:
label: Additional context
description: Any additional information you think may be relevant to this issue.
- type: dropdown
attributes:
label: Tip
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
options:
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
default: 0
================================================
FILE: .github/ISSUE_TEMPLATE/component-graduation.md
================================================
---
name: Component Graduation
about: Graduate a component from beta to stable
title: 'Graduate component X to stable'
labels: 'graduation'
assignees: ''
---
This issue requests the graduation of a component to stable. Please review the [Component Graduation to Stable](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#component-graduation-to-stable) documentation for full details.
## Component Information
- **Component name**: <!-- e.g., otlpreceiver -->
- **Component type**: <!-- receiver/processor/exporter/connector/extension -->
- **Repository**: <!-- e.g., opentelemetry-collector or opentelemetry-collector-contrib -->
## Signal Requirements
- [ ] All supported signals for signal types that are stable in the OpenTelemetry specification are at beta stability or higher
- [ ] At least one signal is at stable stability
## Code Owner Requirements
- [ ] The component has at least three active code owners
- [ ] Within the 60 days prior to this request, the code owners have reviewed and replied to at least 80% of the issues and pull requests opened against the component
List the current code owners:
1. <!-- @username -->
2. <!-- @username -->
3. <!-- @username -->
## Technical Requirements
- [ ] The component meets all [testing requirements](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#testing-requirements) for stable components
- [ ] The component meets all [documentation requirements](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#documentation-requirements) for stable components
- [ ] The component meets all [observability requirements](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#observability-requirements) for stable components
- [ ] The component follows the [coding guidelines](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/coding-guidelines.md), including naming conventions
Please provide links to evidence:
- **Test coverage report**: <!-- link -->
- **Benchmark results**: <!-- link -->
- **Documentation**: <!-- link to component README -->
## Adoption Evidence
The component must have evidence of real-world adoption. Provide at least one of the following:
### Option 1: Public Adopter Testimonials
At least two organizations have publicly stated they use the component in production.
- [ ] Adopter 1: <!-- Link to blog post, conference talk, GitHub issue, vendor documentation or other public statement -->
- [ ] Adopter 2: <!-- Link to blog post, conference talk, GitHub issue, vendor documentation or other public statement -->
### Option 2: Private Attestation
If adopters cannot be named publicly, provide private attestation to the assigned maintainer.
- [ ] Private attestation provided to maintainer
The attestation must include a general description of the scale of usage (e.g., "processing millions of spans per day").
---
## For Maintainers
A maintainer will be assigned on a rotating basis to verify this graduation request.
- [ ] Maintainer assigned: <!-- @username -->
- [ ] All requirements verified
- [ ] Adoption evidence verified as credible
Once verified, the code owners should open a PR to update the component's stability level.
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.yaml
================================================
name: Feature request
description: Suggest an idea for this project
labels: ["feature request"]
body:
- type: dropdown
id: component
attributes:
label: Component(s)
description: Which component(s) does your feature request concern?
multiple: true
options:
# NOTE: The list below is autogenerated using `make generate-gh-issue-templates`
# Do not manually edit it.
# Start components list
- cmd/builder
- cmd/mdatagen
- cmd/mdatagen/internal/sampleconnector
- cmd/mdatagen/internal/samplefactoryreceiver
- cmd/mdatagen/internal/sampleprocessor
- cmd/mdatagen/internal/samplereceiver
- cmd/mdatagen/internal/samplescraper
- config/configauth
- config/configcompression
- config/configgrpc
- config/confighttp
- config/configmiddleware
- config/confignet
- config/configopaque
- config/configoptional
- config/configretry
- config/configtelemetry
- config/configtls
- confmap
- confmap/provider/envprovider
- confmap/provider/fileprovider
- confmap/provider/httpprovider
- confmap/provider/httpsprovider
- confmap/provider/yamlprovider
- connector/forward
- connector/x
- consumer/consumererror/xconsumererror
- consumer/xconsumer
- docs/rfcs
- exporter/debug
- exporter/exporterhelper
- exporter/exporterhelper/internal/queuebatch
- exporter/exporterhelper/xexporterhelper
- exporter/nop
- exporter/otlp_grpc
- exporter/otlp_http
- exporter/x
- extension/memorylimiter
- extension/x
- extension/x/storage
- extension/zpages
- otelcol
- pdata
- pdata/pprofile
- pdata/xpdata
- processor/batch
- processor/memorylimiter
- processor/processorhelper
- processor/x
- receiver/nop
- receiver/otlp
- receiver/receiverhelper
- receiver/x
- scraper
- scraper/scraperhelper
- scraper/scraperhelper/xscraperhelper
- scraper/xscraper
- service
- service/internal/graph
# End components list
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. We are currently preparing for the upcoming 1.0 GA release. Feature requests that are not aligned with the current roadmap and are not aimed at stabilizing and preparing the Collector for the release will not be prioritized.
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
- type: dropdown
attributes:
label: Tip
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
options:
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
default: 0
================================================
FILE: .github/ISSUE_TEMPLATE/other.yaml
================================================
name: Other issue
description: Create a new issue to help us improve the collector
body:
- type: dropdown
id: component
attributes:
label: Component(s)
description: Which component(s) does your issue concern?
multiple: true
options:
# NOTE: The list below is autogenerated using `make generate-gh-issue-templates`
# Do not manually edit it.
# Start components list
- cmd/builder
- cmd/mdatagen
- cmd/mdatagen/internal/sampleconnector
- cmd/mdatagen/internal/samplefactoryreceiver
- cmd/mdatagen/internal/sampleprocessor
- cmd/mdatagen/internal/samplereceiver
- cmd/mdatagen/internal/samplescraper
- config/configauth
- config/configcompression
- config/configgrpc
- config/confighttp
- config/configmiddleware
- config/confignet
- config/configopaque
- config/configoptional
- config/configretry
- config/configtelemetry
- config/configtls
- confmap
- confmap/provider/envprovider
- confmap/provider/fileprovider
- confmap/provider/httpprovider
- confmap/provider/httpsprovider
- confmap/provider/yamlprovider
- connector/forward
- connector/x
- consumer/consumererror/xconsumererror
- consumer/xconsumer
- docs/rfcs
- exporter/debug
- exporter/exporterhelper
- exporter/exporterhelper/internal/queuebatch
- exporter/exporterhelper/xexporterhelper
- exporter/nop
- exporter/otlp_grpc
- exporter/otlp_http
- exporter/x
- extension/memorylimiter
- extension/x
- extension/x/storage
- extension/zpages
- otelcol
- pdata
- pdata/pprofile
- pdata/xpdata
- processor/batch
- processor/memorylimiter
- processor/processorhelper
- processor/x
- receiver/nop
- receiver/otlp
- receiver/receiverhelper
- receiver/x
- scraper
- scraper/scraperhelper
- scraper/scraperhelper/xscraperhelper
- scraper/xscraper
- service
- service/internal/graph
# End components list
- type: textarea
attributes:
label: Describe the issue you're reporting
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: dropdown
attributes:
label: Tip
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
options:
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
default: 0
================================================
FILE: .github/ISSUE_TEMPLATE/stabilization.md
================================================
---
name: Module stabilization
about: Stabilize a module before a 1.0 release
title: 'Stabilize module X'
labels: 'stabilization'
assignees: ''
---
Before stabilizing a module, an approver or maintainer must make sure that the following criteria have been met for at least two successive minor version releases (regardless of when this issue was opened):
- [ ] No open issues or PRs in the module that would require breaking changes
- [ ] No TODOs in the module code that would require breaking changes
- [ ] No deprecated symbols in the module
- [ ] No symbols marked as experimental in the module
- [ ] The module follows the [Coding guidelines](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/coding-guidelines.md)
Please also make sure to publicly announce our intent to stabilize the module on:
- [ ] The #otel-collector CNCF Slack Channel
- [ ] The #opentelemetry CNCF Slack channel
- [ ] A Collector SIG meeting (if unable to attend, just add to the agenda)
To help other people verify the above criteria, please link to the announcement and other links used to complete the above in a comment on this issue.
Once all criteria are met, close this issue by moving this module to the `stable` module set.
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
================================================
FILE: .github/ISSUE_TEMPLATE/vote.md
================================================
---
name: Vote
about: Vote to make a decision related to an RFC
title: '[Vote] RFC #XXXX:'
labels: "rfc:vote-needed"
assignees: ''
---
A [vote](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/README.md#voting) has been called for RFC #XXXX following the RFC process.
### Stakeholders
Any person in the community may vote. Votes of the stakeholders are binding. Stakeholders are
encouraged to consider the views from the wider community when casting their vote. As defined in the
RFC, there are N stakeholders for this RFC divided as follows:
| Stakeholders | As defined on date | Number of people |
|-------------------------------------|--------------------|------------------|
| @open-telemetry/collector-approvers | yyyy-mm-dd | N |
<!--Add additional rows if there are additional stakeholders for the RFC-->
For any stakeholder team, we consider the people that were part of the team at the time the vote is called.
### Voting options
| Option | Description | # Votes (stakeholders) | # Votes (total) |
|--------|-------------|------------------------|-----------------|
| Option 1 | Description of the option | 0 | 0 |
<!--Add additional rows if there are additional options for the RFC-->
### Result
The vote is in progress. A minimum of X votes is required to select an option.
<!--Uncomment the sentence below when the vote has been closed and the result is known.-->
<!--The vote has been closed. X stakeholders voted out of a total of Y. **Option N** has been selected with Z votes from the stakeholders.-->
### Vote process
Please **leave a comment** with your vote and any additional context you would like to provide.
Start your comment with "I vote for **Option N**." and then provide any additional context.
### Related links
Include here any links to the RFC, other PRs and resources that help make an informed vote.
### Checklists
When starting the vote:
- [ ] Announce the vote in the #otel-collector-dev CNCF Slack channel.
- [ ] Add an entry to announce the vote in the next Collector SIG meeting.
For closing the vote:
- [ ] At least five business days have passed since the vote was announced.
- [ ] At least one-third of the stakeholders have voted.
- [ ] The "Voting options" and "Result" sections have been updated reflecting the votes casted.
- [ ] The RFC has been updated reflecting the votes casted.
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
================================================
FILE: .github/actionlint.yaml
================================================
self-hosted-runner:
labels: []
config-variables: null
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
# SC1070: Suppressing because scripts intentionally contain valid but unusual characters,
# Escape characters like `\o` used purposefully, and tested for clarity
- '.*shellcheck reported issue in this script: SC1070:.+'
# SC1133: ShellCheck suggests optimizing conditional expressions, but these scripts
# operate correctly and readability is prioritized in real-world use. This ensures familiarity for contributors.
- '.*shellcheck reported issue in this script: SC1133:.+'
# SC2086: Ignored because word splitting is intentional in commands like `git diff`,
# where simple, predictable paths are passed as arguments. No unintended globbing occurs in this context.
- '.*shellcheck reported issue in this script: SC2086:.+'
# SC2046: Suppressed because word splitting is desired and necessary in certain scenarios,
# PR_HEAD is set by GitHub Actions and paths are fixed/controlled.
- '.*shellcheck reported issue in this script: SC2046:.+'
# SC2059: Format strings in `printf` are deliberately designed and controlled for specific outputs.
# ShellCheck’s safeguard warning is appreciated but not critical in these cases.
- '.*shellcheck reported issue in this script: SC2059:.+'
# SC2236: Both `! -z` and `-n` achieve the same result, and while `-n` is idiomatic. (Just a style suggestion)
# suppressing this warning allows scripts to remain consistent with existing standards.
- '.*shellcheck reported issue in this script: SC2236:.+'
# SC1001: Escaped characters (like `\o`) are deliberate in certain scripts for expected functionality.
# ShellCheck’s flagging of these characters as potential issues isn’t applicable to this use case.
- '.*shellcheck reported issue in this script: SC1001:.+'
# SC2129: Individual redirections are chosen for simplicity and clarity in the workflows.
# combining them is technically efficient, the current approach ensures more readable scripts.
- '.*shellcheck reported issue in this script: SC2129:.+'
# Runner warnings ignored because scripts are validated against specific configurations
# and tested on GitHub Actions, ensuring compatibility. These warnings do not affect functionality.
- '.*the runner of ".+" action is too old to run on GitHub Actions.+'
================================================
FILE: .github/lychee.toml
================================================
include_fragments = true
accept = ["200..=299", "429"]
exclude = [
"^http(s)?://localhost",
"^http(s)?://example.com"
]
================================================
FILE: .github/pull_request_template.md
================================================
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #
<!--Describe what testing was performed and which tests were added.-->
#### Testing
<!--Describe the documentation added.-->
#### Documentation
<!--Please delete paragraphs that you did not use before submitting.-->
================================================
FILE: .github/workflows/add-labels-and-owners.yml
================================================
name: 'Add labels and code owners to PR'
on:
pull_request_target:
types:
- opened
- synchronize
- ready_for_review
permissions: read-all
jobs:
add-labels-and-owners:
permissions:
pull-requests: write
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.repository_owner == 'open-telemetry' && github.event.pull_request.draft == false }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run add-codeowners-to-pr.sh
run: ./.github/workflows/scripts/add-labels-and-owners.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
PR: ${{ github.event.number }}
================================================
FILE: .github/workflows/add-labels-command.yml
================================================
name: 'Add Labels'
on:
issue_comment:
types: [created]
permissions: read-all
jobs:
add-labels-command:
if: ${{ !github.event.issue.pull_request && startsWith(github.event.comment.body, '/label') && github.repository_owner == 'open-telemetry' }}
permissions:
issues: write
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run add-labels-command.sh
run: ./.github/workflows/scripts/add-labels-command.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.number }}
COMMENT: ${{ github.event.comment.body }}
SENDER: ${{ github.event.sender.login }}
================================================
FILE: .github/workflows/api-compatibility.yml
================================================
# This GitHub action is used to compare API state snapshots of Main
# to Head of the PR in order to validate releases are not breaking
# backwards compatibility.
#
# This GitHub action will fail if there are incompatible changes.
#
name: "Inform Incompatible PRs"
on:
pull_request:
branches:
- main
permissions: read-all
jobs:
Check-Compatibility:
runs-on: ubuntu-latest
env:
BASE_REF: ${{ github.base_ref }}
HEAD_REF: ${{ github.head_ref }}
steps:
- name: Checkout-Main
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.base_ref }}
path: ${{ github.base_ref }}
- name: Checkout-HEAD
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ${{ github.head_ref }}
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
# Generate apidiff states of Main
- name: Generate-States
run: |
cd $BASE_REF
make apidiff-build
# Compare apidiff states of Main with PR
- name: Compare-States
env:
CI: true
COMPARE_OPTS: -d "../${{ github.base_ref }}/internal/data/apidiff"
run: |
cd $HEAD_REF
make apidiff-compare
# Fail GitHub Action if there are incompatible changes
- name: Check-States
env:
CI: true
COMPARE_OPTS: -d "../${{ github.base_ref }}/internal/data/apidiff" -c
run: |
cd $HEAD_REF
make apidiff-compare
================================================
FILE: .github/workflows/build-and-test-arm.yml
================================================
name: build-and-test-arm
on:
push:
branches: [main]
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
merge_group:
types: [checks_requested]
pull_request:
env:
TEST_RESULTS: testbed/tests/results/junit/results.xml
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
permissions: read-all
# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
arm-unittest-matrix:
strategy:
matrix:
os: [ubuntu-22.04-arm, macos-14]
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run ARM') || github.event_name == 'push' || github.event_name == 'merge_group') }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
timeout-minutes: 5
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Install dependencies
if: steps.go-cache.outputs.cache-hit != 'true'
run: make gomoddownload
- name: Run Unit Tests
run: make -j4 gotest
arm-unittest:
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run ARM') || github.event_name == 'push' || github.event_name == 'merge_group') }}
runs-on: ubuntu-latest
needs: [arm-unittest-matrix]
steps:
- name: Print result
run: echo ${{ needs.arm-unittest-matrix.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.arm-unittest-matrix.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi
================================================
FILE: .github/workflows/build-and-test-windows.yaml
================================================
name: build-and-test-windows
on:
push:
branches: [main]
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
merge_group:
types: [checks_requested]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
windows-unittest:
strategy:
fail-fast: false
matrix:
os: [windows-2022, windows-2025, windows-11-arm]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
env:
cache-name: cache-go-modules
with:
path: |
~\go\pkg\mod
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Ensure required ports in the dynamic range are available
run: |
& ${{ github.workspace }}\.github\workflows\scripts\win-required-ports.ps1
- name: Run Unit Tests
run: make gotest
windows-service-test:
strategy:
fail-fast: false
matrix:
os: [windows-2022, windows-2025, windows-11-arm]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
env:
cache-name: cache-go-modules
with:
path: |
~\go\pkg\mod
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Ensure required ports in the dynamic range are available
run: |
& ${{ github.workspace }}\.github\workflows\scripts\win-required-ports.ps1
- name: Make otelcorecol
run: make otelcorecol
- name: Install otelcorecol as a service
run: |
New-Service -Name "otelcorecol" -StartupType "Manual" -BinaryPathName "${PWD}\bin\otelcorecol_windows_$(go env GOARCH) --config ${PWD}\examples\local\otel-config.yaml"
eventcreate.exe /t information /id 1 /l application /d "Creating event provider for 'otelcorecol'" /so otelcorecol
- name: Test otelcorecol service
working-directory: ${{ github.workspace }}/otelcol
run: |
go test -timeout 90s -run ^TestCollectorAsService$ -v -tags=win32service
- name: Remove otelcorecol service
if: always()
run: |
Remove-Service otelcorecol
Remove-Item HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Application\otelcorecol
================================================
FILE: .github/workflows/build-and-test.yml
================================================
name: build-and-test
on:
push:
branches: [main]
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
merge_group:
types: [checks_requested]
pull_request:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
setup-environment:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Install dependencies
if: steps.go-cache.outputs.cache-hit != 'true'
run: make gomoddownload
lint:
runs-on: ubuntu-latest
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: golint
run: make -j2 golint
- name: goimpi
run: make goimpi
govulncheck:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Run `govulncheck`
run: make govulncheck
checks:
runs-on: ubuntu-latest
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "24"
- name: checklicense
run: make checklicense
- name: misspell
run: make misspell
- name: checkdoc
run: make checkdoc
- name: markdownlint
run: make markdownlint
- name: checkapi
run: make checkapi
- name: Check for go mod dependency changes
run: |
make gotidy
git diff --exit-code || (echo 'go.mod/go.sum deps changes detected, please run "make gotidy" and commit the changes in this PR.' && exit 1)
- name: go:porto
run: |
make goporto
git diff --exit-code || (echo 'Porto links are out of date, please run "make goporto" and commit the changes in this PR.' && exit 1)
- name: go:generate
run: |
make gogenerate
git diff --exit-code || (echo 'Generated code is out of date, please run "make gogenerate" and commit the changes in this PR.' && exit 1)
- name: Generate proto files
run: |
make genproto
git diff --exit-code || (echo 'Generated code is out of date, please run "make genproto" and commit the changes in this PR.' && exit 1)
- name: Gen Pdata
run: |
make genpdata
git diff --exit-code || (echo 'Generated code is out of date, please run "make genpdata" and commit the changes in this PR.' && exit 1)
- name: Gen otelcorecol
run: |
make genotelcorecol
git diff --exit-code || (echo 'Generated code is out of date, please run "make genotelcorecol" and commit the changes in this PR.' && exit 1)
- name: Multimod verify
run: make multimod-verify
- name: crosslink
run: |
make crosslink
git diff -s --exit-code || (echo 'Replace statements are out of date, please run "make crosslink" and commit the changes in this PR.' && exit 1)
- name: generate-chloggen-components
run: |
make generate-chloggen-components
git diff --exit-code || (echo '.chloggen/config.yaml is out of date, please run "make generate-chloggen-components" and commit the changes.' && exit 1)
unittest-matrix:
strategy:
matrix:
runner: [ubuntu-latest]
go-version: ["stable", "oldstable"]
runs-on: ${{ matrix.runner }}
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go-version }}
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Cache Build
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cache/go-build
key: unittest-${{ runner.os }}-${{ matrix.runner }}-go-build-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
- name: Run Unit Tests
run: |
make -j4 gotest-with-junit
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: test-results-${{ runner.os }}-${{ matrix.runner }}-${{ matrix.go-version }}
path: internal/tools/testresults/
retention-days: 4
unittest:
if: always()
runs-on: ubuntu-latest
needs: [setup-environment, unittest-matrix]
steps:
- name: Print result
run: echo ${{ needs.unittest-matrix.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.unittest-matrix.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi
test-coverage:
runs-on: ubuntu-latest
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Cache Build
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cache/go-build
key: coverage-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Run Unit Tests With Coverage
run: make gotest-with-cover
- name: Upload coverage report
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # 5.5.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
cross-build-collector:
needs: [setup-environment]
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
# Go 1.15 dropped support for 32-bit binaries
# on macOS: https://go.dev/doc/go1.15
#- goos: darwin
# goarch: 386
- goos: aix
goarch: ppc64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: js
goarch: wasm
- goos: linux
goarch: 386
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: linux
goarch: ppc64le
- goos: linux
goarch: riscv64
- goos: linux
goarch: arm
goarm: 7
- goos: linux
goarch: s390x
- goos: windows
goarch: 386
- goos: windows
goarch: amd64
- goos: windows
goarch: arm64
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Build
env:
GOOS: ${{matrix.goos}}
GOARCH: ${{matrix.goarch}}
GOARM: ${{matrix.goarm}}
run: |
make otelcorecol
================================================
FILE: .github/workflows/builder-integration-test.yaml
================================================
name: Builder - Integration tests
on:
# on changes to the main branch touching the builder
push:
branches: [main]
# on PRs touching the builder
pull_request:
branches: [main]
# once a day at 6:17 AM UTC
schedule:
- cron: "17 6 * * *"
# manual execution
workflow_dispatch:
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
integration-test:
name: Integration test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Test
run: make builder-integration-test
================================================
FILE: .github/workflows/builder-snapshot.yaml
================================================
name: Builder - Snapshot build
on:
push:
branches: [main]
# on PRs touching the builder
pull_request:
branches: [main]
paths:
- "cmd/builder/**"
permissions:
contents: read
env:
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
GORELEASER_PRO_VERSION: v2.11.1
jobs:
snapshot:
runs-on: ubuntu-24.04
if: ${{ github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: .core
- name: Pull the latest releases repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: opentelemetry-collector-releases
repository: open-telemetry/opentelemetry-collector-releases
- name: Copy release files
run: cp -R ./opentelemetry-collector-releases/cmd/builder/. ./.core/cmd/builder/
- uses: sigstore/cosign-installer@ba7bc0a3fef59531c69a25acd34668d6d3fe6f22 # v4.1.0
- uses: anchore/sbom-action/download-syft@57aae528053a48a3f6235f2d9461b05fbcb7366d # v0.23.1
- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
with:
platforms: amd64,arm64,ppc64le,s390x,riscv64
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_PRO_VERSION }}
args: check --verbose -f .core/cmd/builder/.goreleaser.yaml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_PRO_VERSION }}
args: --snapshot --clean -f .core/cmd/builder/.goreleaser.yaml --skip sign
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_YES: false
# Only create an issue if the workflows fails on push to main branch
- name: File an issue if the workflow failed
if: failure() && github.ref == 'refs/heads/main'
run: |
template=$(cat <<'END'
[Link to job log](%s)
END
)
job_url="$(gh run view ${{ github.run_id }} -R ${{ github.repository }} --json jobs -q '.jobs[] | select(.name == "snapshot") | .url')"
body="$(printf "$template" "$job_url")"
gh issue create -R ${{ github.repository }} -t 'OCB snapshot workflow failed' -b "$body" -l 'ci-cd' -l 'area:builder'
env:
GH_TOKEN: ${{ github.token }}
================================================
FILE: .github/workflows/changelog.yml
================================================
# This action requires that any PR targeting the main branch should touch at
# least one CHANGELOG file. If a CHANGELOG entry is not required, add the "Skip
# Changelog" label to disable this action.
name: changelog
on:
pull_request:
types: [opened, ready_for_review, synchronize, reopened, labeled, unlabeled, edited]
branches:
- main
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
changelog:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') }}
env:
PR_HEAD: ${{ github.event.pull_request.head.sha }}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Ensure no changes to the CHANGELOG.md or CHANGELOG-API.md
run: |
if [[ $(git diff --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD ./CHANGELOG*.md) ]]
then
echo "CHANGELOG.md and CHANGELOG-API.md should not be directly modified."
echo "Please add a .yaml file to the ./.chloggen/ directory."
echo "See CONTRIBUTING.md for more details."
echo "Alternately, add either \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped."
false
else
echo "CHANGELOG.md and CHANGELOG-API.md were not modified."
fi
- name: Ensure ./.chloggen/*.yaml addition(s)
run: |
if [[ 1 -gt $(git diff --diff-filter=A --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD ./.chloggen | grep -c \\.yaml) ]]
then
echo "No changelog entry was added to the ./.chloggen/ directory."
echo "Please add a .yaml file to the ./.chloggen/ directory."
echo "See CONTRIBUTING.md for more details."
echo "Alternately, add either \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped."
false
else
echo "A changelog entry was added to the ./.chloggen/ directory."
fi
- name: Validate ./.chloggen/*.yaml changes
run: |
make chlog-validate \
|| { echo "New ./.chloggen/*.yaml file failed validation."; exit 1; }
# In order to validate any links in the yaml file, render the config to markdown
- name: Render .chloggen changelog entries
run: make chlog-preview > changelog_preview.md
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
args: "--verbose --no-progress ./changelog_preview.md --config .github/lychee.toml"
failIfEmpty: false
================================================
FILE: .github/workflows/check-codeowners.yaml
================================================
name: codeowners
on:
push:
branches: [main]
paths:
- ".github/CODEOWNERS"
- "**/metadata.yaml"
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request_target:
paths:
- ".github/CODEOWNERS"
- "**/metadata.yaml"
types:
- opened
- synchronize
- edited
- reopened
env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: read-all
jobs:
check-codeowners:
timeout-minutes: 30
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-collector' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
id: go-setup
with:
go-version: oldstable
cache-dependency-path: "**/*.sum"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
path: pr
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
# NOTE: the make command below intentionally uses the Makefile from the
# target branch, and not the PR checkout, since it runs with the
# pull_request_target event and has elevated permissions.
- name: Gen CODEOWNERS
run: |
GITHUB_TOKEN=${{ steps.otelbot-token.outputs.token }} GITHUBGEN_ARGS="-folder=./pr" make generate-codeowners
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make generate-codeowners" or apply this diff and commit the changes in this PR.' && git diff && exit 1)
================================================
FILE: .github/workflows/check-links.yaml
================================================
name: check-links
on:
push:
branches: [main]
pull_request:
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
changedfiles:
name: changed files
runs-on: ubuntu-latest
env:
PR_HEAD: ${{ github.event.pull_request.head.sha }}
outputs:
files: ${{ steps.changes.outputs.files }}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Get changed files
id: changes
run: |
files=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs)
if [ -z "$files" ] && git diff --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep -q "package.json"; then
files="**/*.md"
fi
echo "files=$files" >> $GITHUB_OUTPUT
check-links:
runs-on: ubuntu-latest
needs: changedfiles
if: ${{needs.changedfiles.outputs.files}}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
args: "--verbose --no-progress ${{needs.changedfiles.outputs.files}} --config .github/lychee.toml"
failIfEmpty: false
================================================
FILE: .github/workflows/check-merge-freeze.yml
================================================
name: Merge freeze
on:
pull_request:
types:
[
opened,
ready_for_review,
synchronize,
reopened,
labeled,
unlabeled,
enqueued,
]
branches: [main]
merge_group:
types: [checks_requested]
permissions: read-all
jobs:
check-merge-freeze:
name: Check
# This condition is to avoid blocking the PR causing the freeze in the first place.
if: |
(!startsWith(github.event.pull_request.title || github.event.merge_group.head_commit.message, '[chore] Prepare release')) ||
((github.event.pull_request.user.login || github.event.merge_group.head_commit.author.name) != 'otelbot[bot]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: .github/workflows/scripts
- run: ./.github/workflows/scripts/check-merge-freeze.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: open-telemetry/opentelemetry-collector
================================================
FILE: .github/workflows/codeql-analysis.yml
================================================
name: "CodeQL Analysis"
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
CodeQL-Build:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
================================================
FILE: .github/workflows/contrib-tests.yml
================================================
name: contrib-tests
on:
push:
branches: [main]
tags:
- v[0-9]+.[0-9]+.[0-9]+.*
pull_request:
types: [opened, ready_for_review, synchronize, reopened, labeled, unlabeled]
branches: [main]
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions: read-all
jobs:
contrib-tests-prepare:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Prepare Contrib Tests
run: |
contrib_path=/tmp/opentelemetry-collector-contrib
git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path
make CONTRIB_PATH=$contrib_path prepare-contrib
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: contrib
path: /tmp/opentelemetry-collector-contrib/
include-hidden-files: true
contrib-tests-matrix:
runs-on: ubuntu-latest
needs: [contrib-tests-prepare]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
strategy:
fail-fast: false
matrix:
group:
- receiver-0
- receiver-1
- receiver-2
- receiver-3
- processor
- exporter-0
- exporter-1
- extension
- connector
- internal
- pkg
- cmd-0
- other
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download contrib
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
name: contrib
path: /tmp/contrib
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make CONTRIB_PATH=/tmp/contrib SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib
contrib_tests:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
needs: [contrib-tests-matrix]
steps:
- name: Print result
run: echo ${{ needs.contrib-tests-matrix.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.contrib-tests-matrix.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi
================================================
FILE: .github/workflows/fossa.yml
================================================
name: FOSSA scanning
on:
push:
branches:
- main
permissions:
contents: read
jobs:
fossa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: fossas/fossa-action@c414b9ad82eaad041e47a7cf62a4f02411f427a0 # v1.8.0
with:
api-key: ${{secrets.FOSSA_API_KEY}}
team: OpenTelemetry
================================================
FILE: .github/workflows/go-benchmarks.yml
================================================
name: CodSpeed Benchmarks
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group:
- receiver
- processor
- exporter
- pkg
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: ./.github/workflows/scripts/free-disk-space.sh
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
cache: true
- name: Calculate Modules
id: calc
run: |
if [ "${{ matrix.group }}" == "root" ]; then
echo "TARGET_MODULES=$(pwd)" >> $GITHUB_ENV
else
MODULES=$(find ./${{ matrix.group }} -mindepth 1 -maxdepth 2 -type f -name "go.mod" -exec dirname {} \; 2>/dev/null | sort | xargs echo -n || true)
if [ -z "$MODULES" ]; then
echo "SKIP_BENCH=true" >> $GITHUB_ENV
echo "No Go modules found in ${{ matrix.group }}, skipping this job."
else
echo "TARGET_MODULES=$MODULES" >> $GITHUB_ENV
fi
fi
- name: Run the benchmarks
if: env.SKIP_BENCH != 'true'
uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4.11.1
with:
mode: walltime
run: make for-all-target TARGET="timebenchmark" GOMODULES="${{ env.TARGET_MODULES }}"
cache-instruments: true
================================================
FILE: .github/workflows/lint-workflow-files.yml
================================================
name: Lint GitHub Workflow YAML Files
on:
push:
branches:
- main
pull_request:
paths:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
- '.github/actionlint.yaml'
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version: stable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Run Actionlint
run: |
make actionlint
- name: Reminder to Address Linting Errors
if: failure()
run: echo "⚠️ Please address all linting errors before merging this pull request."
- name: All linting checks passed
if: success()
run: echo "✅ All linting checks passed."
================================================
FILE: .github/workflows/milestone-add-to-pr.yml
================================================
# This action adds the "next release" milestone to a pull request
# when it is merged
name: "Project: Add PR to Milestone"
on:
pull_request_target:
types:
- closed
permissions: read-all
jobs:
update-pr:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open"
})
for (const milestone of milestones.data) {
if (milestone.title == "next release") {
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
milestone: milestone.number
});
return
}
}
================================================
FILE: .github/workflows/perf.yml
================================================
name: Automation - Performance
on:
push:
branches: [main]
permissions: read-all
jobs:
runperf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Run benchmark
run: make gobenchmark
# Disabling until fine-grained permissions token enabled for the
# repository
#- name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# tool: 'go'
# output-file-path: benchmarks.txt
# gh-pages-branch: gh-pages
# auto-push: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# benchmark-data-dir-path: "docs/dev/bench"
================================================
FILE: .github/workflows/ping-codeowners-issues.yml
================================================
name: 'Ping code owners on issues'
on:
issues:
types: [labeled]
permissions: read-all
jobs:
ping-owners:
permissions:
issues: write
runs-on: ubuntu-24.04
if: ${{ github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run ping-codeowners-issues.sh
run: ./.github/workflows/scripts/ping-codeowners-issues.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.number }}
COMPONENT: ${{ github.event.label.name }}
================================================
FILE: .github/workflows/ping-codeowners-on-new-issue.yml
================================================
name: 'Ping code owners on a new issue'
on:
issues:
types: [opened]
permissions: read-all
jobs:
ping-owners-on-new-issue:
permissions:
issues: write
runs-on: ubuntu-24.04
if: ${{ github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run ping-codeowners-on-new-issue.sh
run: ./.github/workflows/scripts/ping-codeowners-on-new-issue.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.number }}
TITLE: ${{ github.event.issue.title }}
BODY: ${{ github.event.issue.body }}
OPENER: ${{ github.event.issue.user.login }}
================================================
FILE: .github/workflows/ping-codeowners-prs.yml
================================================
name: 'Ping code owners on PRs'
on:
pull_request_target:
types:
- labeled
- ready_for_review
permissions: read-all
jobs:
ping-owners:
permissions:
pull-requests: write
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.repository_owner == 'open-telemetry' && github.event.pull_request.draft == false }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run ping-codeowners-prs.sh
run: ./.github/workflows/scripts/ping-codeowners-prs.sh
env:
REPO: ${{ github.repository }}
AUTHOR: ${{ github.event.pull_request.user.login }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.number }}
COMPONENT: ${{ github.event.label.name }}
================================================
FILE: .github/workflows/prepare-release.yml
================================================
name: Automation - Prepare Release
on:
workflow_dispatch:
# Determine the version number that will be assigned to the release. During the beta phase, we increment
# the minor version number and set the patch number to 0.
inputs:
candidate-stable:
description: Release candidate version (stable, like 1.3.0). Don't include a leading `v`.
current-stable:
required: true
description: Current version (stable, like 1.2.0). Don't include a leading `v`.
candidate-beta:
description: Release candidate version (beta, like 0.96.0). Don't include `v`.
current-beta:
required: true
description: Current version (beta, like 0.95.1). Don't include `v`.
permissions: read-all
jobs:
validate-versions-format:
runs-on: ubuntu-latest
steps:
- name: Validate version format
shell: bash
run: |
validate_beta_version() {
local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_beta ]]; then
echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher"
exit 1
fi
}
validate_stable_version() {
local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_stable ]]; then
echo "Invalid stable version format for $2. Major version must be greater than 1."
exit 1
fi
}
if [[ ! -z "${{ inputs.candidate-beta }}" ]]; then
validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta"
fi
validate_beta_version "${{ inputs.current-beta }}" "current-beta"
if [[ ! -z "${{ inputs.candidate-stable }}" ]]; then
validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable"
fi
validate_stable_version "${{ inputs.current-stable }}" "current-stable"
if [[ -z "${{ inputs.candidate-beta }}" && -z "${{ inputs.candidate-stable }}" ]]; then
echo "Candidate version is not set for beta or stable. Please set a version to proceed."
exit 1
fi
check-blockers:
needs:
- validate-versions-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
# Make sure that there are no open issues with release:blocker label in Core. The release has to be delayed until they are resolved.
- name: Check blockers in core
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: open-telemetry/opentelemetry-collector
run: ./.github/workflows/scripts/release-check-blockers.sh
# Make sure that there are no open issues with release:blocker label in Contrib. The release has to be delayed until they are resolved.
- name: Check blockers in contrib
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: open-telemetry/opentelemetry-collector-contrib
run: ./.github/workflows/scripts/release-check-blockers.sh
# Make sure the current main branch build successfully passes (Core).
- name: Check build status in core
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: open-telemetry/opentelemetry-collector
run: ./.github/workflows/scripts/release-check-build-status.sh
# Make sure the current main branch build successfully passes (Contrib).
- name: Check build status in contrib
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: open-telemetry/opentelemetry-collector-contrib
run: ./.github/workflows/scripts/release-check-build-status.sh
create-release-issue:
needs:
- check-blockers
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
# To keep track of the progress, it might be helpful to create a tracking issue similar to #6067. You are responsible
# for all of the steps under the "Performed by collector release manager" heading. Once the issue is created, you can
# create the individual ones by hovering them and clicking the "Convert to issue" button on the right hand side.
- name: Create issue for tracking release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CANDIDATE_BETA: ${{ inputs.candidate-beta }}
CANDIDATE_STABLE: ${{ inputs.candidate-stable }}
CURRENT_BETA: ${{ inputs.current-beta }}
CURRENT_STABLE: ${{ inputs.current-stable }}
REPO: open-telemetry/opentelemetry-collector
run: ./.github/workflows/scripts/release-create-tracking-issue.sh
# Releasing opentelemetry-collector
prepare-release:
needs:
- check-blockers
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
# Prepare Core for release.
# - Update CHANGELOG.md file, this is done via chloggen
# - Run make prepare-release PREVIOUS_VERSION=1.0.0 RELEASE_CANDIDATE=1.1.0 MODSET=stable
# - Run make prepare-release PREVIOUS_VERSION=0.52.0 RELEASE_CANDIDATE=0.53.0 MODSET=beta
- name: Prepare release for core
env:
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
REPO: open-telemetry/opentelemetry-collector
CANDIDATE_BETA: ${{ inputs.candidate-beta }}
CANDIDATE_STABLE: ${{ inputs.candidate-stable }}
CURRENT_BETA: ${{ inputs.current-beta }}
CURRENT_STABLE: ${{ inputs.current-stable }}
run: ./.github/workflows/scripts/release-prepare-release.sh
================================================
FILE: .github/workflows/release-branch.yml
================================================
name: Automation - Release Branch
on:
push:
tags:
# Trigger on beta version tags (0.x.x series) to create release branch
# This pattern matches: v0.{minor}.{patch} for new releases and bugfix releases
- 'v0.[0-9]+.[0-9]+'
- 'v0.[0-9]+.[0-9]+-*' # Also support release candidates if needed
permissions:
contents: read
jobs:
release-branch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Setup Git config
run: |
git config --global user.name "otelbot"
git config --global user.email "197425009+otelbot@users.noreply.github.com"
- name: Run release-branch.sh
run: |
./.github/workflows/scripts/release-branch.sh
env:
UPSTREAM_REMOTE_NAME: "origin"
MAIN_BRANCH_NAME: "main"
GITHUB_REF: ${{ github.ref }}
================================================
FILE: .github/workflows/rerun-workflows.yml
================================================
name: "Rerun Failed Workflows"
on:
issue_comment:
types:
- created
permissions: read-all
jobs:
rerun-failed:
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/rerun') && github.repository_owner == 'open-telemetry' }}
permissions:
actions: write
checks: read
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Run rerun-failed-workflows.sh
run: ./.github/workflows/scripts/rerun-failed-workflows.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.issue.number }}
COMMENT: ${{ github.event.comment.body }}
SENDER: ${{ github.event.comment.user.login }}
================================================
FILE: .github/workflows/scorecard.yml
================================================
name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '39 1 * * 3'
push:
branches: [ "main" ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read
steps:
- name: "Checkout code"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
sarif_file: results.sarif
================================================
FILE: .github/workflows/scripts/add-labels-and-owners.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
# Adds code owners without write access as reviewers on a PR. Note that
# the code owners must still be a member of the `open-telemetry`
# organization.
#
# Note that since this script is considered a requirement for PRs,
# it should never fail.
set -euo pipefail
if [[ -z "${REPO:-}" || -z "${PR:-}" ]]; then
echo "One or more of REPO and PR have not been set, please ensure each is set."
exit 0
fi
main () {
CUR_DIRECTORY=$(dirname "$0")
# Reviews may have comments that need to be cleaned up for jq,
# so restrict output to only printable characters and ensure escape
# sequences are removed.
# The latestReviews key only returns the latest review for each reviewer,
# cutting out any other reviews. We use that instead of requestedReviews
# since we need to get the list of users eligible for requesting another
# review. The GitHub CLI does not offer a list of all reviewers, which
# is only available through the API. To cut down on API calls to GitHub,
# we use the latest reviews to determine which users to filter out.
JSON=$(gh pr view "${PR}" --json "files,author,latestReviews" | LC_ALL=C tr -dc '[:print:]' | sed -E 's/\\[a-z]//g')
AUTHOR=$(echo -n "${JSON}"| jq -r '.author.login')
FILES=$(echo -n "${JSON}"| jq -r '.files[].path')
REVIEW_LOGINS=$(echo -n "${JSON}"| jq -r '.latestReviews[].author.login')
COMPONENTS=$(bash "${CUR_DIRECTORY}/get-components.sh")
REVIEWERS=""
LABELS=""
declare -A PROCESSED_COMPONENTS
declare -A REVIEWED
for REVIEWER in ${REVIEW_LOGINS}; do
# GitHub adds "app/" in front of user logins. The API docs don't make
# it clear what this means or whether it will always be present. The
# '/' character isn't a valid character for usernames, so this won't
# replace characters within a username.
REVIEWED["@${REVIEWER//app\//}"]=true
done
if [[ -v REVIEWED[@] ]]; then
echo "Users that have already reviewed this PR and will not have another review requested:" "${!REVIEWED[@]}"
else
echo "This PR has not yet been reviewed, all code owners are eligible for a review request"
fi
RISKY_REGEX='
^.github/workflows/prepare-release.yml$
|^.github/workflows/scripts/release-prepare-release.sh$
|^Makefile$
|^Makefile.Common$
'
RISKY_REGEX="$(echo "$RISKY_REGEX" | tr -d ' \n')"
RISKY_FILES="$(echo "$FILES" | grep -E "$RISKY_REGEX")"
if [[ -n "${RISKY_FILES}" ]]; then
echo "This PR may affect the release process, as it touches the following files:" \
"$(echo "$RISKY_FILES" | sed -E 's/\n/, /')"
LABELS="release:risky-change"
else
echo "This PR does not have release-affecting changes."
fi
for COMPONENT in ${COMPONENTS}; do
# Files will be in alphabetical order and there are many files to
# a component, so loop through files in an inner loop. This allows
# us to remove all files for a component from the list so they
# won't be checked against the remaining components in the components
# list. This provides a meaningful speedup in practice.
for FILE in ${FILES}; do
MATCH=$(echo -n "${FILE}" | grep -E "^${COMPONENT}" || true)
if [[ -z "${MATCH}" ]]; then
continue
fi
# If we match a file with a component we don't need to process the file again.
FILES=$(echo -n "${FILES}" | grep -v "${FILE}")
if [[ -v PROCESSED_COMPONENTS["${COMPONENT}"] ]]; then
continue
fi
PROCESSED_COMPONENTS["${COMPONENT}"]=true
OWNERS=$(COMPONENT="${COMPONENT}" bash "${CUR_DIRECTORY}/get-codeowners.sh")
for OWNER in ${OWNERS}; do
# Users that leave reviews are removed from the "requested reviewers"
# list and are eligible to have another review requested. We only want
# to request a review once, so remove them from the list.
if [[ -v REVIEWED["${OWNER}"] || "${OWNER}" = "@${AUTHOR}" ]]; then
continue
fi
if [[ -n "${REVIEWERS}" ]]; then
REVIEWERS+=","
fi
REVIEWERS+=$(echo -n "${OWNER}" | sed -E 's/@(.+)/"\1"/')
done
# Convert the CODEOWNERS entry to a label
COMPONENT_NAME=$(echo -n "${COMPONENT}" | sed -E 's%^(.+)/(.+)\1%\1/\2%')
if (( "${#COMPONENT_NAME}" > 50 )); then
echo "'${COMPONENT_NAME}' exceeds GitHub's 50-character limit on labels, skipping adding label"
continue
fi
if [[ -n "${LABELS}" ]]; then
LABELS+=","
fi
LABELS+="${COMPONENT_NAME}"
done
done
if [[ -n "${LABELS}" ]]; then
echo "Adding labels: ${LABELS}"
gh pr edit "${PR}" --add-label "${LABELS}" || echo "Failed to add labels"
else
echo "No labels found"
fi
# Note that adding the labels above will not trigger any other workflows to
# add code owners, so we have to do it here.
#
# We have to use the GitHub API directly due to an issue with how the CLI
# handles PR updates that causes it require access to organization teams,
# and the GitHub token doesn't provide that permission.
# For more: https://github.com/cli/cli/issues/4844
#
# The GitHub API validates that authors are not requested to review, but
# accepts duplicate logins and logins that are already reviewers.
if [[ -n "${REVIEWERS}" ]]; then
echo "Requesting review from ${REVIEWERS}"
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
"https://api.github.com/repos/${REPO}/pulls/${PR}/requested_reviewers" \
-d "{\"reviewers\":[${REVIEWERS}]}" \
| jq ".message" \
|| echo "jq was unable to parse GitHub's response"
else
echo "No code owners found"
fi
}
# We don't want this workflow to ever fail and block a PR,
# so ensure all errors are caught.
main || echo "Failed to run $0"
================================================
FILE: .github/workflows/scripts/add-labels-command.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
#
set -euo pipefail
if [[ -z "${ISSUE:-}" || -z "${COMMENT:-}" || -z "${SENDER:-}" ]]; then
echo "At least one of ISSUE, COMMENT, or SENDER has not been set, please ensure each is set."
exit 0
fi
CUR_DIRECTORY=$(dirname "$0")
if [[ ${COMMENT:0:6} != "/label" ]]; then
echo "Comment is not a label comment, exiting."
exit 0
fi
# key: label in comment
# value: actual label
declare -A COMMON_LABELS
COMMON_LABELS["arm64"]="arm64"
COMMON_LABELS["good-first-issue"]="good first issue"
COMMON_LABELS["help-wanted"]="help wanted"
COMMON_LABELS["discussion-needed"]="discussion-needed"
COMMON_LABELS["os:macos"]="os:macos"
COMMON_LABELS["os:windows"]="os:windows"
COMMON_LABELS["waiting-for-author"]="waiting-for-author"
COMMON_LABELS["waiting-for-codeowners"]="waiting-for-codeowners"
COMMON_LABELS["bug"]="bug"
COMMON_LABELS["priority:p0"]="priority:p0"
COMMON_LABELS["priority:p1"]="priority:p1"
COMMON_LABELS["priority:p2"]="priority:p2"
COMMON_LABELS["priority:p3"]="priority:p3"
COMMON_LABELS["stale"]="Stale"
LABELS=$(echo "${COMMENT}" | sed -E 's%^/label%%')
for LABEL_REQ in ${LABELS}; do
LABEL=$(echo "${LABEL_REQ}" | sed -E s/^[+-]?//)
# Trim newlines from label that would cause matching to fail
LABEL=$(echo "${LABEL}" | tr -d '\n')
SHOULD_ADD=true
if [[ "${LABEL_REQ:0:1}" = "-" ]]; then
SHOULD_ADD=false
fi
if [[ -v COMMON_LABELS["${LABEL}"] ]]; then
if [[ ${SHOULD_ADD} = true ]]; then
gh issue edit "${ISSUE}" --add-label "${COMMON_LABELS["${LABEL}"]}"
else
gh issue edit "${ISSUE}" --remove-label "${COMMON_LABELS["${LABEL}"]}"
fi
continue
fi
# Grep exits with status code 1 if there are no matches,
# so we manually set RESULT to 0 if nothing is found.
RESULT=$(grep -c "${LABEL}" .github/CODEOWNERS || true)
if [[ ${RESULT} = 0 ]]; then
echo "\"${LABEL}\" doesn't correspond to a component, skipping."
continue
fi
if [[ ${SHOULD_ADD} = true ]]; then
gh issue edit "${ISSUE}" --add-label "${LABEL}"
# Labels added by a GitHub Actions workflow don't trigger other workflows
# by design, so we have to manually ping code owners here.
COMPONENT="${LABEL}" ISSUE=${ISSUE} SENDER="${SENDER}" bash "${CUR_DIRECTORY}/ping-codeowners-issues.sh"
else
gh issue edit "${ISSUE}" --remove-label "${LABEL}"
fi
done
================================================
FILE: .github/workflows/scripts/check-merge-freeze.sh
================================================
#!/bin/bash -e
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
# Check for [chore] Prepare release PRs in core repo
BLOCKERS=$( gh pr list -A "otelbot[bot]" -S "[chore] Prepare release" --json url -q '.[].url' -R "${REPO}" )
# Check for [chore] Update core dependencies PRs in opentelemetry-collector-contrib
CONTRIB_REPO="open-telemetry/opentelemetry-collector-contrib"
CONTRIB_BLOCKERS=$( gh pr list -A "otelbot[bot]" -S "[chore] Update core dependencies" --json url -q '.[].url' -R "${CONTRIB_REPO}" )
# Combine both blockers
BLOCKERS="${BLOCKERS}${BLOCKERS:+ }${CONTRIB_BLOCKERS}"
if [ "${BLOCKERS}" != "" ]; then
echo "Merging in main is frozen, as there are open release/update PRs: ${BLOCKERS}"
echo "If you believe this is no longer true, re-run this job to unblock your PR."
exit 1
fi
================================================
FILE: .github/workflows/scripts/free-disk-space.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
echo "Available disk space before:"
df -h /
# The Android SDK is the biggest culprit for the lack of disk space in CI.
# It is installed into /usr/local/lib/android manually (ie. not with apt) by this script:
# https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-android-sdk.sh
# so let's delete the directory manually.
echo "Deleting unused Android SDK and tools..."
sudo rm -rf /usr/local/lib/android
echo "Available disk space after:"
df -h /
================================================
FILE: .github/workflows/scripts/get-codeowners.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
# This script checks the GitHub CODEOWNERS file for any code owners
# of contrib components and returns a string of the code owners if it
# finds them.
set -euo pipefail
get_component_type() {
echo "${COMPONENT}" | cut -f 1 -d '/'
}
get_codeowners() {
# grep arguments explained:
# -m 1: Match the first occurrence
# ^: Match from the beginning of the line
# ${1}: Insert first argument given to this function
# [\/]\?: Match 0 or 1 instances of a forward slash
# \s: Match any whitespace character
(grep -m 1 "^${1}[\/]\?\s" .github/CODEOWNERS || true) | \
sed 's/ */ /g' | \
cut -f3- -d ' '
}
if [[ -z "${COMPONENT:-}" ]]; then
echo "COMPONENT has not been set, please ensure it is set."
exit 1
fi
OWNERS="$(get_codeowners "${COMPONENT}")"
if [[ -z "${OWNERS:-}" ]]; then
COMPONENT_TYPE=$(get_component_type "${COMPONENT}")
OWNERS="$(get_codeowners "${COMPONENT}${COMPONENT_TYPE}")"
fi
echo "${OWNERS}"
================================================
FILE: .github/workflows/scripts/get-components.sh
================================================
#!/usr/bin/env sh
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
# Get a list of components within the repository that have some form of ownership
# ascribed to them.
grep -E '^[A-Za-z0-9/]' .github/CODEOWNERS | \
awk '{ print $1 }' | \
sed -E 's%(.+)/$%\1%'
================================================
FILE: .github/workflows/scripts/ping-codeowners-issues.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
#
set -euo pipefail
if [[ -z "${COMPONENT:-}" || -z "${ISSUE:-}" ]]; then
echo "Either COMPONENT or ISSUE has not been set, please ensure both are set."
exit 0
fi
CUR_DIRECTORY=$(dirname "$0")
OWNERS=$(COMPONENT="${COMPONENT}" bash "${CUR_DIRECTORY}/get-codeowners.sh")
if [[ -z "${OWNERS}" ]]; then
exit 0
fi
gh issue comment "${ISSUE}" --body "Pinging code owners for ${COMPONENT}: ${OWNERS}. See [Adding Labels via Comments](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#adding-labels-via-comments) if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triage' to set the priority and remove the needs-triage label."
================================================
FILE: .github/workflows/scripts/ping-codeowners-on-new-issue.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
#
set -euo pipefail
if [[ -z "${ISSUE:-}" || -z "${TITLE:-}" || -z "${BODY:-}" || -z "${OPENER:-}" ]]; then
echo "Missing one of ISSUE, TITLE, BODY, or OPENER, please ensure all are set."
exit 0
fi
LABELS_COMMENT='See [Adding Labels via Comments](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#adding-labels-via-comments) if you do not have permissions to add labels yourself.'
CUR_DIRECTORY=$(dirname "$0")
LABELS=""
PING_LINES=""
declare -A PINGED_COMPONENTS
TITLE_COMPONENT=$(echo "${TITLE}" | (grep -oE "\[.+\]" || true) | sed -E 's/\[(.+)\]/\1/' | sed -E 's%^(.+)/(.+)\1%\1/\2%')
COMPONENTS_SECTION_START=$( (echo "${BODY}" | grep -n '### Component(s)' | awk '{ print $1 }' | grep -oE '[0-9]+') || echo '-1' )
BODY_COMPONENTS=""
if [[ "${COMPONENTS_SECTION_START}" != '-1' ]]; then
BODY_COMPONENTS=$(echo "${BODY}" | sed -n $((COMPONENTS_SECTION_START+2))p)
fi
if [[ -n "${TITLE_COMPONENT}" && ! ("${TITLE_COMPONENT}" =~ " ") ]]; then
CODEOWNERS=$(COMPONENT="${TITLE_COMPONENT}" "${CUR_DIRECTORY}/get-codeowners.sh" || true)
if [[ -n "${CODEOWNERS}" ]]; then
PING_LINES+="- ${TITLE_COMPONENT}: ${CODEOWNERS}\n"
PINGED_COMPONENTS["${TITLE_COMPONENT}"]=1
if (( "${#TITLE_COMPONENT}" <= 50 )); then
LABELS+="${TITLE_COMPONENT}"
else
echo "'${TITLE_COMPONENT}' exceeds GitHub's 50-character limit, skipping adding a label"
fi
fi
fi
for COMPONENT in ${BODY_COMPONENTS}; do
# Comments are delimited by ', ' and the for loop separates on spaces, so remove the extra comma.
COMPONENT=${COMPONENT//,/}
CODEOWNERS=$(COMPONENT="${COMPONENT}" "${CUR_DIRECTORY}/get-codeowners.sh" || true)
if [[ -n "${CODEOWNERS}" ]]; then
if [[ -v PINGED_COMPONENTS["${COMPONENT}"] ]]; then
continue
fi
PING_LINES+="- ${COMPONENT}: ${CODEOWNERS}\n"
PINGED_COMPONENTS["${COMPONENT}"]=1
if (( "${#COMPONENT}" > 50 )); then
echo "'${COMPONENT}' exceeds GitHub's 50-character limit on labels, skipping adding a label"
continue
fi
if [[ -n "${LABELS}" ]]; then
LABELS+=","
fi
LABELS+="${COMPONENT}"
fi
done
if [[ -v PINGED_COMPONENTS[@] ]]; then
echo "The issue was associated with components:" "${!PINGED_COMPONENTS[@]}"
else
echo "No related components were given"
fi
if [[ -n "${LABELS}" ]]; then
# Notes on this call:
# 1. Labels will be deduplicated by the GitHub CLI.
# 2. The call to edit the issue will fail if any of the
# labels doesn't exist. We can be reasonably sure that
# all labels will exist since they come from a known set.
echo "Adding the following labels: ${LABELS//,/ /}"
gh issue edit "${ISSUE}" --add-label "${LABELS}" || true
else
echo "No labels were found to add"
fi
if [[ -n "${PING_LINES}" ]]; then
# Notes on this call:
# 1. Adding labels above will not trigger the ping-codeowners flow,
# since GitHub Actions disallows triggering a workflow from a
# workflow, so we have to ping code owners here.
# 2. The GitHub CLI only offers multiline strings through file input,
# so we provide the comment through stdin.
# 3. The PING_LINES variable must be directly put into the echo string
# to get the newlines to render correctly, using string formatting
# causes the newlines to be interpreted literally.
echo -e "Pinging code owners:\n${PING_LINES}"
echo -e "Pinging code owners:\n${PING_LINES}\n" "${LABELS_COMMENT}" \
| gh issue comment "${ISSUE}" -F -
else
echo "No code owners were found to ping"
fi
================================================
FILE: .github/workflows/scripts/ping-codeowners-prs.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
set -euo pipefail
if [[ -z "${REPO:-}" || -z "${AUTHOR:-}" || -z "${COMPONENT:-}" || -z "${PR:-}" ]]; then
echo "At least one of REPO, AUTHOR, COMPONENT, or PR has not been set, please ensure each is set."
exit 0
fi
CUR_DIRECTORY=$(dirname "$0")
main() {
OWNERS=$(COMPONENT="${COMPONENT}" bash "${CUR_DIRECTORY}/get-codeowners.sh")
REVIEWERS=""
if [[ -z "${OWNERS}" ]]; then
exit 0
fi
for OWNER in ${OWNERS}; do
if [[ "${OWNER}" = "@${AUTHOR}" ]]; then
continue
fi
if [[ -n "${REVIEWERS}" ]]; then
REVIEWERS+=","
fi
REVIEWERS+=$(echo "${OWNER}" | sed -E 's/@(.+)/"\1"/')
done
# We have to use the GitHub API directly due to an issue with how the CLI
# handles PR updates that causes it require access to organization teams,
# and the GitHub token doesn't provide that permission.
# For more: https://github.com/cli/cli/issues/4844
#
# The GitHub API validates that authors are not requested to review, but
# accepts duplicate logins and logins that are already reviewers.
echo "Requesting review from code owners: ${REVIEWERS}"
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
"https://api.github.com/repos/${REPO}/pulls/${PR}/requested_reviewers" \
-d "{\"reviewers\":[${REVIEWERS}]}" \
| jq ".message" \
|| echo "jq was unable to parse GitHub's response"
}
# We don't want this workflow to ever fail and block a PR,
# so ensure all errors are caught.
main || echo "Failed to run $0"
================================================
FILE: .github/workflows/scripts/release-branch.sh
================================================
#!/bin/bash -ex
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
# --- Configuration ---
UPSTREAM_REMOTE_NAME=${UPSTREAM_REMOTE_NAME:-"upstream"} # Your upstream remote name for open-telemetry/opentelemetry-collector
MAIN_BRANCH_NAME=${MAIN_BRANCH_NAME:-"main"}
LOCAL_MAIN_BRANCH_NAME=${LOCAL_MAIN_BRANCH_NAME:-"${MAIN_BRANCH_NAME}"}
# These variables are only used if git user.name and git user.email are not configured
GIT_CONFIG_USER_NAME=${GIT_CONFIG_USER_NAME:-"otelbot"}
GIT_CONFIG_USER_EMAIL=${GIT_CONFIG_USER_EMAIL:-"197425009+otelbot@users.noreply.github.com"}
# --- Extract release information from tag ---
if [[ -z "$GITHUB_REF" ]]; then
echo "Error: GITHUB_REF environment variable must be provided when running in GitHub Actions."
echo "For manual usage: GITHUB_REF=refs/tags/v0.85.0 $0"
exit 1
fi
# Extract tag name and validate format using regex
if [[ ! $GITHUB_REF =~ ^refs/tags/v([0-9]+\.[0-9]+)\.[0-9]+(-.+)?$ ]]; then
echo "Error: GITHUB_REF did not match expected format (refs/tags/vX.XX.X)"
exit 1
fi
# Extract version numbers from regex match
VERSION_MAJOR_MINOR=${BASH_REMATCH[1]}
RELEASE_SERIES="v${VERSION_MAJOR_MINOR}.x"
echo "Release series: ${RELEASE_SERIES}"
# --- Use current commit as prepare release commit ---
PREPARE_RELEASE_COMMIT_HASH="${GITHUB_SHA:-HEAD}"
echo "Using current commit as prepare release commit: ${PREPARE_RELEASE_COMMIT_HASH}"
RELEASE_BRANCH_NAME="release/${RELEASE_SERIES}"
echo "Automating Release Steps for: ${RELEASE_SERIES}"
echo "Release Branch Name: ${RELEASE_BRANCH_NAME}"
echo "'Prepare release' commit hash: ${PREPARE_RELEASE_COMMIT_HASH}"
echo "Upstream Remote: ${UPSTREAM_REMOTE_NAME}"
echo "--------------------------------------------------"
# --- Step 4: Checkout main, Pull, Create/Update and Push Release Branch ---
echo ""
echo "=== Step 4: Preparing and Pushing Release Branch ==="
# 1. Checkout main
git checkout "${LOCAL_MAIN_BRANCH_NAME}"
# 2. Fetch from upstream (updates remote-tracking branches including potential existing release branch)
git fetch "${UPSTREAM_REMOTE_NAME}"
# 3. Rebase local main with upstream/main
git rebase "${UPSTREAM_REMOTE_NAME}/${MAIN_BRANCH_NAME}"
echo "'${LOCAL_MAIN_BRANCH_NAME}' branch is now up-to-date."
# Verify the commit exists (it should be reachable from main after fetch)
if ! git cat-file -e "${PREPARE_RELEASE_COMMIT_HASH}^{commit}" 2>/dev/null; then
echo "Error: Provided 'Prepare release' commit hash '${PREPARE_RELEASE_COMMIT_HASH}' not found."
exit 1
fi
# 4. Handle Release Branch: Check existence, create or switch, and merge/base
BRANCH_EXISTS_LOCALLY=$(git branch --list "${RELEASE_BRANCH_NAME}")
# Check remote by looking for the remote tracking branch ref after fetch
if git rev-parse --verify --quiet "${UPSTREAM_REMOTE_NAME}/${RELEASE_BRANCH_NAME}" > /dev/null 2>&1; then
BRANCH_EXISTS_REMOTELY=true
fi
if [[ -n "$BRANCH_EXISTS_LOCALLY" ]]; then
echo "Release branch '${RELEASE_BRANCH_NAME}' found locally."
echo "Please delete local release branch using 'git branch -D ${RELEASE_BRANCH_NAME}' and run the script again."
exit 1
elif [[ -n "$BRANCH_EXISTS_REMOTELY" ]]; then
echo "Release branch '${RELEASE_BRANCH_NAME}' found on remote '${UPSTREAM_REMOTE_NAME}'."
echo "Nothing to do, exiting."
exit 0
else
echo "Release branch '${RELEASE_BRANCH_NAME}' not found locally or on remote."
git switch -c "${RELEASE_BRANCH_NAME}" "${PREPARE_RELEASE_COMMIT_HASH}"
fi
echo "Current branch is now '${RELEASE_BRANCH_NAME}'."
git --no-pager log -1 --pretty=oneline # Show the commit at the tip of the release branch
# 5. Push the release branch to upstream
git push -u "${UPSTREAM_REMOTE_NAME}" "${RELEASE_BRANCH_NAME}"
echo "Branch '${RELEASE_BRANCH_NAME}' pushed (or updated) on '${UPSTREAM_REMOTE_NAME}'."
echo "Step 4 completed."
echo "--------------------------------------------------"
echo ""
echo "Automation for release branch creation complete."
echo "Release branch '${RELEASE_BRANCH_NAME}' has been created from the prepare release commit."
echo "Tag-triggered build workflows should now be running for the pushed tags."
================================================
FILE: .github/workflows/scripts/release-check-blockers.sh
================================================
#!/bin/bash -ex
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
BLOCKERS=$( gh issue list --search "label:release:blocker" --json url --jq '.[].url' --repo "${REPO}" )
if [ "${BLOCKERS}" != "" ]; then
echo "Release blockers in ${REPO} repo: ${BLOCKERS}"
exit 1
fi
================================================
FILE: .github/workflows/scripts/release-check-build-status.sh
================================================
#!/bin/bash -ex
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
BRANCH=main
WORKFLOW=build-and-test
RESULT=$(gh run list --branch "${BRANCH}" --json status --jq '[.[] | select(.status != "queued" and .status != "in_progress")][0].status' --workflow "${WORKFLOW}" --repo "${REPO}" )
if [ "${RESULT}" != "completed" ]; then
echo "Build status in ${REPO} is not completed: ${RESULT}"
gh run list --branch "${BRANCH}" --json status,url --jq '[.[] | select(.status != "queued" and .status != "in_progress")][0].url' --workflow "${WORKFLOW}" --repo "${REPO}"
exit 1
fi
================================================
FILE: .github/workflows/scripts/release-create-tracking-issue.sh
================================================
#!/bin/bash -ex
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
RELEASE_VERSION=v${CANDIDATE_STABLE}/v${CANDIDATE_BETA}
if [ "${CANDIDATE_STABLE}" == "" ]; then
RELEASE_VERSION="v${CANDIDATE_BETA}"
fi
if [ "${CANDIDATE_BETA}" == "" ]; then
RELEASE_VERSION="v${CANDIDATE_STABLE}"
fi
EXISTING_ISSUE=$( gh issue list --search "in:title Release ${RELEASE_VERSION}" --json url --jq '.[].url' --repo "${REPO}" --state open --label release )
if [ "${EXISTING_ISSUE}" != "" ]; then
echo "Issue already exists: ${EXISTING_ISSUE}"
exit 0
fi
gh issue create -a "${GITHUB_ACTOR}" --repo "${REPO}" --label release --title "Release ${RELEASE_VERSION}" --body "Like #14236, but for ${RELEASE_VERSION}
**Performed by collector release manager**
- [ ] Prepare core release ${RELEASE_VERSION}
- [ ] Tag and release core ${RELEASE_VERSION}
**Performed by collector contrib release manager**
- [ ] Prepare contrib release v${CANDIDATE_BETA}
- [ ] Tag and release contrib v${CANDIDATE_BETA}
**Performed by collector releases release manager**
- [ ] Prepare otelcol containers images release v${CANDIDATE_BETA}
- [ ] Tag and otelcol containers images release v${CANDIDATE_BETA}
**Performed by operator maintainers**
- [ ] Release the operator v${CANDIDATE_BETA}
**Performed by helm chart maintainers**
- [ ] Update the opentelemetry-collector helm chart to use v${CANDIDATE_BETA}"
================================================
FILE: .github/workflows/scripts/release-prepare-release.sh
================================================
#!/bin/bash -ex
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
if [ "${CANDIDATE_STABLE}" == "" ] && [ "${CANDIDATE_BETA}" == "" ]; then
echo "One of CANDIDATE_STABLE or CANDIDATE_BETA must be set"
exit 1
fi
# Expand CURRENT_STABLE and CURRENT_BETA to escape . character by using [.]
CURRENT_STABLE_ESCAPED=${CURRENT_STABLE//./[.]}
CURRENT_BETA_ESCAPED=${CURRENT_BETA//./[.]}
RELEASE_VERSION=v${CANDIDATE_STABLE}/v${CANDIDATE_BETA}
if [ "${CANDIDATE_STABLE}" == "" ]; then
RELEASE_VERSION="v${CANDIDATE_BETA}"
fi
if [ "${CANDIDATE_BETA}" == "" ]; then
RELEASE_VERSION="v${CANDIDATE_STABLE}"
fi
make chlog-update VERSION="${RELEASE_VERSION}"
COMMANDS="- make chlog-update VERSION=${RELEASE_VERSION}"
git config user.name otelbot
git config user.email 197425009+otelbot@users.noreply.github.com
BRANCH="prepare-release-prs/${CANDIDATE_BETA}"
git checkout -b "${BRANCH}"
git add --all
git commit -m "Changelog update ${RELEASE_VERSION}"
if [ "${CANDIDATE_STABLE}" != "" ]; then
make prepare-release PREVIOUS_VERSION="${CURRENT_STABLE_ESCAPED}" RELEASE_CANDIDATE="${CANDIDATE_STABLE}" MODSET=stable
COMMANDS+="
- make prepare-release PREVIOUS_VERSION=${CURRENT_STABLE_ESCAPED} RELEASE_CANDIDATE=${CANDIDATE_STABLE} MODSET=stable"
fi
if [ "${CANDIDATE_BETA}" != "" ]; then
make prepare-release PREVIOUS_VERSION="${CURRENT_BETA_ESCAPED}" RELEASE_CANDIDATE="${CANDIDATE_BETA}" MODSET=beta
COMMANDS+="
- make prepare-release PREVIOUS_VERSION=${CURRENT_BETA_ESCAPED} RELEASE_CANDIDATE=${CANDIDATE_BETA} MODSET=beta"
fi
git push --set-upstream origin "${BRANCH}"
# Use OpenTelemetryBot account to create PR, allowing workflows to run
# The title must match the checks in check-merge-freeze.yml
gh pr create --head "$(git branch --show-current)" --title "[chore] Prepare release ${RELEASE_VERSION}" --body "
The following commands were run to prepare this release:
${COMMANDS}
"
================================================
FILE: .github/workflows/scripts/rerun-failed-workflows.sh
================================================
#!/usr/bin/env bash
#
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
set -euo pipefail
if [[ -z "${PR_NUMBER:-}" || -z "${COMMENT:-}" || -z "${SENDER:-}" ]]; then
echo "PR_NUMBER, COMMENT, or SENDER not set"
exit 0
fi
if [[ ${COMMENT:0:6} != "/rerun" ]]; then
echo "Not a rerun command"
exit 0
fi
PR_DATA=$(gh pr view "${PR_NUMBER}" --json headRefOid,author)
HEAD_SHA=$(echo "${PR_DATA}" | jq -r '.headRefOid')
PR_AUTHOR=$(echo "${PR_DATA}" | jq -r '.author.login')
if [[ "${SENDER}" != "${PR_AUTHOR}" ]]; then
echo "Only PR author can rerun workflows"
exit 0
fi
echo "Finding failed workflows for commit: ${HEAD_SHA}"
FAILED_RUNS=$(gh run list \
--commit "${HEAD_SHA}" \
--status failure \
--json databaseId \
--jq '.[].databaseId')
if [[ -z "${FAILED_RUNS}" ]]; then
echo "No failed workflows found"
exit 0
else
for RUN_ID in ${FAILED_RUNS}; do
echo "Rerunning workflow: ${RUN_ID}"
gh run rerun "${RUN_ID}" --failed
done
fi
================================================
FILE: .github/workflows/scripts/win-required-ports.ps1
================================================
<#
.SYNOPSIS
This script ensures that the ports required by the default configuration of the collector are available.
.DESCRIPTION
Certain runs on GitHub Actions sometimes have ports required by the default configuration reserved by other
applications via the WinNAT service.
#>
#Requires -RunAsAdministrator
netsh interface ip show excludedportrange protocol=tcp
Stop-Service winnat
# Only port in the dynamic range that is being, from time to time, reserved by other applications.
netsh interface ip add excludedportrange protocol=tcp startport=55679 numberofports=1
Start-Service winnat
netsh interface ip show excludedportrange protocol=tcp
================================================
FILE: .github/workflows/shellcheck.yml
================================================
name: Shellcheck lint
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
permissions: read-all
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
================================================
FILE: .github/workflows/sourcecode-release.yaml
================================================
name: Source Code - Release
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write # Grant write permissions to repository contents
issues: write # Grant write permissions to PR milestones
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
# Extract title from latest version title in CHANGELOG.md
- name: Prepare release title
id: release-title
run: |
echo "title=$(grep -A 2 '<!-- next version -->' CHANGELOG.md | awk '/##/{print $2}')" >> $GITHUB_OUTPUT
- name: Prepare release notes
run: |
touch release-notes.md
echo "### Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/${{ github.ref_name }}" >> release-notes.md
echo "" >> release-notes.md
echo "## End User Changelog" >> release-notes.md
awk '/<!-- next version -->/,/<!-- previous-version -->/' CHANGELOG.md > tmp-chlog.md # select changelog of latest version only
sed '1,3d' tmp-chlog.md >> release-notes.md # delete first 3 lines of file
echo "" >> release-notes.md
echo "## API Changelog" >> release-notes.md
awk '/<!-- next version -->/,/<!-- previous-version -->/' CHANGELOG-API.md > tmp-chlog-api.md # select changelog of latest version only
sed '1,3d' tmp-chlog-api.md >> release-notes.md # delete first 3 lines of file
- name: Create Github Release
run: |
gh release create ${{ github.ref_name }} -t ${{ steps.release-title.outputs.title }} -F release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open"
})
for (const milestone of milestones.data) {
if (milestone.title == "next release") {
await github.rest.issues.updateMilestone({
owner: context.repo.owner,
repo: context.repo.repo,
milestone_number: milestone.number,
title: "${{ github.ref_name }}"
});
await github.rest.issues.createMilestone({
owner: context.repo.owner,
repo: context.repo.repo,
title: "next release"
});
return
}
}
================================================
FILE: .github/workflows/spell-check.yaml
================================================
name: Spell Check
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run cSpell
uses: streetsidesoftware/cspell-action@9cd41bb518a24fefdafd9880cbab8f0ceba04d28 # v8.3.0
with:
incremental_files_only: false
use_cspell_files: true
config: '.github/workflows/utils/cspell.json'
================================================
FILE: .github/workflows/stale-pr.yaml
================================================
name: "Close stale pull requests"
on:
schedule:
- cron: "12 3 * * *" # arbitrary time not to DDOS GitHub
permissions: read-all
jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This PR was marked stale due to lack of activity. It will be closed in 14 days."
close-pr-message: "Closed as inactive. Feel free to reopen if this PR is still being worked on."
days-before-pr-stale: 14
days-before-issue-stale: 730
days-before-pr-close: 14
days-before-issue-close: 30
================================================
FILE: .github/workflows/survey-on-merged-pr.yml
================================================
name: Survey on Merged PR by Non-Member
on:
pull_request_target:
types: [closed]
permissions:
contents: read
env:
PR_NUM: ${{ github.event.pull_request.number }}
SURVEY_URL: https://docs.google.com/forms/d/e/1FAIpQLSf2FfCsW-DimeWzdQgfl0KDzT2UEAqu69_f7F2BVPSxVae1cQ/viewform?entry.1540511742=open-telemetry/opentelemetry-collector
jobs:
comment-on-pr:
name: Add survey to PR if author is not a member
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
- name: Add survey comment if author is not a member or bot
run: |
USERNAME="${{ github.event.pull_request.user.login }}"
USER_TYPE="${{ github.event.pull_request.user.type }}"
ORG="${{ github.repository_owner }}"
# Skip if user is a bot
if [[ "$USER_TYPE" == "Bot" ]]; then
echo "Skipping survey for bot user: $USERNAME"
exit 0
fi
# Skip if user is an org member
if gh api "orgs/$ORG/members/$USERNAME" --silent; then
echo "Skipping survey for org member: $USERNAME"
exit 0
fi
# Add survey comment for external contributor
echo "Adding survey comment for external contributor: $USERNAME"
gh pr comment ${PR_NUM} --repo ${{ github.repository }} --body "Thank you for your contribution @${USERNAME}! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this [survey](${SURVEY_URL})."
env:
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
================================================
FILE: .github/workflows/tidy-dependencies.yml
================================================
name: "Project: Tidy"
on:
pull_request_target:
types: [opened, ready_for_review, synchronize, reopened, labeled, unlabeled]
branches:
- main
permissions: read-all
jobs:
setup-environment:
permissions:
contents: write # for Git to git push
timeout-minutes: 30
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependency-major-update') && (github.actor == 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'renovatebot')) && github.event.pull_request.head.repo.fork == false }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Install dependencies
if: steps.go-cache.outputs.cache-hit != 'true'
run: make -j2 gomoddownload
- name: go mod tidy
run: |
make gotidy
git config user.name otelbot
git config user.email 197425009+otelbot@users.noreply.github.com
echo "git diff --exit-code || (git add . && git commit -m \"go mod tidy\" && git push)"
git diff --exit-code || (git add . && git commit -m "go mod tidy" && git push)
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
with:
labels: renovatebot
================================================
FILE: .github/workflows/utils/cspell.json
================================================
{
"version": "0.2",
"language": "en",
"words": [
"aggregatable",
"Alolita",
"Andrzej",
"Anoshin",
"Appy",
"Autobuild",
"Backpressure",
"Baeyens",
"Bebbington",
"Biswal",
"Bogdan",
"Boten",
"CHACHA",
"CODEOWNERS",
"Chao",
"Chrs",
"Confmap",
"DOLLARSIGN",
"Distro",
"Dmitrii",
"Dockerhub",
"Dont",
"Drutu",
"Dynatrace",
"Excalidraw",
"Expvar",
"Fanout",
"FIPS",
"Funcs",
"GHSA",
"GOARCH",
"GOARM",
"GOBIN",
"GOCMD",
"GOMEMLIMIT",
"GOPATH",
"GOPROXY",
"Guiton",
"HKLM",
"Helmuth",
"Hostfeature",
"Islamov",
"Jaglowski",
"Janotti",
"Juraci",
"Karis",
"Keepalive",
"Koanf",
"Kröhling",
"MODSET",
"Makwana",
"Mapprovider",
"Marshalers",
"Marshallers",
"Mathieu",
"Mirabella",
"Najaryan",
"Nanos",
"OTELBOT",
"OTEP",
"OTTL",
"Olly",
"Owais",
"Paixão",
"Pdata",
"Prometheusremotewrite",
"Punya",
"RCPC",
"Rahul",
"SASL",
"Samplingdecision",
"Sharma",
"Statefulness",
"Stencel",
"Strindices",
"Tailsampling",
"Tigran",
"Toulme",
"Triagers",
"Unconfigured",
"Unmarshable",
"Unmarshal",
"Unmarshalable",
"Unmarshaller",
"Unmarshallers",
"unmarshalled",
"Vihas",
"Weng",
"Zipkin",
"adilhusain",
"alibabacloudlogserviceexporter",
"alives",
"anchore",
"andrzej",
"apidiff",
"atombender",
"atoulme",
"attributeprocessor",
"attributesprocessor",
"authextension",
"authtest",
"autobuild",
"backoffs",
"backpressure",
"ballastextension",
"batchprocessor",
"bearertokenauthextension",
"behaviour",
"bogdandrutu",
"braydonk",
"bucketize",
"buildinfo",
"buildx",
"bwalk",
"capabilityconsumer",
"certfile",
"cgroupv",
"checkapi",
"checkdoc",
"checklicense",
"cheung",
"chlog",
"chloggen",
"cmux",
"codeboten",
"codeowners",
"componentalias",
"componenterror",
"componenthelper",
"componentprofiles",
"componentstatus",
"componenttest",
"configauth",
"configcheck",
"configcompression",
"configcompressions",
"configerror",
"configgrpc",
"confighttp",
"configloader",
"configmapprovider",
"configmiddleware",
"configmodels",
"confignet",
"configopaque",
"configoptional",
"configparser",
"configretry",
"configrpc",
"configschema",
"configsource",
"configtelemetry",
"configtest",
"configtls",
"configunmarshaler",
"confmap",
"confmaptest",
"connectorprofiles",
"connectortest",
"consumerdata",
"consumererror",
"consumererrorprofiles",
"consumerfanout",
"consumerhelper",
"consumerprofiles",
"consumertest",
"consumetest",
"conv",
"cookiejar",
"coreinternal",
"cpus",
"cpuscraper",
"crobert",
"crosslink",
"cumulativetodeltaprocessor",
"customname",
"dataloss",
"datapoints",
"debugexporter",
"defaultcomponents",
"dehaansa",
"distro",
"distros",
"djaglowski",
"dmathieu",
"dmitryax",
"dokey",
"envmapprovider",
"envprovider",
"eventcreate",
"exampleexporter",
"examplereceiver",
"expandconverter",
"expandmapconverter",
"expandvar",
"exporterbatch",
"exporterbatcher",
"exporterhelper",
"exporterhelperprofiles",
"exporterprofiles",
"exporterqueue",
"exportertest",
"exporthelper",
"expvar",
"extensionauth",
"extensionauthtest",
"extensioncapabilities",
"extensionhelper",
"extensionmiddleware",
"extensionmiddlewaretest",
"extensiontest",
"extensionz",
"fanout",
"fanoutconsumer",
"featureflags",
"featuregate",
"featuregates",
"featurez",
"fieldalignment",
"fileexporter",
"filemapprovider",
"fileprovider",
"filterprocessor",
"filterset",
"florianl",
"fluentbit",
"fluentforward",
"forwardconnector",
"fsnotify",
"funcs",
"gcflags",
"genotelcorecol",
"genpdata",
"genproto",
"goarm",
"gobenchmark",
"godoc",
"gofmt",
"gogenerate",
"goimpi",
"golangci",
"goldendataset",
"goleak",
"golint",
"gomod",
"gomoddownload",
"goporto",
"goproxy",
"goreleaser",
"goroutines",
"gotest",
"gotidy",
"govulncheck",
"groupbyattrprocessor",
"groupbytrace",
"groupbytraceprocessor",
"grpclb",
"guiton",
"healthcheck",
"healthcheckextension",
"healthcheckv",
"hostcapabilities",
"hostmetrics",
"hostmetricsreceiver",
"httpclientconfig",
"httpprovider",
"httpsprovider",
"httptest",
"illumos",
"incorrectclass",
"incorrectcomponent",
"incorrectstability",
"instrgen",
"internaldata",
"ints",
"invalidaggregation",
"invalidtype",
"iruntime",
"jaegerexporter",
"jaegerreceiver",
"jmacd",
"jpkrohling",
"jsoniter",
"jsonpb",
"kafkaexporter",
"kafkaexporter's",
"kafkareceiver",
"keepalive",
"koanf",
"labeldrop",
"ldflags",
"limitermiddleware",
"localhostgate",
"loggingexporter",
"logstest",
"lycheeverse",
"mapconverter",
"mapstructure",
"marshalers",
"mdatagen",
"mdatagen's",
"memorylimiter",
"memorylimiterextension",
"memorylimiterprocessor",
"metadatatest",
"metricfamily",
"metricreceiver",
"metricsexporter",
"metricsgenerationprocessor",
"metricstransformprocessor",
"middleware",
"mostynb",
"mowies",
"muehle",
"multiclient",
"multimod",
"mycert",
"mycomponent",
"myconnector",
"myexporter",
"myextension",
"myorg",
"myprocessor",
"myreceiver",
"myrepo",
"mysite",
"nodisplayname",
"nonclobbering",
"nopexporter",
"nopreceiver",
"nosuchprocessor",
"notls",
"obsreceiver",
"obsreport",
"obsreporttest",
"oidcauthextension",
"okey",
"oldstable",
"oltp",
"omitempty",
"omnition",
"opencensus",
"opencensusexporter",
"opencensusreceiver",
"otelbot",
"otelcol",
"otelcoltest",
"otelconf",
"otelconftelemetry",
"otelcorecol",
"otelgrpc",
"otelhttp",
"otelsvc",
"oteltest",
"otelzap",
"otlpexporter",
"otlpgrpc",
"otlp_http",
"otlphttp",
"otlphttpexporter",
"otlphttpexporter's",
"otlphttpreceiver",
"otlpjson",
"otlpmetrics",
"otlpreceiver",
"otlptext",
"overwritepropertiesconverter",
"overwritepropertiesmapconverter",
"parserprovider",
"pcommon",
"pdata",
"pdatagen",
"pdatagrpc",
"perfcounters",
"perflib",
"pipelineprofiles",
"pipelinez",
"pjanotti",
"plog",
"plogotlp",
"plogs",
"pmetric",
"pmetricotlp",
"policyevaluation",
"pprof",
"pprofextension",
"pprofile",
"pprofiles",
"pprofileotlp",
"preconfigured",
"priya",
"probabilisticsamplerprocessor",
"processorhelper",
"processorhelperprofiles",
"processorprofiles",
"processortest",
"processscraper",
"proctelemetry",
"prometheusexporter",
"prometheusreceiver",
"prometheusremotewrite",
"prometheusremotewriteexporter",
"protogen",
"protos",
"ptraceotlp",
"queuebatch",
"reaggregate",
"receiverhelper",
"receiverprofiles",
"receivertest",
"replicaset",
"renovatebot",
"resourcedetection",
"resourcedetectionprocessor",
"resourceprocessor",
"resourcetolabel",
"retryable",
"riscv",
"rpcz",
"rrschulze",
"runperf",
"safelist",
"sampleentity",
"sampleentityreceiver",
"samplefactoryreceiver",
"samplereceiver",
"samplingdecision",
"samplingprocessor",
"sarama",
"sattributes",
"sattributesprocessor",
"schemagen",
"scrapererror",
"scraperhelper",
"scrapertest",
"semconv",
"servicetelemetry",
"servicetest",
"servicez",
"sfixed",
"shanduur",
"sharedcomponent",
"sigstore",
"someclientid",
"someclientsecret",
"somevalue",
"songy",
"spanmetricsconnector",
"spanmetricsprocessor",
"spanprocessor",
"sprocessor",
"statusdata",
"statusreporting",
"statuswatcher",
"stdlib",
"stencel",
"stretchr",
"subcomponent",
"subcomponents",
"subpackages",
"swiatekm",
"syft",
"tailsampling",
"tchannel",
"telemetrygen",
"telemetrytest",
"testcomponents",
"testconverter",
"testdata",
"testdesc",
"testfunc",
"testonly",
"testprocessor",
"testprovider",
"testresults",
"testutil",
"tlsconfig",
"tmpl",
"tocstop",
"tpmrm",
"tracecontext",
"traceid",
"tracesonmemory",
"tracetranslator",
"tracez",
"transformprocessor",
"triager",
"triagers",
"triaging",
"uints",
"unixgram",
"unixpacket",
"unkeyed",
"unmarshal",
"unmarshalling",
"unmarshalls",
"unredacted",
"unshallow",
"unstarted",
"userfriendly",
"validatable",
"vanityurl",
"vmmetrics",
"withauth",
"xconfighttp",
"xconfmap",
"xconnector",
"xconsumer",
"xconsumererror",
"xexporter",
"xexporterhelper",
"xextension",
"xpdata",
"xpipeline",
"xprocessor",
"xprocessorhelper",
"xreceiver",
"xscraper",
"xscraperhelper",
"yamlmapprovider",
"yamlprovider",
"yamls",
"zapcore",
"zipkin",
"zipkinexporter",
"zipkinreceiver",
"zipkinv",
"zpages",
"zpagesextension",
"zstd"
],
"enableGlobDot": true,
"useGitignore": true,
"files": ["**/*.{md,yaml,yml}"],
"globRoot": "../../..",
"ignorePaths": [
".git/*",
".git/!{COMMIT_EDITMSG,EDITMSG}",
".git/*/**",
".golangci.yml",
".github/**/*"
]
}
================================================
FILE: .gitignore
================================================
bin/
dist/
/local
.schemas
# GoLand IDEA
/.idea/
*.iml
# VS Code
.vscode/
.devcontainer/
# Cursor
.cursor
# Emacs
*~
\#*\#
# Miscellaneous files
*.sw[op]
*.DS_Store
# Coverage
coverage/*
coverage.txt
# Benchmarks
**/benchmark.txt
benchmarks.txt
# Wix
*.wixobj
*.wixpdb
# golang
go.work*
# npm (used for markdown-link-check)
node_modules/*
package-lock.json
================================================
FILE: .golangci.yml
================================================
formatters:
enable:
- gofumpt
- goimports
settings:
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
gofumpt:
# Choose whether to use the extra rules
extra-rules: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes:
- go.opentelemetry.io/collector
issues:
# Maximum issues count per one linter.
max-issues-per-linter: 0
# Maximum count of issues with the same text.
max-same-issues: 0
linters:
enable:
- asasalint
- contextcheck
- copyloopvar
- decorder
- depguard
- errcheck
- errorlint
- fatcontext
- gocritic
- gosec
- govet
- misspell
- modernize
- nolintlint
- perfsprint
- revive
- staticcheck
- testifylint
- thelper
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- whitespace
exclusions:
presets:
- std-error-handling
# Excluding configuration per-path, per-linter, per-text and per-source
rules: []
# Log a warning if an exclusion rule is unused.
warn-unused: true
# all available settings of specific linters
settings:
depguard:
rules:
denied-deps:
deny:
- pkg: "go.uber.org/atomic"
desc: "Use 'sync/atomic' instead of go.uber.org/atomic"
- pkg: "gopkg.in/yaml.v3"
desc: "Use 'go.yaml.in/yaml/v3' instead of gopkg.in/yaml.v3"
- pkg: "github.com/pkg/errors"
desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors"
- pkg: "github.com/hashicorp/go-multierror"
desc: "Use go.uber.org/multierr instead of github.com/hashicorp/go-multierror"
- pkg: "math/rand$"
desc: "Use the newer 'math/rand/v2' instead of math/rand"
- pkg: "sigs.k8s.io/yaml"
desc: "Use 'go.yaml.in/yaml' instead of sigs.k8s.io/yaml"
semconv:
list-mode: lax
files:
- "!cmd/mdatagen/**" # Exclude mdatagen
deny:
- pkg: go.opentelemetry.io/otel/semconv
desc: Use go.opentelemetry.io/otel/semconv/v1.38.0 instead. If a newer semconv version has been released, update the depguard rule.
allow:
- go.opentelemetry.io/otel/semconv/v1.38.0
# Add a different guard rule so that we can ignore tests.
ignore-in-test:
# Allow in tests for testing pdata or other receivers/exporters that expect OTLP.
files:
- '!**/*_test.go'
deny:
- pkg: go.opentelemetry.io/proto
desc: Use go.opentelemetry.io/collector/pdata instead
gocritic:
disabled-checks:
- commentedOutCode
- deferInLoop
- filepathJoin
- hugeParam
- importShadow
- rangeValCopy
- unnamedResult
- whyNoLint
enable-all: true
gosec:
excludes:
- G104 # FIXME
- G402
- G404
govet:
disable:
# We want to order fields according to readability and grouping them by use cases.
# This linter does not offer a discernible performance improvement as the structs
# defined in this repository are not in the execution hot path.
# See https://github.com/open-telemetry/opentelemetry-collector/issues/2789
- fieldalignment
enable-all: true
# settings per analyzer
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- Infof
- Warnf
- Errorf
- Fatalf
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
locale: US
ignore-rules:
- cancelled
nolintlint:
require-specific: true
perfsprint:
# Optimizes even if it requires an int or uint type cast.
int-conversion: true
# Optimizes into `err.Error()` even if it is only equivalent for non-nil errors.
err-error: true
# Optimizes `fmt.Errorf`.
errorf: true
# Optimizes `fmt.Sprintf` with only one argument.
sprintf1: true
# Optimizes into strings concatenation.
strconcat: true
revive:
# minimal confidence for issues, default is 0.8
confidence: 0.8
rules:
# Blank import should be only in a main or test package, or have a comment justifying it.
- name: blank-imports
# context.Context() should be the first parameter of a function when provided as argument.
- name: context-as-argument
# Basic types should not be used as a key in `context.WithValue`
- name: context-keys-type
# Importing with `.` makes the programs much harder to understand
- name: dot-imports
- name: early-return
arguments:
- preserveScope
# Empty blocks make code less readable and could be a symptom of a bug or unfinished refactoring.
- name: empty-block
# for better readability, variables of type `error` must be named with the prefix `err`.
- name: error-naming
# for better readability, the errors should be last in the list of returned values by a function.
- name: error-return
# for better readability, error messages should not be capitalized or end with punctuation or a newline.
- name: error-strings
# report when replacing `errors.New(fmt.Sprintf())` with `fmt.Errorf()` is possible
- name: errorf
# incrementing an integer variable by 1 is recommended to be done using the `++` operator
- name: increment-decrement
# highlights redundant else-blocks that can be eliminated from the code
- name: indent-error-flow
# This rule suggests a shorter way of writing ranges that do not use the second value.
- name: range
# receiver names in a method should reflect the struct name (p for Person, for example)
- name: receiver-naming
# redefining built in names (true, false, append, make) can lead to bugs very difficult to detect.
- name: redefines-builtin-id
# redundant else-blocks that can be eliminated from the code.
- name: superfluous-else
arguments:
- preserveScope
# prevent confusing name for variables when using `time` package
- name: time-naming
# warns when an exported function or method returns a value of an un-exported type.
- name: unexported-return
- name: unnecessary-stmt
# spots and proposes to remove unreachable code. also helps to spot errors
- name: unreachable-code
# Functions or methods with unused parameters can be a symptom of an unfinished refactoring or a bug.
- name: unused-parameter
# Since Go 1.18, interface{} has an alias: any. This rule proposes to replace instances of interface{} with any.
- name: use-any
# report when a variable declaration can be simplified
- name: var-declaration
# warns when initialism, variable or package naming conventions are not followed.
- name: var-naming
staticcheck:
checks:
- all
- -ST1000
- -ST1021
- -ST1022
testifylint:
enable-all: true
thelper:
benchmark:
begin: false
fuzz:
begin: false
tb:
begin: false
test:
begin: false
# output configuration options
output:
# The formats used to render issues.
formats:
# Prints issues in a text format with colors, line number, and linter name.
text:
# Output path can be either `stdout`, `stderr` or path to the file to write to.
path: stdout
# print linter name in the end of issue text, default is true
print-linter-name: true
# print lines of code with issue, default is true
print-issued-lines: true
# Show statistics per linter.
show-stats: false
# options for analysis running
run:
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: true
# default concurrency is a available CPU number
concurrency: 4
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
# If invoked with -mod=readonly, the go command is disallowed from the implicit
# automatic updating of go.mod described above. Instead, it fails when any changes
# to go.mod are needed. This setting is most useful to check that go.mod does
# not need updates, such as in a continuous integration and testing system.
# If invoked with -mod=vendor, the go command assumes that the vendor
# directory holds the correct copies of dependencies and ignores
# the dependency descriptions in go.mod.
modules-download-mode: readonly
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m
version: "2"
================================================
FILE: .markdownlint.yaml
================================================
# markdownlint configuration for OpenTelemetry Collector
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
#
# Start permissive to establish a baseline; tighten rules over time.
default: true
# Disabled rules (existing codebase has many violations)
MD001: false # heading increment
MD004: false # unordered list style
MD007: false # unordered list indentation
MD009: false # trailing spaces
MD010: false # hard tabs
MD012: false # multiple consecutive blank lines
MD013: false # line length
MD014: false # dollar signs in commands
MD022: false # blanks around headings
MD024: false # duplicate headings
MD025: false # multiple top-level headings
MD026: false # trailing punctuation in heading
MD029: false # ordered list prefix
MD030: false # spaces after list markers
MD031: false # blanks around fences
MD032: false # blanks around lists
MD033: false # inline HTML
MD034: false # bare URLs
MD036: false # emphasis as heading
MD038: false # spaces in code spans
MD040: false # fenced code language
MD041: false # first line heading
MD047: false # single trailing newline
MD049: false # emphasis style
MD051: false # link fragments
MD053: false # unused link definitions
MD058: false # blanks around tables
MD059: false # descriptive link text
MD060: false # table column style
MD018: false # no space after hash in heading
MD028: false # blank line inside blockquote
MD037: false # spaces inside emphasis
================================================
FILE: .markdownlintignore
================================================
# Changelogs (autogenerated, chloggen manages structure)
CHANGELOG.md
CHANGELOG-API.md
# GitHub templates (intentional structure/HTML)
.github/
================================================
FILE: AGENTS.md
================================================
# AGENTS.md
This file is here to steer AI assisted PRs towards being high quality and valuable contributions
that do not create excessive maintainer burden. It is inspired by the Open Policy Agent and Fedora
projects policies.
## General Rules and Guidelines
The most important rule is not to post comments on issues or PRs that are AI-generated. Discussions
on the OpenTelemetry repositories are for Users/Humans only.
Follow the PR scoping guidance in [CONTRIBUTING.md](CONTRIBUTING.md). Keep AI-assisted PRs tightly
isolated to the requested change and never include unrelated cleanup or opportunistic improvements
unless they are strictly necessary for correctness.
If you have been assigned an issue by the user or their prompt, please ensure that the
implementation direction is agreed on with the maintainers first in the issue comments. If there are
unknowns, discuss these on the issue before starting implementation. Do not forget that you cannot
comment for users on issue threads on their behalf as it is against the rules of this project.
## Developer environment
Make sure to follow docs/coding-guidelines.md on any contributions.
Non-exhaustively, the important points are:
* Whenever applicable, all code changes should have tests that actually validate the changes.
## Commit formatting
We appreciate it if users disclose the use of AI tools when the significant part of a commit is
taken from a tool without changes. When making a commit this should be disclosed through an
Assisted-by: commit message trailer.
Examples:
```
Assisted-by: ChatGPT 5.2
Assisted-by: Claude Opus 4.5
```
================================================
FILE: CHANGELOG-API.md
================================================
<!-- This file is autogenerated. See CONTRIBUTING.md for instructions to add an entry. -->
# Go API Changelog
This changelog includes only developer-facing changes.
If you are looking for user-facing changes, check out [CHANGELOG.md](./CHANGELOG.md).
<!-- next version -->
## v1.54.0/v0.148.0
### 🛑 Breaking changes 🛑
- `cmd/mdatagen`: Generate a per-metric config type `<MetricName>Config` for each metric when `reaggregation_enabled: true` (#14689)
Metrics with aggregatable attributes get `AggregationStrategy` and `EnabledAttributes []<MetricName>AttributeKey`
fields; others get `Enabled` only. Typed attribute key constants (e.g. `DefaultMetricAttributeKeyStringAttr`)
replace `[]string`, eliminating runtime attribute slice allocations. Validation errors now list valid attributes
and strategies by name. Components using `reaggregation_enabled: true` will need to update references to `MetricConfig`.
- `pdata/pprofile`: Update protoID for message Sample fields (#14652)
### 💡 Enhancements 💡
- `cmd/mdatagen`: Extend mdatagen tool to generate go config structs for OpenTelemetry collector components. (#14561)
The component config go code is generated from `config` section of the metadata.yaml file.
- `cmd/mdatagen`: Extend mdatagen tool to generate config JSON schema for OpenTelemetry components. (#14543)
The component config JSON schema is generated from `config` section of the metadata.yaml file.
- `cmd/mdatagen`: Schema generation for mdatagen-controlled config parts (#14562)
The schema is generated in separate yaml file and used to create full component schema.
- `pdata/pprofile`: Implement reference based attributes in Profiles (#14546)
- `pkg/pdata`: Upgrade the OTLP protobuf definitions to version 1.10.0 (#14766)
- `pkg/service`: The internal status reporter no longer drops repeated Ok and RecoverableError statuses (#14282)
Status events can now carry metadata and there's value in allowing them to be emitted despite the status value itself
not changing.
- `pkg/xexporterhelper`: Add logic to cleanup partitions from memory which are not being used for specific time period. (#14526)
- `pkg/xpdata`: Add `NewEntity` constructor, `Entity.CopyToResource`, and `EntityAttributeMap.All` to `pdata/xpdata/entity` (#14659)
### 🧰 Bug fixes 🧰
- `cmd/mdatagen`: Preserve custom extensions (e.g., `x-customType`, `x-pointer`) during schema reference resolution. (#14713, #14565)
Fixes an issue where custom properties defined locally on a node were
overwritten and lost when resolving a `$ref` to an external/internal schema.
- `pkg/xexporterhelper`: Fix race when partition is being removed from LRU and new items are being added at the same time. (#14526)
<!-- previous-version -->
## v1.53.0/v0.147.0
### 💡 Enhancements 💡
- `pkg/exporterhelper`: Add `metadata_keys` configuration to `sending_queue.batch.partition` to partition batches by client metadata (#14139)
The `metadata_keys` configuration option is now available in the `sending_queue.batch.partition` section for all exporters.
When specified, batches are partitioned based on the values of the listed metadata keys, allowing separate batching per metadata partition. This feature
is automatically configured when using `exporterhelper.WithQueue()`.
- `pkg/xexporterhelper`: Add code structure to handle unbounded partitions in sending queue. (#14526)
### 🧰 Bug fixes 🧰
- `pkg/config/configmiddleware`: Add context.Context to gRPC middleware interface constructors. (#14523)
- `pkg/extensionmiddleware`: Add context.Context to gRPC middleware interface constructors. (#14523)
This is a breaking API change for components that implement or use extensionmiddleware.
<!-- previous-version -->
## v1.52.0/v0.146.1
<!-- previous-version -->
## v0.146.0
### 🛑 Breaking changes 🛑
- `cmd/mdatagen`: Flatten the metric stability field (#14113)
So we better match the weaver schema. Additional deprecation data can be set within the `deprecated` field.
### 🚩 Deprecations 🚩
- `pdata/pprofile`: Declare removed aggregation elements as deprecated. (#14528)
### 💡 Enhancements 💡
- `cmd/mdatagen`: Add entity association requirement for metrics and events when entities are defined (#14284)
- `pkg/otelcol`: Gate process signals behind build tags (#14542)
Particularly for Wasm on JS, there are no invalid process signal references, which would cause build failures.
<!-- previous-version -->
## v1.51.0/v0.145.0
### 💡 Enhancements 💡
- `pkg/config/configgrpc`: add client info to context before server authentication (#12836)
- `pkg/xscraperhelper`: Add AddProfilesScraper similar to scraperhelper.AddMetricsScraper (#14427)
### 🧰 Bug fixes 🧰
- `pkg/config/configoptional`: Fix `Unmarshal` methods not being called when config is wrapped inside `Optional` (#14500)
This bug notably manifested in the fact that the `sending_queue::batch::sizer` config for exporters
stopped defaulting to `sending_queue::sizer`, which sometimes caused the wrong units to be used
when configuring `sending_queue::batch::min_size` and `max_size`.
As part of the fix, `xconfmap` exposes a new `xconfmap.WithForceUnmarshaler` option, to be used in the `Unmarshal` methods
of wrapper types like `configoptional.Optional` to make sure the `Unmarshal` method of the inner type is called.
The default behavior remains that calling `conf.Unmarshal` on the `confmap.Conf` passed as argument to an `Unmarshal`
method will skip any top-level `Unmarshal` methods to avoid infinite recursion in standard use cases.
<!-- previous-version -->
## v1.50.0/v0.144.0
### 🛑 Breaking changes 🛑
- `pkg/config/confighttp`: Replace `ServerConfig.Endpoint` with `NetAddr confignet.AddrConfig`, enabling more flexible transport configuration. (#14187, #8752)
This change adds "transport" as a configuration option, allowing users to specify
different transport protocols (e.g., "tcp", "unix").
### 🚩 Deprecations 🚩
- `pkg/scraperhelper`: Deprecate the `AddScraper` method. (#14428)
### 🚀 New components 🚀
- `pkg/xscraperhelper`: Add xscraperhelper for the experimental OTel profiling signal. (#14235)
### 💡 Enhancements 💡
- `all`: Add support for deprecated component type aliases (#14208)
To add a deprecated type alias to a component factory, use the `WithDeprecatedTypeAlias` option.
```go
return xexporter.NewFactory(
metadata.Type,
createDefaultConfig,
xexporter.WithTraces(createTracesExporter, metadata.TracesStability),
xexporter.WithDeprecatedTypeAlias("old_component_name"),
)
```
When the alias is used in configuration, a deprecation warning will be automatically logged, and the component will function normally using the original implementation.
- `cmd/mdatagen`: Add the ability to disable attributes at the metric level and re-aggregate data points based off of these new dimensions (#10726)
- `extension/xextension`: Add deprecated type alias support for extensions via `xextension` module (#14208)
Extensions can now register deprecated type aliases using the experimental `xextension.WithDeprecatedTypeAlias` option.
```go
return xextension.NewFactory(
metadata.Type,
createDefaultConfig,
createExtension,
metadata.Stability,
xextension.WithDeprecatedTypeAlias("old_extension_name"),
)
```
When the alias is used in configuration, a deprecation warning will be automatically logged, and the extension will function normally using the original implementation.
- `pkg/consumer/consumertest`: Add ProfileCount() (#14251)
- `pkg/exporterhelper`: Add support for profile samples metrics (#14423)
- `pkg/receiverhelper`: Add support for profile samples metrics (#14226)
- `pkg/scraperhelper`: Introduce `AddMetricsScraper` to be more explicit than `AddScraper`. (#14428)
- `receiver/otlp`: Add metrics tracking the number of receiver, refused and failed profile samples (#14226)
### 🧰 Bug fixes 🧰
- `pkg/xconnector`: Add component ID type validation to all xconnector Create methods (#14357)
<!-- previous-version -->
## v1.49.0/v0.143.0
### 🛑 Breaking changes 🛑
- `pkg/xprocessor`: Use pointer receivers in xprocessor factory methods for consistency with other factories. (#14348)
<!-- previous-version -->
## v1.48.0/v0.142.0
### 🛑 Breaking changes 🛑
- `pdata/xpdata`: Rename `Entity.IDAttributes()` to `Entity.IdentifyingAttributes()` and `Entity.DescriptionAttributes()` to `Entity.DescriptiveAttributes()` to align with OpenTelemetry specification terminology for attributes. (#14275)
- `pkg/exporterhelper`: Use `configoptional.Optional` for the `exporterhelper.QueueBatchConfig` (#14155)
It's recommended to change the field type in your component configuration to be `configoptional.Optional[exporterhelper.QueueBatchConfig]` to keep the `enabled` subfield. Use configoptional.Some(exporterhelper.NewDefaultQueueConfig()) to enable by default. Use configoptional.Default(exporterhelper.NewDefaultQueueConfig()) to disable by default.
### 🚩 Deprecations 🚩
- `pkg/service`: Deprecate Settings.LoggingOptions and telemetry.LoggerSettings.ZapOptions, add telemetry.LoggerSettings.BuildZapLogger (#14002)
BuildZapLogger provides a more flexible way to build the Zap logger,
since the function will have access to the zap.Config. This is used
in otelcol to install a Windows Event Log output when the zap config
does not specify any file output.
### 💡 Enhancements 💡
- `pdata/pprofile`: add ProfileCount() (#14239)
### 🧰 Bug fixes 🧰
- `pkg/confmap`: Ensure that embedded structs are not overwritten after Unmarshal is called (#14213)
This allows embedding structs which implement Unmarshal and contain a configopaque.String.
<!-- previous-version -->
## v1.47.0/v0.141.0
### 🛑 Breaking changes 🛑
- `pkg/config/configgrpc`: Replace `component.Host` parameter of ToServer/ToClientConn by map of extensions (#13640)
Components must now pass the map obtained from the host's `GetExtensions` method
instead of the host itself.
Nil may be used in tests where no middleware or authentication extensions are used.
- `pkg/config/confighttp`: Replace `component.Host` parameter of ToServer/ToClient by map of extensions (#13640)
Components must now pass the map obtained from the host's `GetExtensions` method
instead of the host itself.
Nil may be used in tests where no middleware or authentication extensions are used.
### 🚩 Deprecations 🚩
- `pkg/pdata`: Deprecate profile.Duration() and profile.SetDuration() (#14188)
### 💡 Enhancements 💡
- `pdata/pprofile`: Introduce `MergeTo` method (#14091)
- `pkg/pdata`: Add profile.DurationNano() and profile.SetDurationNano() (#14188)
<!-- previous-version -->
## v1.46.0/v0.140.0
### 🛑 Breaking changes 🛑
- `pdata/pprofile`: Upgrade the OTLP protobuf definitions to version 1.9.0 (#14128)
* Drop field `CommentStrindices` in `Profile`.
* Rename `Sample` to `Samples` in `Profile`.
* Rename `Line` to `Lines` in `Location`.
* Remove `AggregationTemporality` field in `ValueType`.
See https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v1.9.0
- `pkg/otelcol`: The `otelcol.Factories.Telemetry` field is now required (#14003)
Previously if this field was not set, then it would default to an otelconftelemetry factory.
Callers of the otelcol package must now set the field explicitly.
### 💡 Enhancements 💡
- `pkg/pdata`: Upgrade the OTLP protobuf definitions to version 1.9.0 (#14128)
<!-- previous-version -->
## v1.45.0/v0.139.0
### 🛑 Breaking changes 🛑
- `all`: Change type of `configgrpc.ClientConfig.Headers`, `confighttp.ClientConfig.Headers`, and `confighttp.ServerConfig.ResponseHeaders` (#13930)
`configopaque.MapList` is a new alternative to `map[string]configopaque.String` which can unmarshal
both maps and lists of name/value pairs.
For example, if `headers` is a field of type `configopaque.MapList`,
then the following YAML configs will unmarshal to the same thing:
```yaml
headers:
"foo": "bar"
headers:
- name: "foo"
value: "bar"
```
- `pdata/pprofile`: Update `SetFunction` to return the function's ID rather than update the Line (#14016, #14032)
- `pdata/pprofile`: Update `SetLink` to return the link's ID rather than update the Sample (#14016, #14031)
- `pdata/pprofile`: Update `SetMapping` to return the mapping's ID rather than update the Location (#14016, #14030)
- `pkg/otelcol`: Require a telemetry factory to be injected through otelcol.Factories (#4970)
otelcol.Factories now has a required Telemetry field,
which contains the telemetry factory to be used by the service.
Set it to otelconftelemetry.NewFactory() for the existing behavior.
- `pkg/pdata`: Remove unused generated code from pprofile (#14073)
Experimental package, ok to break since not used.
### 💡 Enhancements 💡
- `pdata/pprofile`: Introduce `SetStack` method (#14007)
- `pdata/xpdata`: Add high-level Entity API for managing entities attached to resources (#14042)
Introduces `Entity`, `EntitySlice`, and `EntityAttributeMap` types that provide a user-friendly interface
for working with resource entities. The new API ensures consistency between entity and resource attributes
by sharing the underlying attribute map, and prevents attribute conflicts between entities. This API may
eventually replace the generated protobuf-based API for better usability.
### 🧰 Bug fixes 🧰
- `cmd/mdatagen`: Fix mdatagen generated_metrics for connectors (#12402)
<!-- previous-version -->
## v1.44.0/v0.138.0
### 🛑 Breaking changes 🛑
- `pkg/xexporterhelper`: Remove definition of Sizer from public API and ability to configure. (#14001)
Now that Request has both Items/Bytes sizes no need to allow custom sizers.
- `pkg/service`: The `service.Settings` type now requires a `telemetry.Factory` to be provided (#4970)
### 🚩 Deprecations 🚩
- `pdata/pprofile`: Deprecated `PutAttribute` helper method (#14016, #14041)
- `pdata/pprofile`: Deprecated `PutLocation` helper method (#14019)
### 💡 Enhancements 💡
- `all`: Add `keep_alives_enabled` option to ServerConfig to control HTTP keep-alives for all components that create an HTTP server. (#13783)
- `pkg/pdata`: Add pcommon.Map helper to add a key to the map if does not exists (#14023)
- `pdata/pprofile`: Introduce `Equal` method on the `KeyValueAndUnit` type (#14041)
- `pkg/pdata`: Add `RemoveIf` method to primitive slice types (StringSlice, Int64Slice, UInt64Slice, Float64Slice, Int32Slice, ByteSlice) (#14027)
- `pdata/pprofile`: Introduce `SetAttribute` helper method (#14016, #14041)
- `pdata/pprofile`: Introduce `SetLocation` helper method (#14019)
- `pdata/pprofile`: Introduce `Equal` method on the `Stack` type (#13952)
<!-- previous-version -->
## v1.43.0/v0.137.0
### 🛑 Breaking changes 🛑
- `pkg/exporterhelper`: Remove all experimental symbols in exporterhelper (#11143)
They have all been moved to xexporterhelper
### 🚩 Deprecations 🚩
- `all`: service/telemetry.TracesConfig is deprecated (#13904)
This type alias has been added to otelconftelemetry.TracesConfig,
where the otelconf-based telemetry implementation now lives.
### 💡 Enhancements 💡
- `all`: Mark configoptional as stable (#13403)
- `all`: Mark configauth module as 1.0 (#9476)
- `pkg/pdata`: Mark featuregate pdata.useCustomProtoEncoding as stable (#13883)
<!-- previous-version -->
## v1.42.0/v0.136.0
### 🛑 Breaking changes 🛑
- `exporterhelper`: Remove deprecated function NewRequestsSizer (#13803)
- `pdata/pprofile`: Upgrade the OTLP protobuf definitions to version 1.8.0 (#13758, #13825, #13839)
- `pdata/pprofile`: Remove deprecated ProfilesDictionary method (#13858)
### 🚩 Deprecations 🚩
- `exporterhelper`: Deprecate all experimental symbols in exporterhelper and move them to xexporterhelper (#11143)
### 💡 Enhancements 💡
- `configoptional`: Add `GetOrInsertDefault` method to `configoptional.Optional` (#13856)
This method inserts a default or zero value into a `None`/`Default` `Optional` before `Get`ting its inner value.
- `exporter`: Stabilize exporter module. (#12978)
This does not stabilize the exporterhelper module or configuration
- `pdata`: Upgrade the OTLP protobuf definitions to version 1.8.0 (#13758)
<!-- previous-version -->
## v1.41.0/v0.135.0
### 🛑 Breaking changes 🛑
- `pdata/pprofile`: Remove deprecated AddAttribute method (#13764)
### 💡 Enhancements 💡
- `configmiddleware`: Stabilize `configmiddleware` module (#13422)
This only stabilizes the configuration interface but does not stabilize the middlewares themselves or the way of implementing them.
- `xpdata`: Add experimental MapBuilder struct to optimize pcommon.Map construction (#13617)
<!-- previous-version -->
## v1.40.0/v0.134.0
### 💡 Enhancements 💡
- `exporterhelper`: Split exporterhelper into a separate module (#12985)
<!-- previous-version -->
## v1.39.0/v0.133.0
### 🛑 Breaking changes 🛑
- `configgrpc`: Set `tcp` as the default transport type (#13657)
gRPC is generally used with HTTP/2, so this will simplify usage for most components.
### 🚩 Deprecations 🚩
- `pdata/pprofile`: Deprecate Profiles.ProfilesDictionary in favor of Profiles.Dictionary. (#13644)
### 💡 Enhancements 💡
- `pdata`: Add support for local memory pooling for data objects. (#13678)
This is still an early experimental (alpha) feature. Do not recommended to be used production. To enable use "--featuregate=+pdata.useProtoPooling"
### 🧰 Bug fixes 🧰
- `configoptional`: Allow validating nested types (#13579)
`configoptional.Optional` now implements `xconfmap.Validator`
<!-- previous-version -->
## v1.38.0/v0.132.0
### 🛑 Breaking changes 🛑
- `componenttest`: Remove `GetFactory` from the host returned by `NewNopHost` (#13577)
This method is no longer part of the `component.Host` interface.
### 💡 Enhancements 💡
- `exporterhelper`: Provide an interface `queue_batch.Setting.MergeCtx` so users can control how context values are preserved or combined (#13320)
By supplying a custom mergeCtx function, users can control how context values are preserved or combined.
The default behavior is to preserve no context values.
- `pdata`: Generate Logs/Traces/Metrics/Profiles and p[log|trace|metric|profile]ExportResponse with pdatagen. (#13597)
This change brings consistency on how these structs are written and remove JSON marshaling/unmarshaling hand written logic.
- `pdata`: Avoid unnecessary buffer copy when JSON marshal fails. (#13598)
- `pipeline`: Mark module as stable (#12831)
<!-- previous-version -->
## v1.37.0/v0.131.0
### 🛑 Breaking changes 🛑
- `configgrpc`: Update optional fields to use `configoptional.Optional` field for optional values. (#13252, #13364)
Specifically, the following fields have been updated to `configoptional`:
- `KeepaliveServerConfig.ServerParameters` (`KeepaliveServerParameters` type)
- `KeepaliveServerConfig.EnforcementPolicy` (`KeepaliveEnforcementPolicy` type)
- `xexporterhelper`: Remove deprecated NewProfilesExporter function from xexporterhelper package (#13391)
### 💡 Enhancements 💡
- `consumererror`: Add new "Downstream" error marker (#13234)
This new error wrapper type indicates that the error returned by a component's
`Consume` method is not an internal failure of the component, but instead
was passed through from another component further downstream.
This is used internally by the new pipeline instrumentation feature to
determine the `outcome` of a component call. This wrapper is not intended to
be used by components directly.
- `pdata/pprofile`: Introduce `Equal` method on the `Function` type (#13222)
- `pdata/pprofile`: Introduce `Equal` method on the `Link` type (#13223)
- `pdata/pprofile`: Add new helper method `SetFunction` to set a new function on a line. (#13222)
- `pdata/pprofile`: Add new helper method `SetLink` to set a new link on a sample. (#13223)
- `pdata/pprofile`: Add new helper method `SetString` to set or retrieve the index of a value in the StringTable. (#13225)
<!-- previous-version -->
## v1.36.1/v0.130.1
<!-- previous-version -->
No API-only changes in this release.
## v1.36.0/v0.130.0
### 🛑 Breaking changes 🛑
- `exporterhelper`: Use configoptional for sending_queue::batch field (#13345)
- `configgrpc`: Update optional fields to use `configoptional.Optional` field for optional values. (#13250, #13252)
Components using `configgrpc` package may need to update config values.
- `confighttp`: Use configoptional.Optional in confighttp (#9478)
- `exporterhelper`: Remove sizer map in favor of items/bytes sizers. Request based is automatically supported. (#13262)
- `pdata/pprofile`: Remove field Profile.StartTime from pdata/pprofile (#13315)
Remove Profile.StartTime from OTel Profiling signal.
- `exporterhelper`: Remove deprecated old batcher config (#13003)
- `exporter/otlp`: Remove deprecated batcher config from OTLP, use queuebatch (#13339)
### 🚩 Deprecations 🚩
- `exporterhelper`: Deprecate NewRequestsSizer always supported. (#13262)
- `xexporterhelper`: Introduce NewProfiles method and deprecate NewProfilesExporter (#13372)
### 💡 Enhancements 💡
- `consumererror`: Add `Error` type (#7047)
This type can contain information about errors that allow components (e.g. exporters)
to communicate error information back up the pipeline.
- `pdata`: Document that changing pcommon.Map (Remove/removeIf/Put*) invalidates Value references obtained via Get. (#13073)
- `cmd/mdatagen`: Add support for optional attribute (#12571)
- `exporterhelper`: Add support to configure a different Sizer for the batcher than the queue (#13313)
- `pdata`: Add support for the new resource-entity reference API as part of the experimental xpdata package. (#13264)
<!-- previous-version -->
## v1.35.0/v0.129.0
### 🛑 Breaking changes 🛑
- `semconv`: Removing deprecated semconv package (#13071)
- `configgrpc,confighttp`: Unify return type of `NewDefault*Config` functions to return a struct instead of a pointer. (#13169)
- `exporterhelper`: QueueBatchEncoding interface is changed to support marshaling and unmarshaling of request context. (#13188)
### 💡 Enhancements 💡
- `pdata/pprofile`: Introduce `Equal` method on the `Mapping` type (#13197)
- `configoptional`: Make unmarshaling into `None[T]` work the same as unmarshaling into `(*T)(nil)`. (#13168)
- `configoptional`: Add a confmap.Marshaler implementation for configoptional.Optional (#13196)
- `pdata/pprofile`: Introduce `Equal` methods on the `Line` and `Location` types (#13150)
- `pdata/pprofile`: Add new helper method `SetMapping` to set a new mapping on a location. (#13197)
### 🧰 Bug fixes 🧰
- `confmap`: Distinguish between empty and nil values when marshaling `confmap.Conf` structs. (#13196)
<!-- previous-version -->
## v1.34.0/v0.128.0
### 🛑 Breaking changes 🛑
- `exporterhelper`: Remove deprecated NewProfilesRequestExporter function from xexporterhelper package (#13157)
- `confighttp`: Remove pointer to field `cookies` in confighttp.ClientConfig (#13116)
- `otlpreceiver`: Use `configoptional.Optional` to define optional configuration sections in the OTLP receiver. Remove `Unmarshal` method. (#13119)
- `confighttp,configgrpc`: Rename `ClientConfig.TLSSetting` and `ServerConfig.TLSSetting` to `ClientConfig.TLS` and `ServerConfig.TLS`. (#13115)
- `pdata/pprofile`: Upgrade the OTLP protobuf definitions to version 1.7.0 (#13075)
Note that the batcher is temporarily a noop.
- `pipeline`: Remove deprecated MustNewID[WithName] (#13139)
### 🚀 New components 🚀
- `configoptional`: Add a new configoptional module to support optional configuration fields. (#12981)
### 💡 Enhancements 💡
- `pdata`: Introduce `MoveAndAppendTo` methods to the generated primitive slices (#13074)
- `pdata`: Upgrade the OTLP protobuf definitions to version 1.7.0 (#13075)
### 🧰 Bug fixes 🧰
- `confmap`: Correctly distinguish between `nil` and empty map values on the `ToStringMap` method (#13161)
This means that `ToStringMap()` method can now return a nil map if the original value was `nil`.
If you were not doing so already, make sure to check for `nil` before writing to the map to avoid panics.
- `confighttp`: Make the `NewDefaultServerConfig` function return a nil TLS config by default. (#13129)
- The previous default was a TLS config with no certificates, which would fail at runtime.
<!-- previous-version -->
## v1.33.0/v0.127.0
### 🛑 Breaking changes 🛑
- `mdatagen`: Add context parameter for recording event to set traceID and spanID (#12571)
- `otlpreceiver`: Use wrapper type for URL paths (#13046)
### 🚩 Deprecations 🚩
- `pipeline`: Deprecate MustNewID and MustNewIDWithName (#12831)
- `pdata/profile`: Replace AddAttribute with the PutAttribute helper method to modify the content of attributable records. (#12798)
### 💡 Enhancements 💡
- `consumer/consumertest`: Add context to sinks (#13039)
- `cmd/mdatagen`: Add events in generated documentation (#12571)
- `confmap`: Add a `Conf.Delete` method to remove a path from the configuration map. (#13064)
- `confmap`: Support running Unmarshal hooks on nil values. (#12981)
<!-- previous-version -->
## v1.32.0/v0.126.0
### 🚩 Deprecations 🚩
- `configauth`: Deprecate `configauth.Authentication` in favor of `configauth.Config`. (#12875)
### 💡 Enhancements 💡
- `cmd/mdatagen`: Add type definition for events in mdatagen (#12571)
- `cmd/mdatagen`: Add functions for processing structured events in mdatagen (#12571)
<!-- previous-version -->
## v1.31.0/v0.125.0
### 🚩 Deprecations 🚩
- `extensionauthtest`: Deprecate NewErrorClient in favor of NewErrClient. (#12874)
### 💡 Enhancements 💡
- `xextension/storage`: ErrStorageFull error added to xextension/storage contract (#12925)
- `pdata`: Add MoveTo to pcommon.Value, only type missing this (#12877)
### 🧰 Bug fixes 🧰
- `pdata`: Fix MoveTo when moving to the same destination (#12887)
<!-- previous-version -->
## v1.30.0/v0.124.0
### 🛑 Breaking changes 🛑
- `exporterbatcher`: Remove deprecated package exporterbatcher (#12780)
- `exporterqueue`: Remove deprecated package exporterqueue (#12779)
### 💡 Enhancements 💡
- `mdatagen`: Add variable for metric name in mdatagen (#12459)
Access metric name via `metadata.MetricsInfo.<metric-variable>.Name`
- `client`: Add support for iterating over client metadata keys (#12804)
- `service`: Adds the GetFactory interface to the hostcapabilities package (#12789)
- `cmd/mdatagen`: Add the foundational changes necessary for supporting logs data in `mdatagen` (#12571)
<!-- previous-version -->
## v1.29.0/v0.123.0
### 🛑 Breaking changes 🛑
- `otlpreceiver/otlpexporter/otlphttpexporter`: Avoid using go embedded messages in Config (#12718)
- `exporterqueue`: Move Queue interface to internal, disallow alternative implementations (#12680)
- `extensionauth, configauth`: Remove deprecated types and functions from `extensionauth` and `configauth` packages. (#12672)
This includes:
- `extensionauth.NewClient`,
- `extensionauth.ClientOption` and all its implementations,
- `extensionauth.NewServer`,
- `extensionauth.ServerOption` and all its implementations and
- `configauth.Authenticator.GetClientAuthenticator`.
- `exporterhelper`: Remove deprecated converter types from exporterhelper (#12686)
- `exporterbatch`: Remove deprecated fields `min_size_items` and `max_size_items` from batch config. (#12684)
### 🚩 Deprecations 🚩
- `exporterhelper`: Deprecate BatcherConfig, SizeConfig and WithBatcher in favor of the new QueueBatchConfig. (#12748)
- `exporterbatcher`: Deprecated Config, SizeConfig, SizerType, SizerType[Requests|Items|Bytes], NewDefaultConfig. Use alias from exporterhelper. (#12707)
- `exporterqueue`: Deprecated Config, NewDefaultConfig, Encoding, ErrQueueFull. Use alias from exporterhelper. (#12706)
- `exporterhelper`: Deprecate exporterhelper WithRequestQueue in favor of WithQueueBatch (#12679)
- `exporterhelper`: Deprecate `QueueConfig` in favor of `QueueBatchConfig`. (#12746)
### 💡 Enhancements 💡
- `extensionauth`: Mark module as stable (#11006)
- `processor`: Mark module as stable. (#12677)
- `processorhelper`: Split processorhelper into a separate module. (#12678)
<!-- previous-version -->
## v1.28.1/v0.122.1
<!-- previous-version -->
## v1.28.0/v0.122.0
### 🛑 Breaking changes 🛑
- `auth, authtest`: Remove deprecated modules extension/auth and extension/auth/authtest (#12543)
Use extension/extensionauth and extension/extensionauth/extensionauthtest instead.
- `extensionauth`: Remove deprecated methods from the `Func` types. (#12547)
- `extensiontest, connectortest, processortest, receivertest, scrapertest, exportertest`: Remove deprecated `NewNopSettingsWithType` functions, use `NewNopSettings` instead. (#12221)
- `extensionauthtest`: Remove the `extensionauthtest.MockClient` struct. (#12567)
- Use `extensionauthtest.NewNopClient` to create a client with a noop implementation.
- Use `extensionauthtest.NewErrorClient` to create a client that always returns an error.
- Implement the `extensionauth` interfaces for custom mock client implementations.
- `component/componenttest`: Remove the deprecated componenttest.TestTelemetry in favor of componenttest.Telemetry (#12419)
- `exporterhelper`: Remove the Request.Export function in favor of an equivalent request consume func in the New[Traces|Metrics|Logs|Profiles]Request (#12637)
### 🚩 Deprecations 🚩
- `exporterhelper`: Deprecate per signal converter in favor of generic version (#12631)
- `extensionauth`: Deprecate `extensionauth.NewClient` and `extensionauth.NewServer`. (#12574)
- Manually implement the interfaces instead.
- `configauth`: Deprecate `configauth.Authenticator.GetClientAuthenticator`. (#12574)
- Use the per-protocol methods instead.
### 🚀 New components 🚀
- `receiverhe
gitextract_tdgbeses/ ├── .checkapi.yaml ├── .chloggen/ │ ├── README.md │ ├── TEMPLATE.yaml │ ├── aix_tier3.yaml │ ├── alpha-profiles.yaml │ ├── config.yaml │ ├── fix-mdatagen-entity-builder.yaml │ ├── mdatagen_fix_reporoot.yaml │ ├── remove-resource-constant-labels.yaml │ └── summary.tmpl ├── .codecov.yml ├── .gitattributes ├── .github/ │ ├── ALLOWLIST │ ├── CODEOWNERS │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yaml │ │ ├── component-graduation.md │ │ ├── feature_request.yaml │ │ ├── other.yaml │ │ ├── stabilization.md │ │ └── vote.md │ ├── actionlint.yaml │ ├── lychee.toml │ ├── pull_request_template.md │ └── workflows/ │ ├── add-labels-and-owners.yml │ ├── add-labels-command.yml │ ├── api-compatibility.yml │ ├── build-and-test-arm.yml │ ├── build-and-test-windows.yaml │ ├── build-and-test.yml │ ├── builder-integration-test.yaml │ ├── builder-snapshot.yaml │ ├── changelog.yml │ ├── check-codeowners.yaml │ ├── check-links.yaml │ ├── check-merge-freeze.yml │ ├── codeql-analysis.yml │ ├── contrib-tests.yml │ ├── fossa.yml │ ├── go-benchmarks.yml │ ├── lint-workflow-files.yml │ ├── milestone-add-to-pr.yml │ ├── perf.yml │ ├── ping-codeowners-issues.yml │ ├── ping-codeowners-on-new-issue.yml │ ├── ping-codeowners-prs.yml │ ├── prepare-release.yml │ ├── release-branch.yml │ ├── rerun-workflows.yml │ ├── scorecard.yml │ ├── scripts/ │ │ ├── add-labels-and-owners.sh │ │ ├── add-labels-command.sh │ │ ├── check-merge-freeze.sh │ │ ├── free-disk-space.sh │ │ ├── get-codeowners.sh │ │ ├── get-components.sh │ │ ├── ping-codeowners-issues.sh │ │ ├── ping-codeowners-on-new-issue.sh │ │ ├── ping-codeowners-prs.sh │ │ ├── release-branch.sh │ │ ├── release-check-blockers.sh │ │ ├── release-check-build-status.sh │ │ ├── release-create-tracking-issue.sh │ │ ├── release-prepare-release.sh │ │ ├── rerun-failed-workflows.sh │ │ └── win-required-ports.ps1 │ ├── shellcheck.yml │ ├── sourcecode-release.yaml │ ├── spell-check.yaml │ ├── stale-pr.yaml │ ├── survey-on-merged-pr.yml │ ├── tidy-dependencies.yml │ └── utils/ │ └── cspell.json ├── .gitignore ├── .golangci.yml ├── .markdownlint.yaml ├── .markdownlintignore ├── AGENTS.md ├── CHANGELOG-API.md ├── CHANGELOG.md ├── CLAUDE.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── Makefile.Common ├── README.md ├── VERSIONING.md ├── client/ │ ├── Makefile │ ├── client.go │ ├── client_test.go │ ├── doc_test.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ └── package_test.go ├── cmd/ │ ├── builder/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── RELEASE.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── header.txt │ │ ├── internal/ │ │ │ ├── .gitignore │ │ │ ├── builder/ │ │ │ │ ├── config.go │ │ │ │ ├── config_test.go │ │ │ │ ├── main.go │ │ │ │ ├── main_test.go │ │ │ │ ├── package_test.go │ │ │ │ ├── templates/ │ │ │ │ │ ├── components.go.tmpl │ │ │ │ │ ├── go.mod.tmpl │ │ │ │ │ ├── main.go.tmpl │ │ │ │ │ ├── main_others.go.tmpl │ │ │ │ │ └── main_windows.go.tmpl │ │ │ │ └── templates.go │ │ │ ├── command.go │ │ │ ├── command_init.go │ │ │ ├── command_init_test.go │ │ │ ├── command_test.go │ │ │ ├── config/ │ │ │ │ ├── default.go │ │ │ │ └── default.yaml │ │ │ ├── init/ │ │ │ │ └── templates/ │ │ │ │ ├── .gitignore.tmpl │ │ │ │ ├── Makefile.tmpl │ │ │ │ ├── README.md.tmpl │ │ │ │ ├── config.yaml.tmpl │ │ │ │ ├── go.mod.tmpl │ │ │ │ └── manifest.yaml.tmpl │ │ │ ├── package_test.go │ │ │ └── version.go │ │ ├── main.go │ │ ├── metadata.yaml │ │ └── test/ │ │ ├── README.md │ │ ├── core.builder.yaml │ │ ├── core.otel.yaml │ │ └── test.sh │ ├── githubgen/ │ │ └── allowlist.txt │ ├── mdatagen/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── cfggen/ │ │ │ │ ├── generation.go │ │ │ │ ├── generation_test.go │ │ │ │ ├── loader.go │ │ │ │ ├── loader_test.go │ │ │ │ ├── model.go │ │ │ │ ├── model_test.go │ │ │ │ ├── namespace.go │ │ │ │ ├── namespace_test.go │ │ │ │ ├── resolver.go │ │ │ │ ├── resolver_test.go │ │ │ │ ├── type_ref.go │ │ │ │ ├── type_ref_test.go │ │ │ │ ├── writer.go │ │ │ │ └── writer_test.go │ │ │ ├── command.go │ │ │ ├── command_test.go │ │ │ ├── embedded_templates.go │ │ │ ├── embedded_templates_test.go │ │ │ ├── event.go │ │ │ ├── event_test.go │ │ │ ├── helpers/ │ │ │ │ ├── lint.go │ │ │ │ ├── lint_test.go │ │ │ │ ├── packages.go │ │ │ │ └── packages_test.go │ │ │ ├── loader.go │ │ │ ├── loader_test.go │ │ │ ├── metadata.go │ │ │ ├── metadata_test.go │ │ │ ├── metric.go │ │ │ ├── metric_test.go │ │ │ ├── sampleconnector/ │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ ├── config.schema.yaml │ │ │ │ │ ├── generated_config.go │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ ├── generated_entity_metrics.go │ │ │ │ │ ├── generated_entity_metrics_test.go │ │ │ │ │ ├── generated_metrics.go │ │ │ │ │ ├── generated_metrics_test.go │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ ├── generated_status.go │ │ │ │ │ └── testdata/ │ │ │ │ │ └── config.yaml │ │ │ │ ├── metadata.yaml │ │ │ │ └── metrics_test.go │ │ │ ├── sampleentityreceiver/ │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ ├── config.schema.yaml │ │ │ │ │ ├── generated_config.go │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ ├── generated_entity_metrics.go │ │ │ │ │ ├── generated_entity_metrics_test.go │ │ │ │ │ ├── generated_metrics.go │ │ │ │ │ ├── generated_metrics_test.go │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ ├── generated_status.go │ │ │ │ │ └── testdata/ │ │ │ │ │ └── config.yaml │ │ │ │ └── metadata.yaml │ │ │ ├── samplefactoryreceiver/ │ │ │ │ ├── README.md │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ ├── generated_config.go │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ ├── generated_logs.go │ │ │ │ │ ├── generated_logs_test.go │ │ │ │ │ ├── generated_metrics.go │ │ │ │ │ ├── generated_metrics_test.go │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ ├── generated_status.go │ │ │ │ │ ├── generated_telemetry.go │ │ │ │ │ ├── generated_telemetry_test.go │ │ │ │ │ └── testdata/ │ │ │ │ │ └── config.yaml │ │ │ │ └── metadata.yaml │ │ │ ├── sampleprocessor/ │ │ │ │ ├── README.md │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ ├── config.schema.yaml │ │ │ │ │ ├── generated_config.go │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ ├── generated_status.go │ │ │ │ │ └── testdata/ │ │ │ │ │ └── config.yaml │ │ │ │ └── metadata.yaml │ │ │ ├── samplereceiver/ │ │ │ │ ├── README.md │ │ │ │ ├── config.schema.json │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_config.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ ├── metadata/ │ │ │ │ │ │ ├── config.schema.yaml │ │ │ │ │ │ ├── generated_config.go │ │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ │ ├── generated_feature_gates.go │ │ │ │ │ │ ├── generated_logs.go │ │ │ │ │ │ ├── generated_logs_test.go │ │ │ │ │ │ ├── generated_metrics.go │ │ │ │ │ │ ├── generated_metrics_test.go │ │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ │ ├── generated_status.go │ │ │ │ │ │ ├── generated_telemetry.go │ │ │ │ │ │ ├── generated_telemetry_test.go │ │ │ │ │ │ └── testdata/ │ │ │ │ │ │ └── config.yaml │ │ │ │ │ └── metadatatest/ │ │ │ │ │ ├── generated_telemetrytest.go │ │ │ │ │ └── generated_telemetrytest_test.go │ │ │ │ ├── metadata.yaml │ │ │ │ └── metrics_test.go │ │ │ ├── samplescraper/ │ │ │ │ ├── README.md │ │ │ │ ├── config.schema.json │ │ │ │ ├── doc.go │ │ │ │ ├── documentation.md │ │ │ │ ├── factory.go │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_config.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ ├── config.schema.yaml │ │ │ │ │ ├── generated_config.go │ │ │ │ │ ├── generated_config_test.go │ │ │ │ │ ├── generated_logs.go │ │ │ │ │ ├── generated_logs_test.go │ │ │ │ │ ├── generated_metrics.go │ │ │ │ │ ├── generated_metrics_test.go │ │ │ │ │ ├── generated_resource.go │ │ │ │ │ ├── generated_resource_test.go │ │ │ │ │ ├── generated_status.go │ │ │ │ │ └── testdata/ │ │ │ │ │ └── config.yaml │ │ │ │ └── metadata.yaml │ │ │ ├── status.go │ │ │ ├── status_test.go │ │ │ ├── telemetry.go │ │ │ ├── templates/ │ │ │ │ ├── component_test.go.tmpl │ │ │ │ ├── config.go.tmpl │ │ │ │ ├── config.schema.yaml.tmpl │ │ │ │ ├── config_from_cfggen.go.tmpl │ │ │ │ ├── config_test.go.tmpl │ │ │ │ ├── documentation.md.tmpl │ │ │ │ ├── entity_metrics.go.tmpl │ │ │ │ ├── entity_metrics_test.go.tmpl │ │ │ │ ├── feature_gates.go.tmpl │ │ │ │ ├── feature_gates.md.tmpl │ │ │ │ ├── helper.tmpl │ │ │ │ ├── logs.go.tmpl │ │ │ │ ├── logs_test.go.tmpl │ │ │ │ ├── metrics.go.tmpl │ │ │ │ ├── metrics_test.go.tmpl │ │ │ │ ├── package_test.go.tmpl │ │ │ │ ├── readme.md.tmpl │ │ │ │ ├── resource.go.tmpl │ │ │ │ ├── resource_test.go.tmpl │ │ │ │ ├── status.go.tmpl │ │ │ │ ├── telemetry.go.tmpl │ │ │ │ ├── telemetry_test.go.tmpl │ │ │ │ ├── telemetrytest.go.tmpl │ │ │ │ ├── telemetrytest_test.go.tmpl │ │ │ │ └── testdata/ │ │ │ │ └── config.yaml.tmpl │ │ │ ├── testdata/ │ │ │ │ ├── async_metric.yaml │ │ │ │ ├── basic_connector.yaml │ │ │ │ ├── basic_pkg.yaml │ │ │ │ ├── basic_receiver.yaml │ │ │ │ ├── custom_generated_package_name.yaml │ │ │ │ ├── deprecation_info_invalid_date.yaml │ │ │ │ ├── display_name.yaml │ │ │ │ ├── documentation.md │ │ │ │ ├── empty.go │ │ │ │ ├── empty_test_config.yaml │ │ │ │ ├── entity_duplicate_attributes.yaml │ │ │ │ ├── entity_duplicate_types.yaml │ │ │ │ ├── entity_empty_id_attributes.yaml │ │ │ │ ├── entity_event_missing_association.yaml │ │ │ │ ├── entity_metric_missing_association.yaml │ │ │ │ ├── entity_metrics_events_valid.yaml │ │ │ │ ├── entity_relationships_bidirectional.yaml │ │ │ │ ├── entity_relationships_empty_target.yaml │ │ │ │ ├── entity_relationships_empty_type.yaml │ │ │ │ ├── entity_relationships_undefined_target.yaml │ │ │ │ ├── entity_relationships_valid.yaml │ │ │ │ ├── entity_single_metric_missing_association.yaml │ │ │ │ ├── entity_undefined_description_attribute.yaml │ │ │ │ ├── entity_undefined_id_attribute.yaml │ │ │ │ ├── entity_undefined_reference.yaml │ │ │ │ ├── entity_valid.yaml │ │ │ │ ├── events/ │ │ │ │ │ ├── basic_event.yaml │ │ │ │ │ ├── empty.go │ │ │ │ │ ├── no_description.yaml │ │ │ │ │ ├── no_enabled.yaml │ │ │ │ │ └── unknown_attribute.yaml │ │ │ │ ├── feature_gates.yaml │ │ │ │ ├── generated_component_test.go │ │ │ │ ├── generated_package_name.yaml │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── internal/ │ │ │ │ │ └── metadata/ │ │ │ │ │ └── generated_status.go │ │ │ │ ├── invalid.yaml │ │ │ │ ├── invalid_aggregation.yaml │ │ │ │ ├── invalid_class.yaml │ │ │ │ ├── invalid_config.yaml │ │ │ │ ├── invalid_entity_stability.yaml │ │ │ │ ├── invalid_input_type.yaml │ │ │ │ ├── invalid_metric_semconvref.yaml │ │ │ │ ├── invalid_metric_stability.yaml │ │ │ │ ├── invalid_stability.yaml │ │ │ │ ├── invalid_stability_component.yaml │ │ │ │ ├── invalid_telemetry_missing_value_type_for_histogram.yaml │ │ │ │ ├── invalid_type_attr.yaml │ │ │ │ ├── invalid_type_rattr.yaml │ │ │ │ ├── metrics_and_type.yaml │ │ │ │ ├── no_aggregation.yaml │ │ │ │ ├── no_class.yaml │ │ │ │ ├── no_deprecation_date_info.yaml │ │ │ │ ├── no_deprecation_info.yaml │ │ │ │ ├── no_deprecation_migration_info.yaml │ │ │ │ ├── no_description_attr.yaml │ │ │ │ ├── no_description_rattr.yaml │ │ │ │ ├── no_display_name.yaml │ │ │ │ ├── no_enabled.yaml │ │ │ │ ├── no_metric_description.yaml │ │ │ │ ├── no_metric_stability.yaml │ │ │ │ ├── no_metric_type.yaml │ │ │ │ ├── no_metric_unit.yaml │ │ │ │ ├── no_monotonic.yaml │ │ │ │ ├── no_stability.yaml │ │ │ │ ├── no_stability_component.yaml │ │ │ │ ├── no_status.yaml │ │ │ │ ├── no_type.yaml │ │ │ │ ├── no_type_attr.yaml │ │ │ │ ├── no_type_rattr.yaml │ │ │ │ ├── no_value_type.yaml │ │ │ │ ├── parent.yaml │ │ │ │ ├── readme_with_cmd_class.md │ │ │ │ ├── readme_with_multiple_signals.md │ │ │ │ ├── readme_with_multiple_signals_and_deprecation.md │ │ │ │ ├── readme_with_status.md │ │ │ │ ├── readme_with_status_codeowners.md │ │ │ │ ├── readme_with_status_codeowners_and_emeritus.md │ │ │ │ ├── readme_with_status_codeowners_and_seeking_new.md │ │ │ │ ├── readme_with_status_converter.md │ │ │ │ ├── readme_with_status_extension.md │ │ │ │ ├── readme_with_status_provider.md │ │ │ │ ├── readme_with_warnings.md │ │ │ │ ├── readme_without_status.md │ │ │ │ ├── resource_attributes_only.yaml │ │ │ │ ├── status_only.yaml │ │ │ │ ├── two_metric_types.yaml │ │ │ │ ├── twopackages.yaml │ │ │ │ ├── undeprecated_with_deprecation.yaml │ │ │ │ ├── unknown_metric_attribute.yaml │ │ │ │ ├── unknown_value_type.yaml │ │ │ │ ├── unsorted_rattr.yaml │ │ │ │ ├── unused_attribute.yaml │ │ │ │ ├── with_conditional_attribute.yaml │ │ │ │ ├── with_config.yaml │ │ │ │ ├── with_description.yaml │ │ │ │ ├── with_goleak_ignores.yaml │ │ │ │ ├── with_goleak_setup.yaml │ │ │ │ ├── with_goleak_skip.yaml │ │ │ │ ├── with_goleak_teardown.yaml │ │ │ │ ├── with_invalid_config_ref.yaml │ │ │ │ ├── with_stability_from.yaml │ │ │ │ ├── with_telemetry.yaml │ │ │ │ ├── with_tests_connector.yaml │ │ │ │ ├── with_tests_exporter.yaml │ │ │ │ ├── with_tests_extension.yaml │ │ │ │ ├── with_tests_processor.yaml │ │ │ │ ├── with_tests_profiles_connector.yaml │ │ │ │ ├── with_tests_receiver.yaml │ │ │ │ └── with_underscore_in_semconv_ref_anchor_tag.yaml │ │ │ └── tests.go │ │ ├── main.go │ │ ├── metadata-schema.yaml │ │ ├── metadata.yaml │ │ └── third_party/ │ │ └── golint/ │ │ ├── LICENSE │ │ └── golint.go │ └── otelcorecol/ │ ├── Makefile │ ├── README.md │ ├── builder-config.yaml │ ├── components.go │ ├── go.mod │ ├── go.sum │ ├── main.go │ ├── main_others.go │ └── main_windows.go ├── component/ │ ├── Makefile │ ├── build_info.go │ ├── component.go │ ├── component_test.go │ ├── componentstatus/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── instance.go │ │ ├── instance_test.go │ │ ├── metadata.yaml │ │ ├── status.go │ │ └── status_test.go │ ├── componenttest/ │ │ ├── Makefile │ │ ├── configtest.go │ │ ├── configtest_test.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop_host.go │ │ ├── nop_host_test.go │ │ ├── nop_telemetry.go │ │ ├── nop_telemetry_test.go │ │ ├── package_test.go │ │ ├── telemetry.go │ │ └── telemetry_test.go │ ├── config.go │ ├── doc.go │ ├── go.mod │ ├── go.sum │ ├── host.go │ ├── identifiable.go │ ├── identifiable_example_test.go │ ├── identifiable_test.go │ ├── metadata.yaml │ ├── package_test.go │ └── telemetry.go ├── config/ │ ├── configauth/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.schema.yaml │ │ ├── configauth.go │ │ ├── configauth_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ ├── configcompression/ │ │ ├── Makefile │ │ ├── compressiontype.go │ │ ├── compressiontype_test.go │ │ ├── config.schema.yaml │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ ├── configgrpc/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── client_middleware_test.go │ │ ├── config.schema.yaml │ │ ├── configgrpc.go │ │ ├── configgrpc_benchmark_test.go │ │ ├── configgrpc_test.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── gzip.go │ │ ├── metadata.yaml │ │ ├── package_test.go │ │ ├── server_middleware_test.go │ │ ├── testdata/ │ │ │ ├── ca.crt │ │ │ ├── client.crt │ │ │ ├── client.key │ │ │ ├── server.crt │ │ │ └── server.key │ │ ├── wrappedstream.go │ │ └── wrappedstream_test.go │ ├── confighttp/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── client.go │ │ ├── client_middleware_test.go │ │ ├── client_test.go │ │ ├── clientinfohandler.go │ │ ├── clientinfohandler_test.go │ │ ├── compress_readcloser.go │ │ ├── compress_readcloser_test.go │ │ ├── compression.go │ │ ├── compression_test.go │ │ ├── compressor.go │ │ ├── compressor_test.go │ │ ├── config.schema.yaml │ │ ├── confighttp_example_test.go │ │ ├── doc.go │ │ ├── documentation.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ └── generated_feature_gates.go │ │ │ └── options.go │ │ ├── metadata.yaml │ │ ├── server.go │ │ ├── server_middleware_test.go │ │ ├── server_test.go │ │ ├── testdata/ │ │ │ ├── ca.crt │ │ │ ├── client.crt │ │ │ ├── client.key │ │ │ ├── config.yaml │ │ │ ├── middlewares.yaml │ │ │ ├── server.crt │ │ │ └── server.key │ │ └── xconfighttp/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── options.go │ │ └── options_test.go │ ├── configmiddleware/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.schema.yaml │ │ ├── configmiddleware.go │ │ ├── configmiddleware_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ └── metadata.yaml │ ├── confignet/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.schema.yaml │ │ ├── confignet.go │ │ ├── confignet_test.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ ├── configopaque/ │ │ ├── Makefile │ │ ├── config.schema.yaml │ │ ├── doc.go │ │ ├── doc_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── maplist.go │ │ ├── maplist_test.go │ │ ├── metadata.yaml │ │ ├── opaque.go │ │ ├── opaque_test.go │ │ └── package_test.go │ ├── configoptional/ │ │ ├── Makefile │ │ ├── documentation.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_feature_gates.go │ │ ├── metadata.yaml │ │ ├── optional.go │ │ ├── optional_test.go │ │ └── testdata/ │ │ ├── validate_explicit.yaml │ │ ├── validate_implicit.yaml │ │ ├── validate_invalid.yaml │ │ └── validate_no_default.yaml │ ├── configretry/ │ │ ├── Makefile │ │ ├── backoff.go │ │ ├── backoff_test.go │ │ ├── config.schema.yaml │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ ├── configtelemetry/ │ │ ├── Makefile │ │ ├── config.schema.yaml │ │ ├── configtelemetry.go │ │ ├── configtelemetry_test.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ └── configtls/ │ ├── Makefile │ ├── README.md │ ├── clientcasfilereloader.go │ ├── clientcasfilereloader_test.go │ ├── config.schema.yaml │ ├── configtls.go │ ├── configtls_test.go │ ├── curves_fips.go │ ├── curves_nofips.go │ ├── doc.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── testdata/ │ │ ├── ca-1.crt │ │ ├── ca-2.crt │ │ ├── client-1.crt │ │ ├── client-1.key │ │ ├── client-2.crt │ │ ├── client-2.key │ │ ├── server-1.crt │ │ ├── server-1.key │ │ ├── server-2.crt │ │ ├── server-2.key │ │ └── testCA-bad.txt │ ├── tpm.go │ ├── tpm_open_linux.go │ ├── tpm_open_others.go │ ├── tpm_open_windows.go │ └── tpm_test.go ├── confmap/ │ ├── Makefile │ ├── README.md │ ├── confmap.go │ ├── confmaptest/ │ │ ├── configtest.go │ │ ├── configtest_test.go │ │ ├── doc.go │ │ ├── package_test.go │ │ ├── provider_settings.go │ │ └── testdata/ │ │ ├── empty-slice.yaml │ │ ├── invalid.yaml │ │ └── simple.yaml │ ├── converter.go │ ├── doc_test.go │ ├── documentation.md │ ├── example_provider_and_converter_test.go │ ├── expand.go │ ├── expand_test.go │ ├── factory.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ ├── conf.go │ │ ├── confmap.go │ │ ├── confmap_test.go │ │ ├── decoder.go │ │ ├── e2e/ │ │ │ ├── Makefile │ │ │ ├── expand_test.go │ │ │ ├── fuzz_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── maplist_expanded_test.go │ │ │ ├── nil_test.go │ │ │ ├── testdata/ │ │ │ │ ├── expand-escaped-env.yaml │ │ │ │ ├── indirect-slice-env-var-main.yaml │ │ │ │ ├── indirect-slice-env-var-pipelines.yaml │ │ │ │ ├── issue-10787-main.yaml │ │ │ │ ├── issue-10787-snippet.yaml │ │ │ │ ├── subsection_empty_map.yaml │ │ │ │ ├── subsection_null.yaml │ │ │ │ ├── subsection_set_but_empty.yaml │ │ │ │ ├── subsection_unset.yaml │ │ │ │ ├── subsection_unset_empty_map.yaml │ │ │ │ ├── types_complex.yaml │ │ │ │ ├── types_expand.yaml │ │ │ │ ├── types_expand_inline.yaml │ │ │ │ ├── types_map.yaml │ │ │ │ └── types_slice.yaml │ │ │ └── types_test.go │ │ ├── encoder.go │ │ ├── envvar/ │ │ │ └── pattern.go │ │ ├── expand.go │ │ ├── mapstructure/ │ │ │ ├── encoder.go │ │ │ ├── encoder_test.go │ │ │ └── package_test.go │ │ ├── marshaloption.go │ │ ├── merge.go │ │ ├── metadata/ │ │ │ └── generated_feature_gates.go │ │ ├── testdata/ │ │ │ ├── basic_types.yaml │ │ │ ├── config.yaml │ │ │ ├── config2.yaml │ │ │ └── embedded_keys.yaml │ │ ├── third_party/ │ │ │ └── composehook/ │ │ │ └── compose_hook.go │ │ └── unmarshaloption.go │ ├── metadata.yaml │ ├── provider/ │ │ ├── envprovider/ │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── generated_package_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── provider.go │ │ │ └── provider_test.go │ │ ├── fileprovider/ │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── generated_package_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── provider.go │ │ │ ├── provider_test.go │ │ │ └── testdata/ │ │ │ ├── default-config.yaml │ │ │ └── invalid-yaml.yaml │ │ ├── httpprovider/ │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── generated_package_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── provider.go │ │ │ └── provider_test.go │ │ ├── httpsprovider/ │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── generated_package_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── provider.go │ │ │ └── provider_test.go │ │ ├── internal/ │ │ │ ├── configurablehttpprovider/ │ │ │ │ ├── package_test.go │ │ │ │ ├── provider.go │ │ │ │ ├── provider_test.go │ │ │ │ └── testdata/ │ │ │ │ └── otel-config.yaml │ │ │ └── package_test.go │ │ └── yamlprovider/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── provider.go │ │ └── provider_test.go │ ├── provider.go │ ├── provider_test.go │ ├── resolver.go │ ├── resolver_test.go │ ├── testdata/ │ │ ├── config.yaml │ │ ├── expand-with-all-env.yaml │ │ ├── expand-with-no-env.yaml │ │ ├── expand-with-partial-env.yaml │ │ ├── merge-append-scenarios-featuregate-disabled.yaml │ │ └── merge-append-scenarios.yaml │ └── xconfmap/ │ ├── Makefile │ ├── config.go │ ├── config_test.go │ ├── confmap.go │ ├── example_test.go │ ├── go.mod │ ├── go.sum │ └── metadata.yaml ├── connector/ │ ├── Makefile │ ├── README.md │ ├── connector.go │ ├── connector_test.go │ ├── connectortest/ │ │ ├── Makefile │ │ ├── connector.go │ │ ├── connector_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── package_test.go │ ├── forwardconnector/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── doc.go │ │ ├── forward.go │ │ ├── forward_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_status.go │ │ └── metadata.yaml │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ ├── factory.go │ │ └── router.go │ ├── logs_router.go │ ├── logs_router_test.go │ ├── metadata.yaml │ ├── metrics_router.go │ ├── metrics_router_test.go │ ├── package_test.go │ ├── traces_router.go │ ├── traces_router_test.go │ └── xconnector/ │ ├── Makefile │ ├── connector.go │ ├── connector_test.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── profiles_router.go │ └── profiles_router_test.go ├── consumer/ │ ├── Makefile │ ├── consumer.go │ ├── consumererror/ │ │ ├── Makefile │ │ ├── doc.go │ │ ├── downstream.go │ │ ├── downstream_test.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── retryable.go │ │ │ └── statusconversion/ │ │ │ ├── conversion.go │ │ │ └── conversion_test.go │ │ ├── metadata.yaml │ │ ├── package_test.go │ │ ├── permanent.go │ │ ├── permanent_test.go │ │ ├── signalerrors.go │ │ ├── signalerrors_test.go │ │ └── xconsumererror/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── signalerrors.go │ │ └── signalerrors_test.go │ ├── consumertest/ │ │ ├── Makefile │ │ ├── consumer.go │ │ ├── doc.go │ │ ├── err.go │ │ ├── err_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop.go │ │ ├── nop_test.go │ │ ├── package_test.go │ │ ├── sink.go │ │ └── sink_test.go │ ├── doc.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── consumer.go │ ├── logs.go │ ├── logs_test.go │ ├── metadata.yaml │ ├── metrics.go │ ├── metrics_test.go │ ├── package_test.go │ ├── traces.go │ ├── traces_test.go │ └── xconsumer/ │ ├── Makefile │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── profiles.go │ └── profiles_test.go ├── distributions.yaml ├── docs/ │ ├── README.md │ ├── coding-guidelines.md │ ├── component-stability.md │ ├── component-status.md │ ├── ga-roadmap.md │ ├── internal-architecture.md │ ├── observability.md │ ├── platform-support.md │ ├── release.md │ ├── rfcs/ │ │ ├── README.md │ │ ├── component-configuration-schema-roadmap.md │ │ ├── component-status-reporting.md │ │ ├── component-universal-telemetry.md │ │ ├── configuration-merging-strategy.md │ │ ├── configuring-confmap-providers.md │ │ ├── env-vars.md │ │ ├── experimental-profiling.md │ │ ├── logging-before-config-resolution.md │ │ ├── metadata.yaml │ │ ├── optional-config-type.md │ │ ├── processing.md │ │ ├── release-approvers.md │ │ └── semconv-feature-gates.md │ ├── scraping-receivers.md │ ├── security-best-practices.md │ ├── standard-warnings.md │ └── vision.md ├── examples/ │ ├── README.md │ ├── k8s/ │ │ └── otel-config.yaml │ └── local/ │ └── otel-config.yaml ├── exporter/ │ ├── Makefile │ ├── README.md │ ├── debugexporter/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── config_test.go │ │ ├── doc.go │ │ ├── exporter.go │ │ ├── exporter_test.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── generating-example-output.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ └── generated_status.go │ │ │ ├── normal/ │ │ │ │ ├── common.go │ │ │ │ ├── logs.go │ │ │ │ ├── logs_test.go │ │ │ │ ├── metrics.go │ │ │ │ ├── metrics_test.go │ │ │ │ ├── profiles.go │ │ │ │ ├── profiles_test.go │ │ │ │ ├── traces.go │ │ │ │ └── traces_test.go │ │ │ └── otlptext/ │ │ │ ├── databuffer.go │ │ │ ├── databuffer_test.go │ │ │ ├── known_sync_error.go │ │ │ ├── known_sync_error_other.go │ │ │ ├── known_sync_error_windows.go │ │ │ ├── logs.go │ │ │ ├── logs_test.go │ │ │ ├── metrics.go │ │ │ ├── metrics_test.go │ │ │ ├── package_test.go │ │ │ ├── profiles.go │ │ │ ├── profiles_test.go │ │ │ ├── sync.go │ │ │ ├── test_helpers.go │ │ │ ├── testdata/ │ │ │ │ ├── logs/ │ │ │ │ │ ├── embedded_maps.out │ │ │ │ │ ├── empty.out │ │ │ │ │ ├── log_with_event_name.out │ │ │ │ │ ├── logs_with_entity_refs.out │ │ │ │ │ ├── one_record.out │ │ │ │ │ └── two_records.out │ │ │ │ ├── metrics/ │ │ │ │ │ ├── empty.out │ │ │ │ │ ├── invalid_metric_type.out │ │ │ │ │ ├── metrics_with_all_types.out │ │ │ │ │ ├── metrics_with_entity_refs.out │ │ │ │ │ ├── metrics_with_metadata.out │ │ │ │ │ └── two_metrics.out │ │ │ │ ├── profiles/ │ │ │ │ │ ├── empty.out │ │ │ │ │ ├── profiles_with_entity_refs.out │ │ │ │ │ └── two_profiles.out │ │ │ │ └── traces/ │ │ │ │ ├── empty.out │ │ │ │ ├── traces_with_entity_refs.out │ │ │ │ └── two_spans.out │ │ │ ├── traces.go │ │ │ └── traces_test.go │ │ ├── metadata.yaml │ │ └── testdata/ │ │ ├── config_output_paths.yaml │ │ ├── config_output_paths_empty.yaml │ │ ├── config_verbosity.yaml │ │ └── config_verbosity_typo.yaml │ ├── example_test.go │ ├── exporter.go │ ├── exporter_test.go │ ├── exporterhelper/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── common.go │ │ ├── config.schema.yaml │ │ ├── constants.go │ │ ├── doc.go │ │ ├── documentation.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── base_exporter.go │ │ │ ├── base_exporter_test.go │ │ │ ├── config.schema.yaml │ │ │ ├── constants.go │ │ │ ├── experr/ │ │ │ │ ├── err.go │ │ │ │ └── err_test.go │ │ │ ├── hosttest/ │ │ │ │ ├── hosttest.go │ │ │ │ └── hosttest_test.go │ │ │ ├── metadata/ │ │ │ │ ├── generated_feature_gates.go │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ ├── metadatatest/ │ │ │ │ ├── generated_telemetrytest.go │ │ │ │ └── generated_telemetrytest_test.go │ │ │ ├── new_request.go │ │ │ ├── new_request_test.go │ │ │ ├── obs_report_sender.go │ │ │ ├── obs_report_sender_test.go │ │ │ ├── oteltest/ │ │ │ │ └── tracetest.go │ │ │ ├── package_test.go │ │ │ ├── queue/ │ │ │ │ ├── async_queue.go │ │ │ │ ├── async_queue_test.go │ │ │ │ ├── cond.go │ │ │ │ ├── fg.go │ │ │ │ ├── memory_queue.go │ │ │ │ ├── memory_queue_test.go │ │ │ │ ├── meta.pb.go │ │ │ │ ├── meta.proto │ │ │ │ ├── obs_queue.go │ │ │ │ ├── obs_queue_test.go │ │ │ │ ├── persistent_queue.go │ │ │ │ ├── persistent_queue_test.go │ │ │ │ └── queue.go │ │ │ ├── queue_sender.go │ │ │ ├── queue_sender_test.go │ │ │ ├── queuebatch/ │ │ │ │ ├── batch_context.go │ │ │ │ ├── batch_context_test.go │ │ │ │ ├── batcher.go │ │ │ │ ├── config.go │ │ │ │ ├── config.schema.yaml │ │ │ │ ├── config_test.go │ │ │ │ ├── disabled_batcher.go │ │ │ │ ├── disabled_batcher_test.go │ │ │ │ ├── doc.go │ │ │ │ ├── encoding.go │ │ │ │ ├── generated_package_test.go │ │ │ │ ├── logs.go │ │ │ │ ├── logs_batch.go │ │ │ │ ├── logs_batch_test.go │ │ │ │ ├── logs_test.go │ │ │ │ ├── metadata.yaml │ │ │ │ ├── metadata_partitioner.go │ │ │ │ ├── metadata_partitioner_test.go │ │ │ │ ├── metrics.go │ │ │ │ ├── metrics_batch.go │ │ │ │ ├── metrics_batch_test.go │ │ │ │ ├── metrics_test.go │ │ │ │ ├── multi_batcher.go │ │ │ │ ├── multi_batcher_test.go │ │ │ │ ├── partition_batcher.go │ │ │ │ ├── partition_batcher_test.go │ │ │ │ ├── partitioner.go │ │ │ │ ├── partitioner_test.go │ │ │ │ ├── queue_batch.go │ │ │ │ ├── queue_batch_test.go │ │ │ │ ├── testdata/ │ │ │ │ │ ├── batch_set_empty_explicit_sizer.yaml │ │ │ │ │ ├── batch_set_empty_no_explicit_sizer.yaml │ │ │ │ │ ├── batch_set_nonempty_explicit_sizer.yaml │ │ │ │ │ ├── batch_set_nonempty_no_explicit_sizer.yaml │ │ │ │ │ └── batch_unset.yaml │ │ │ │ ├── traces.go │ │ │ │ ├── traces_batch.go │ │ │ │ ├── traces_batch_test.go │ │ │ │ └── traces_test.go │ │ │ ├── request/ │ │ │ │ ├── request.go │ │ │ │ ├── sizer.go │ │ │ │ └── sizer_test.go │ │ │ ├── requesttest/ │ │ │ │ ├── request.go │ │ │ │ └── sink.go │ │ │ ├── retry_sender.go │ │ │ ├── retry_sender_test.go │ │ │ ├── sender/ │ │ │ │ ├── sender.go │ │ │ │ └── sender_test.go │ │ │ ├── sendertest/ │ │ │ │ ├── sendertest.go │ │ │ │ └── sendertest_test.go │ │ │ ├── sizer/ │ │ │ │ ├── logs_sizer.go │ │ │ │ ├── logs_sizer_test.go │ │ │ │ ├── metrics_sizer.go │ │ │ │ ├── metrics_sizer_test.go │ │ │ │ ├── profiles_sizer.go │ │ │ │ ├── proto_delta_sizer.go │ │ │ │ ├── proto_delta_sizer_test.go │ │ │ │ ├── traces_sizer.go │ │ │ │ └── traces_sizer_test.go │ │ │ ├── storagetest/ │ │ │ │ └── mock_storage.go │ │ │ ├── timeout_sender.go │ │ │ └── timeout_sender_test.go │ │ ├── logs.go │ │ ├── logs_test.go │ │ ├── metadata.yaml │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── queue_batch.go │ │ ├── request.go │ │ ├── retry_sender.go │ │ ├── timeout_sender.go │ │ ├── traces.go │ │ ├── traces_test.go │ │ └── xexporterhelper/ │ │ ├── Makefile │ │ ├── constants.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── new_request.go │ │ ├── profiles.go │ │ ├── profiles_batch.go │ │ ├── profiles_batch_test.go │ │ ├── profiles_test.go │ │ └── request.go │ ├── exportertest/ │ │ ├── Makefile │ │ ├── contract_checker.go │ │ ├── contract_checker_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── mock_consumer.go │ │ ├── mock_consumer_test.go │ │ ├── nop_exporter.go │ │ └── nop_exporter_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── experr/ │ │ └── err.go │ ├── metadata.yaml │ ├── nopexporter/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── doc.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_status.go │ │ ├── metadata.yaml │ │ ├── nop_exporter.go │ │ └── nop_exporter_test.go │ ├── otlpexporter/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── cfg-schema.yaml │ │ ├── config.go │ │ ├── config.yaml │ │ ├── config_test.go │ │ ├── doc.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_status.go │ │ ├── metadata.yaml │ │ ├── otlp.go │ │ ├── otlp_test.go │ │ └── testdata/ │ │ ├── config.yaml │ │ ├── default-batch.yaml │ │ ├── invalid_configs.yaml │ │ ├── test_cert.pem │ │ └── test_key.pem │ ├── otlphttpexporter/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── config_test.go │ │ ├── doc.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_status.go │ │ ├── metadata.yaml │ │ ├── otlp.go │ │ ├── otlp_test.go │ │ └── testdata/ │ │ ├── bad_empty_config.yaml │ │ ├── bad_invalid_encoding.yaml │ │ ├── config.yaml │ │ └── test_cert.pem │ ├── package_test.go │ └── xexporter/ │ ├── Makefile │ ├── exporter.go │ ├── exporter_test.go │ ├── go.mod │ ├── go.sum │ └── metadata.yaml ├── extension/ │ ├── Makefile │ ├── README.md │ ├── extension.go │ ├── extension_test.go │ ├── extensionauth/ │ │ ├── Makefile │ │ ├── client.go │ │ ├── client_test.go │ │ ├── doc.go │ │ ├── extensionauthtest/ │ │ │ ├── Makefile │ │ │ ├── err.go │ │ │ ├── err_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── nop_client.go │ │ │ ├── nop_client_test.go │ │ │ ├── nop_server.go │ │ │ └── package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── package_test.go │ │ ├── server.go │ │ └── server_test.go │ ├── extensioncapabilities/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── interfaces.go │ │ └── metadata.yaml │ ├── extensionmiddleware/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── client.go │ │ ├── client_test.go │ │ ├── extensionmiddlewaretest/ │ │ │ ├── Makefile │ │ │ ├── err.go │ │ │ ├── err_test.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── metadata.yaml │ │ │ ├── nop.go │ │ │ └── nop_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── server.go │ │ └── server_test.go │ ├── extensiontest/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop_extension.go │ │ └── nop_extension_test.go │ ├── go.mod │ ├── go.sum │ ├── memorylimiterextension/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ └── generated_status.go │ │ ├── memorylimiter.go │ │ ├── memorylimiter_test.go │ │ ├── metadata.yaml │ │ └── testdata/ │ │ └── config.yaml │ ├── metadata.yaml │ ├── package_test.go │ ├── xextension/ │ │ ├── Makefile │ │ ├── extension.go │ │ ├── extension_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── storage/ │ │ ├── README.md │ │ ├── doc.go │ │ ├── metadata.yaml │ │ ├── nop_client.go │ │ └── storage.go │ └── zpagesextension/ │ ├── Makefile │ ├── README.md │ ├── config.go │ ├── config_test.go │ ├── doc.go │ ├── factory.go │ ├── factory_test.go │ ├── generated_component_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── metadata/ │ │ └── generated_status.go │ ├── metadata.yaml │ ├── testdata/ │ │ └── config.yaml │ ├── zpagesextension.go │ └── zpagesextension_test.go ├── featuregate/ │ ├── Makefile │ ├── README.md │ ├── examples_test.go │ ├── flag.go │ ├── flag_test.go │ ├── gate.go │ ├── gate_test.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── package_test.go │ ├── registry.go │ ├── registry_test.go │ ├── stage.go │ └── stage_test.go ├── filter/ │ ├── Makefile │ ├── config.go │ ├── config.schema.yaml │ ├── config_test.go │ ├── doc.go │ ├── filter.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ └── testdata/ │ ├── config.yaml │ └── config_invalid.yaml ├── go.mod ├── go.sum ├── internal/ │ ├── buildscripts/ │ │ ├── compare-apidiff.sh │ │ ├── gen-apidiff.sh │ │ └── gen-certs.sh │ ├── cmd/ │ │ └── pdatagen/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── pdata/ │ │ │ │ ├── base_slices.go │ │ │ │ ├── base_struct.go │ │ │ │ ├── field.go │ │ │ │ ├── message_field.go │ │ │ │ ├── one_of_field.go │ │ │ │ ├── one_of_message_value.go │ │ │ │ ├── one_of_primitive_value.go │ │ │ │ ├── optional_primitive_field.go │ │ │ │ ├── packages.go │ │ │ │ ├── pcommon_package.go │ │ │ │ ├── plog_package.go │ │ │ │ ├── plogotlp_package.go │ │ │ │ ├── pmetric_package.go │ │ │ │ ├── pmetricotlp_package.go │ │ │ │ ├── pprofile_package.go │ │ │ │ ├── pprofileotlp_package.go │ │ │ │ ├── primitive_field.go │ │ │ │ ├── primitive_slice_structs.go │ │ │ │ ├── ptrace_package.go │ │ │ │ ├── ptraceotlp_package.go │ │ │ │ ├── request_package.go │ │ │ │ ├── slice_field.go │ │ │ │ ├── templates/ │ │ │ │ │ ├── message.go.tmpl │ │ │ │ │ ├── message_internal.go.tmpl │ │ │ │ │ ├── message_test.go.tmpl │ │ │ │ │ ├── primitive_slice.go.tmpl │ │ │ │ │ ├── primitive_slice_internal.go.tmpl │ │ │ │ │ ├── primitive_slice_test.go.tmpl │ │ │ │ │ ├── slice.go.tmpl │ │ │ │ │ ├── slice_internal.go.tmpl │ │ │ │ │ └── slice_test.go.tmpl │ │ │ │ ├── templates.go │ │ │ │ ├── typed_field.go │ │ │ │ └── xpdata_entity_package.go │ │ │ ├── proto/ │ │ │ │ ├── copy.go │ │ │ │ ├── delete.go │ │ │ │ ├── enum.go │ │ │ │ ├── field.go │ │ │ │ ├── json_marshal.go │ │ │ │ ├── json_unmarshal.go │ │ │ │ ├── message.go │ │ │ │ ├── metadata.go │ │ │ │ ├── oneof_message.go │ │ │ │ ├── pools.go │ │ │ │ ├── proto.go │ │ │ │ ├── proto_marshal.go │ │ │ │ ├── proto_size.go │ │ │ │ ├── proto_unmarshal.go │ │ │ │ ├── templates/ │ │ │ │ │ ├── message.go.tmpl │ │ │ │ │ └── message_test.go.tmpl │ │ │ │ ├── test_encoding_values.go │ │ │ │ └── wire_type.go │ │ │ └── tmplutil/ │ │ │ └── template.go │ │ └── main.go │ ├── componentalias/ │ │ ├── Makefile │ │ ├── alias.go │ │ ├── alias_test.go │ │ ├── go.mod │ │ └── go.sum │ ├── e2e/ │ │ ├── Makefile │ │ ├── configauth_test.go │ │ ├── configgrpc_test.go │ │ ├── confighttp_test.go │ │ ├── confignet_test.go │ │ ├── configtls_test.go │ │ ├── consume_contract_test.go │ │ ├── error_propagation_test.go │ │ ├── exporter_failure_attributes_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal_telemetry_test.go │ │ ├── metric_stability_test.go │ │ ├── opaque_test.go │ │ ├── otlphttp_test.go │ │ ├── package_test.go │ │ ├── status_test.go │ │ └── testdata/ │ │ ├── exporter_failure_attributes_test.yaml │ │ ├── metric_stability_test_no_readers.yaml │ │ └── metric_stability_test_readers.yaml │ ├── fanoutconsumer/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── logs.go │ │ ├── logs_test.go │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── package_test.go │ │ ├── profiles.go │ │ ├── profiles_test.go │ │ ├── traces.go │ │ └── traces_test.go │ ├── memorylimiter/ │ │ ├── Makefile │ │ ├── cgroups/ │ │ │ ├── cgroup.go │ │ │ ├── cgroup_test.go │ │ │ ├── cgroups.go │ │ │ ├── cgroups_test.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── mountpoint.go │ │ │ ├── mountpoint_test.go │ │ │ ├── package_test.go │ │ │ ├── subsys.go │ │ │ ├── subsys_test.go │ │ │ ├── testdata/ │ │ │ │ ├── cgroups/ │ │ │ │ │ ├── cpu/ │ │ │ │ │ │ ├── cpu.cfs_period_us │ │ │ │ │ │ └── cpu.cfs_quota_us │ │ │ │ │ ├── empty/ │ │ │ │ │ │ └── cpu.cfs_quota_us │ │ │ │ │ ├── invalid/ │ │ │ │ │ │ └── cpu.cfs_quota_us │ │ │ │ │ ├── memory/ │ │ │ │ │ │ └── memory.limit_in_bytes │ │ │ │ │ ├── undefined/ │ │ │ │ │ │ ├── cpu.cfs_period_us │ │ │ │ │ │ └── cpu.cfs_quota_us │ │ │ │ │ ├── undefined-period/ │ │ │ │ │ │ └── cpu.cfs_quota_us │ │ │ │ │ └── v2/ │ │ │ │ │ ├── empty/ │ │ │ │ │ │ └── memory.max │ │ │ │ │ ├── invalid/ │ │ │ │ │ │ └── memory.max │ │ │ │ │ ├── memory/ │ │ │ │ │ │ └── memory.max │ │ │ │ │ └── undefined/ │ │ │ │ │ └── memory.max │ │ │ │ └── proc/ │ │ │ │ ├── cgroups/ │ │ │ │ │ ├── cgroup │ │ │ │ │ └── mountinfo │ │ │ │ ├── invalid-cgroup/ │ │ │ │ │ └── cgroup │ │ │ │ ├── invalid-mountinfo/ │ │ │ │ │ └── mountinfo │ │ │ │ ├── untranslatable/ │ │ │ │ │ ├── cgroup │ │ │ │ │ └── mountinfo │ │ │ │ └── v2/ │ │ │ │ ├── cgroupv1/ │ │ │ │ │ └── mountinfo │ │ │ │ ├── cgroupv1v2/ │ │ │ │ │ └── mountinfo │ │ │ │ └── cgroupv2/ │ │ │ │ └── mountinfo │ │ │ └── util_test.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── iruntime/ │ │ │ ├── mem_info.go │ │ │ ├── mem_info_test.go │ │ │ ├── package_test.go │ │ │ ├── total_memory_linux.go │ │ │ ├── total_memory_linux_test.go │ │ │ ├── total_memory_other.go │ │ │ └── total_memory_other_test.go │ │ ├── memorylimiter.go │ │ ├── memorylimiter_test.go │ │ └── testdata/ │ │ ├── config.yaml │ │ └── negative_unsigned_limits_config.yaml │ ├── sharedcomponent/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── package_test.go │ │ ├── sharedcomponent.go │ │ └── sharedcomponent_test.go │ ├── statusutil/ │ │ ├── helper.go │ │ └── helper_test.go │ ├── telemetry/ │ │ ├── Makefile │ │ ├── attribute.go │ │ ├── attribute_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── telemetry.go │ │ └── telemetrytest/ │ │ └── mock.go │ ├── testutil/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── benchmarks.go │ │ ├── fips.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── package_test.go │ │ ├── testutil.go │ │ └── testutil_test.go │ └── tools/ │ ├── Makefile │ ├── go.mod │ └── go.sum ├── otelcol/ │ ├── Makefile │ ├── buffered_core.go │ ├── buffered_core_test.go │ ├── collector.go │ ├── collector_core.go │ ├── collector_core_test.go │ ├── collector_test.go │ ├── collector_windows.go │ ├── collector_windows_service_test.go │ ├── collector_windows_test.go │ ├── command.go │ ├── command_components.go │ ├── command_components_test.go │ ├── command_print.go │ ├── command_print_test.go │ ├── command_test.go │ ├── command_validate.go │ ├── command_validate_test.go │ ├── config.go │ ├── config_test.go │ ├── configprovider.go │ ├── configprovider_test.go │ ├── documentation.md │ ├── factories.go │ ├── factories_test.go │ ├── flags.go │ ├── flags_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ ├── configunmarshaler/ │ │ │ ├── configs.go │ │ │ ├── configs_test.go │ │ │ └── package_test.go │ │ ├── grpclog/ │ │ │ ├── logger.go │ │ │ ├── logger_test.go │ │ │ └── package_test.go │ │ └── metadata/ │ │ └── generated_feature_gates.go │ ├── metadata.yaml │ ├── otelcoltest/ │ │ ├── Makefile │ │ ├── config.go │ │ ├── config_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop_factories.go │ │ ├── nop_factories_test.go │ │ ├── package_test.go │ │ └── testdata/ │ │ ├── config.yaml │ │ ├── config_default_scheme.yaml │ │ └── config_env.yaml │ ├── signals_others.go │ ├── signals_wasm.go │ ├── testdata/ │ │ ├── components-output-sorted.yaml │ │ ├── components-output.yaml │ │ ├── configs/ │ │ │ ├── 1-config-first.yaml │ │ │ ├── 1-config-output.yaml │ │ │ ├── 1-config-second.yaml │ │ │ └── 2-config-output.yaml │ │ ├── otelcol-cyclic-connector.yaml │ │ ├── otelcol-invalid-components.yaml │ │ ├── otelcol-invalid-connector-unused-exp.yaml │ │ ├── otelcol-invalid-connector-unused-rec.yaml │ │ ├── otelcol-invalid-receiver-type.yaml │ │ ├── otelcol-invalid-telemetry.yaml │ │ ├── otelcol-invalid.yaml │ │ ├── otelcol-log-to-file.yaml │ │ ├── otelcol-nop.yaml │ │ ├── otelcol-otelconftelemetry.yaml │ │ ├── otelcol-statuswatcher.yaml │ │ ├── otelcol-valid-connector-use.yaml │ │ ├── print.yaml │ │ ├── print_default.yaml │ │ ├── print_invalid.yaml │ │ └── print_negative.yaml │ ├── unmarshal_dry_run_test.go │ ├── unmarshaler.go │ └── unmarshaler_test.go ├── pdata/ │ ├── Makefile │ ├── README.md │ ├── doc.go │ ├── documentation.md │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ ├── .gitignore │ │ ├── bytesid.go │ │ ├── bytesid_test.go │ │ ├── config.schema.yaml │ │ ├── generated_enum_aggregationtemporality.go │ │ ├── generated_enum_severitynumber.go │ │ ├── generated_enum_spankind.go │ │ ├── generated_enum_statuscode.go │ │ ├── generated_proto_anyvalue.go │ │ ├── generated_proto_anyvalue_test.go │ │ ├── generated_proto_arrayvalue.go │ │ ├── generated_proto_arrayvalue_test.go │ │ ├── generated_proto_entityref.go │ │ ├── generated_proto_entityref_test.go │ │ ├── generated_proto_exemplar.go │ │ ├── generated_proto_exemplar_test.go │ │ ├── generated_proto_exponentialhistogram.go │ │ ├── generated_proto_exponentialhistogram_test.go │ │ ├── generated_proto_exponentialhistogramdatapoint.go │ │ ├── generated_proto_exponentialhistogramdatapoint_test.go │ │ ├── generated_proto_exponentialhistogramdatapointbuckets.go │ │ ├── generated_proto_exponentialhistogramdatapointbuckets_test.go │ │ ├── generated_proto_exportlogspartialsuccess.go │ │ ├── generated_proto_exportlogspartialsuccess_test.go │ │ ├── generated_proto_exportlogsservicerequest.go │ │ ├── generated_proto_exportlogsservicerequest_test.go │ │ ├── generated_proto_exportlogsserviceresponse.go │ │ ├── generated_proto_exportlogsserviceresponse_test.go │ │ ├── generated_proto_exportmetricspartialsuccess.go │ │ ├── generated_proto_exportmetricspartialsuccess_test.go │ │ ├── generated_proto_exportmetricsservicerequest.go │ │ ├── generated_proto_exportmetricsservicerequest_test.go │ │ ├── generated_proto_exportmetricsserviceresponse.go │ │ ├── generated_proto_exportmetricsserviceresponse_test.go │ │ ├── generated_proto_exportprofilespartialsuccess.go │ │ ├── generated_proto_exportprofilespartialsuccess_test.go │ │ ├── generated_proto_exportprofilesservicerequest.go │ │ ├── generated_proto_exportprofilesservicerequest_test.go │ │ ├── generated_proto_exportprofilesserviceresponse.go │ │ ├── generated_proto_exportprofilesserviceresponse_test.go │ │ ├── generated_proto_exporttracepartialsuccess.go │ │ ├── generated_proto_exporttracepartialsuccess_test.go │ │ ├── generated_proto_exporttraceservicerequest.go │ │ ├── generated_proto_exporttraceservicerequest_test.go │ │ ├── generated_proto_exporttraceserviceresponse.go │ │ ├── generated_proto_exporttraceserviceresponse_test.go │ │ ├── generated_proto_function.go │ │ ├── generated_proto_function_test.go │ │ ├── generated_proto_gauge.go │ │ ├── generated_proto_gauge_test.go │ │ ├── generated_proto_histogram.go │ │ ├── generated_proto_histogram_test.go │ │ ├── generated_proto_histogramdatapoint.go │ │ ├── generated_proto_histogramdatapoint_test.go │ │ ├── generated_proto_instrumentationscope.go │ │ ├── generated_proto_instrumentationscope_test.go │ │ ├── generated_proto_ipaddr.go │ │ ├── generated_proto_ipaddr_test.go │ │ ├── generated_proto_keyvalue.go │ │ ├── generated_proto_keyvalue_test.go │ │ ├── generated_proto_keyvalueandunit.go │ │ ├── generated_proto_keyvalueandunit_test.go │ │ ├── generated_proto_keyvaluelist.go │ │ ├── generated_proto_keyvaluelist_test.go │ │ ├── generated_proto_line.go │ │ ├── generated_proto_line_test.go │ │ ├── generated_proto_link.go │ │ ├── generated_proto_link_test.go │ │ ├── generated_proto_location.go │ │ ├── generated_proto_location_test.go │ │ ├── generated_proto_logrecord.go │ │ ├── generated_proto_logrecord_test.go │ │ ├── generated_proto_logsdata.go │ │ ├── generated_proto_logsdata_test.go │ │ ├── generated_proto_logsrequest.go │ │ ├── generated_proto_logsrequest_test.go │ │ ├── generated_proto_mapping.go │ │ ├── generated_proto_mapping_test.go │ │ ├── generated_proto_metric.go │ │ ├── generated_proto_metric_test.go │ │ ├── generated_proto_metricsdata.go │ │ ├── generated_proto_metricsdata_test.go │ │ ├── generated_proto_metricsrequest.go │ │ ├── generated_proto_metricsrequest_test.go │ │ ├── generated_proto_numberdatapoint.go │ │ ├── generated_proto_numberdatapoint_test.go │ │ ├── generated_proto_profile.go │ │ ├── generated_proto_profile_test.go │ │ ├── generated_proto_profilesdata.go │ │ ├── generated_proto_profilesdata_test.go │ │ ├── generated_proto_profilesdictionary.go │ │ ├── generated_proto_profilesdictionary_test.go │ │ ├── generated_proto_profilesrequest.go │ │ ├── generated_proto_profilesrequest_test.go │ │ ├── generated_proto_requestcontext.go │ │ ├── generated_proto_requestcontext_test.go │ │ ├── generated_proto_resource.go │ │ ├── generated_proto_resource_test.go │ │ ├── generated_proto_resourcelogs.go │ │ ├── generated_proto_resourcelogs_test.go │ │ ├── generated_proto_resourcemetrics.go │ │ ├── generated_proto_resourcemetrics_test.go │ │ ├── generated_proto_resourceprofiles.go │ │ ├── generated_proto_resourceprofiles_test.go │ │ ├── generated_proto_resourcespans.go │ │ ├── generated_proto_resourcespans_test.go │ │ ├── generated_proto_sample.go │ │ ├── generated_proto_sample_test.go │ │ ├── generated_proto_scopelogs.go │ │ ├── generated_proto_scopelogs_test.go │ │ ├── generated_proto_scopemetrics.go │ │ ├── generated_proto_scopemetrics_test.go │ │ ├── generated_proto_scopeprofiles.go │ │ ├── generated_proto_scopeprofiles_test.go │ │ ├── generated_proto_scopespans.go │ │ ├── generated_proto_scopespans_test.go │ │ ├── generated_proto_span.go │ │ ├── generated_proto_span_test.go │ │ ├── generated_proto_spancontext.go │ │ ├── generated_proto_spancontext_test.go │ │ ├── generated_proto_spanevent.go │ │ ├── generated_proto_spanevent_test.go │ │ ├── generated_proto_spanlink.go │ │ ├── generated_proto_spanlink_test.go │ │ ├── generated_proto_stack.go │ │ ├── generated_proto_stack_test.go │ │ ├── generated_proto_status.go │ │ ├── generated_proto_status_test.go │ │ ├── generated_proto_sum.go │ │ ├── generated_proto_sum_test.go │ │ ├── generated_proto_summary.go │ │ ├── generated_proto_summary_test.go │ │ ├── generated_proto_summarydatapoint.go │ │ ├── generated_proto_summarydatapoint_test.go │ │ ├── generated_proto_summarydatapointvalueatquantile.go │ │ ├── generated_proto_summarydatapointvalueatquantile_test.go │ │ ├── generated_proto_tcpaddr.go │ │ ├── generated_proto_tcpaddr_test.go │ │ ├── generated_proto_tracesdata.go │ │ ├── generated_proto_tracesdata_test.go │ │ ├── generated_proto_tracesrequest.go │ │ ├── generated_proto_tracesrequest_test.go │ │ ├── generated_proto_udpaddr.go │ │ ├── generated_proto_udpaddr_test.go │ │ ├── generated_proto_unixaddr.go │ │ ├── generated_proto_unixaddr_test.go │ │ ├── generated_proto_valuetype.go │ │ ├── generated_proto_valuetype_test.go │ │ ├── generated_wrapper_anyvalueslice.go │ │ ├── generated_wrapper_byteslice.go │ │ ├── generated_wrapper_entityref.go │ │ ├── generated_wrapper_entityrefslice.go │ │ ├── generated_wrapper_exportlogsservicerequest.go │ │ ├── generated_wrapper_exportmetricsservicerequest.go │ │ ├── generated_wrapper_exportprofilesservicerequest.go │ │ ├── generated_wrapper_exporttraceservicerequest.go │ │ ├── generated_wrapper_float64slice.go │ │ ├── generated_wrapper_instrumentationscope.go │ │ ├── generated_wrapper_int32slice.go │ │ ├── generated_wrapper_int64slice.go │ │ ├── generated_wrapper_profilesdata.go │ │ ├── generated_wrapper_resource.go │ │ ├── generated_wrapper_stringslice.go │ │ ├── generated_wrapper_uint64slice.go │ │ ├── json/ │ │ │ ├── iterator.go │ │ │ ├── iterator_test.go │ │ │ ├── package_test.go │ │ │ ├── stream.go │ │ │ └── stream_test.go │ │ ├── metadata/ │ │ │ └── generated_feature_gates.go │ │ ├── otelgrpc/ │ │ │ ├── encoding.go │ │ │ ├── logs_service.go │ │ │ ├── metrics_service.go │ │ │ ├── profiles_service.go │ │ │ └── trace_service.go │ │ ├── otlp/ │ │ │ ├── logs.go │ │ │ ├── logs_test.go │ │ │ ├── metrics.go │ │ │ ├── metrics_test.go │ │ │ ├── package_test.go │ │ │ ├── profiles.go │ │ │ ├── profiles_test.go │ │ │ ├── traces.go │ │ │ └── traces_test.go │ │ ├── profileid.go │ │ ├── profileid_test.go │ │ ├── proto/ │ │ │ ├── marshal.go │ │ │ ├── size.go │ │ │ └── unmarshal.go │ │ ├── spanid.go │ │ ├── spanid_test.go │ │ ├── state.go │ │ ├── state_test.go │ │ ├── traceid.go │ │ ├── traceid_test.go │ │ ├── unpacked_unmarshal_test.go │ │ ├── wrapper_logs.go │ │ ├── wrapper_map.go │ │ ├── wrapper_metrics.go │ │ ├── wrapper_profiles.go │ │ ├── wrapper_traces.go │ │ ├── wrapper_tracestate.go │ │ ├── wrapper_value.go │ │ └── wrapper_value_test.go │ ├── metadata.yaml │ ├── pcommon/ │ │ ├── generated_byteslice.go │ │ ├── generated_byteslice_test.go │ │ ├── generated_float64slice.go │ │ ├── generated_float64slice_test.go │ │ ├── generated_instrumentationscope.go │ │ ├── generated_instrumentationscope_test.go │ │ ├── generated_int32slice.go │ │ ├── generated_int32slice_test.go │ │ ├── generated_int64slice.go │ │ ├── generated_int64slice_test.go │ │ ├── generated_resource.go │ │ ├── generated_resource_test.go │ │ ├── generated_slice.go │ │ ├── generated_slice_test.go │ │ ├── generated_stringslice.go │ │ ├── generated_stringslice_test.go │ │ ├── generated_uint64slice.go │ │ ├── generated_uint64slice_test.go │ │ ├── map.go │ │ ├── map_test.go │ │ ├── package_test.go │ │ ├── slice.go │ │ ├── slice_test.go │ │ ├── spanid.go │ │ ├── spanid_test.go │ │ ├── timestamp.go │ │ ├── timestamp_test.go │ │ ├── trace_state.go │ │ ├── trace_state_test.go │ │ ├── traceid.go │ │ ├── traceid_test.go │ │ ├── value.go │ │ └── value_test.go │ ├── plog/ │ │ ├── config.schema.yaml │ │ ├── doc_test.go │ │ ├── encoding.go │ │ ├── fuzz_test.go │ │ ├── generated_logrecord.go │ │ ├── generated_logrecord_test.go │ │ ├── generated_logrecordslice.go │ │ ├── generated_logrecordslice_test.go │ │ ├── generated_logs.go │ │ ├── generated_logs_test.go │ │ ├── generated_resourcelogs.go │ │ ├── generated_resourcelogs_test.go │ │ ├── generated_resourcelogsslice.go │ │ ├── generated_resourcelogsslice_test.go │ │ ├── generated_scopelogs.go │ │ ├── generated_scopelogs_test.go │ │ ├── generated_scopelogsslice.go │ │ ├── generated_scopelogsslice_test.go │ │ ├── json.go │ │ ├── log_record_flags.go │ │ ├── log_record_flags_test.go │ │ ├── logs.go │ │ ├── logs_test.go │ │ ├── package_test.go │ │ ├── pb.go │ │ ├── pb_test.go │ │ ├── plogotlp/ │ │ │ ├── fuzz_test.go │ │ │ ├── generated_exportpartialsuccess.go │ │ │ ├── generated_exportpartialsuccess_test.go │ │ │ ├── generated_exportresponse.go │ │ │ ├── generated_exportresponse_test.go │ │ │ ├── grpc.go │ │ │ ├── grpc_test.go │ │ │ ├── package_test.go │ │ │ ├── request.go │ │ │ ├── request_test.go │ │ │ ├── response.go │ │ │ └── response_test.go │ │ ├── severity_number.go │ │ └── severity_number_test.go │ ├── pmetric/ │ │ ├── aggregation_temporality.go │ │ ├── aggregation_temporality_test.go │ │ ├── doc_test.go │ │ ├── encoding.go │ │ ├── exemplar_value_type.go │ │ ├── exemplar_value_type_test.go │ │ ├── fuzz_test.go │ │ ├── generated_exemplar.go │ │ ├── generated_exemplar_test.go │ │ ├── generated_exemplarslice.go │ │ ├── generated_exemplarslice_test.go │ │ ├── generated_exponentialhistogram.go │ │ ├── generated_exponentialhistogram_test.go │ │ ├── generated_exponentialhistogramdatapoint.go │ │ ├── generated_exponentialhistogramdatapoint_test.go │ │ ├── generated_exponentialhistogramdatapointbuckets.go │ │ ├── generated_exponentialhistogramdatapointbuckets_test.go │ │ ├── generated_exponentialhistogramdatapointslice.go │ │ ├── generated_exponentialhistogramdatapointslice_test.go │ │ ├── generated_gauge.go │ │ ├── generated_gauge_test.go │ │ ├── generated_histogram.go │ │ ├── generated_histogram_test.go │ │ ├── generated_histogramdatapoint.go │ │ ├── generated_histogramdatapoint_test.go │ │ ├── generated_histogramdatapointslice.go │ │ ├── generated_histogramdatapointslice_test.go │ │ ├── generated_metric.go │ │ ├── generated_metric_test.go │ │ ├── generated_metrics.go │ │ ├── generated_metrics_test.go │ │ ├── generated_metricslice.go │ │ ├── generated_metricslice_test.go │ │ ├── generated_numberdatapoint.go │ │ ├── generated_numberdatapoint_test.go │ │ ├── generated_numberdatapointslice.go │ │ ├── generated_numberdatapointslice_test.go │ │ ├── generated_resourcemetrics.go │ │ ├── generated_resourcemetrics_test.go │ │ ├── generated_resourcemetricsslice.go │ │ ├── generated_resourcemetricsslice_test.go │ │ ├── generated_scopemetrics.go │ │ ├── generated_scopemetrics_test.go │ │ ├── generated_scopemetricsslice.go │ │ ├── generated_scopemetricsslice_test.go │ │ ├── generated_sum.go │ │ ├── generated_sum_test.go │ │ ├── generated_summary.go │ │ ├── generated_summary_test.go │ │ ├── generated_summarydatapoint.go │ │ ├── generated_summarydatapoint_test.go │ │ ├── generated_summarydatapointslice.go │ │ ├── generated_summarydatapointslice_test.go │ │ ├── generated_summarydatapointvalueatquantile.go │ │ ├── generated_summarydatapointvalueatquantile_test.go │ │ ├── generated_summarydatapointvalueatquantileslice.go │ │ ├── generated_summarydatapointvalueatquantileslice_test.go │ │ ├── json.go │ │ ├── metric_data_point_flags.go │ │ ├── metric_data_point_flags_test.go │ │ ├── metric_type.go │ │ ├── metric_type_test.go │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── number_data_point_value_type.go │ │ ├── number_data_point_value_type_test.go │ │ ├── package_test.go │ │ ├── pb.go │ │ ├── pb_test.go │ │ └── pmetricotlp/ │ │ ├── fuzz_test.go │ │ ├── generated_exportpartialsuccess.go │ │ ├── generated_exportpartialsuccess_test.go │ │ ├── generated_exportresponse.go │ │ ├── generated_exportresponse_test.go │ │ ├── grpc.go │ │ ├── grpc_test.go │ │ ├── package_test.go │ │ ├── request.go │ │ ├── request_test.go │ │ ├── response.go │ │ └── response_test.go │ ├── pprofile/ │ │ ├── Makefile │ │ ├── aggregation_temporality.go │ │ ├── aggregation_temporality_test.go │ │ ├── attributes.go │ │ ├── attributes_test.go │ │ ├── dictionary_helpers.go │ │ ├── dictionary_helpers_test.go │ │ ├── encoding.go │ │ ├── function.go │ │ ├── function_test.go │ │ ├── functions.go │ │ ├── functions_test.go │ │ ├── fuzz_test.go │ │ ├── generated_function.go │ │ ├── generated_function_test.go │ │ ├── generated_functionslice.go │ │ ├── generated_functionslice_test.go │ │ ├── generated_keyvalueandunit.go │ │ ├── generated_keyvalueandunit_test.go │ │ ├── generated_keyvalueandunitslice.go │ │ ├── generated_keyvalueandunitslice_test.go │ │ ├── generated_line.go │ │ ├── generated_line_test.go │ │ ├── generated_lineslice.go │ │ ├── generated_lineslice_test.go │ │ ├── generated_link.go │ │ ├── generated_link_test.go │ │ ├── generated_linkslice.go │ │ ├── generated_linkslice_test.go │ │ ├── generated_location.go │ │ ├── generated_location_test.go │ │ ├── generated_locationslice.go │ │ ├── generated_locationslice_test.go │ │ ├── generated_mapping.go │ │ ├── generated_mapping_test.go │ │ ├── generated_mappingslice.go │ │ ├── generated_mappingslice_test.go │ │ ├── generated_profile.go │ │ ├── generated_profile_test.go │ │ ├── generated_profiles.go │ │ ├── generated_profiles_test.go │ │ ├── generated_profilesdata.go │ │ ├── generated_profilesdata_test.go │ │ ├── generated_profilesdictionary.go │ │ ├── generated_profilesdictionary_test.go │ │ ├── generated_profilesslice.go │ │ ├── generated_profilesslice_test.go │ │ ├── generated_resourceprofiles.go │ │ ├── generated_resourceprofiles_test.go │ │ ├── generated_resourceprofilesslice.go │ │ ├── generated_resourceprofilesslice_test.go │ │ ├── generated_sample.go │ │ ├── generated_sample_test.go │ │ ├── generated_sampleslice.go │ │ ├── generated_sampleslice_test.go │ │ ├── generated_scopeprofiles.go │ │ ├── generated_scopeprofiles_test.go │ │ ├── generated_scopeprofilesslice.go │ │ ├── generated_scopeprofilesslice_test.go │ │ ├── generated_stack.go │ │ ├── generated_stack_test.go │ │ ├── generated_stackslice.go │ │ ├── generated_stackslice_test.go │ │ ├── generated_valuetype.go │ │ ├── generated_valuetype_test.go │ │ ├── generated_valuetypeslice.go │ │ ├── generated_valuetypeslice_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── json.go │ │ ├── json_references_test.go │ │ ├── keyvalueandunit.go │ │ ├── keyvalueandunit_test.go │ │ ├── line.go │ │ ├── line_test.go │ │ ├── link.go │ │ ├── link_test.go │ │ ├── links.go │ │ ├── links_test.go │ │ ├── location.go │ │ ├── location_test.go │ │ ├── locations.go │ │ ├── locations_test.go │ │ ├── mapping.go │ │ ├── mapping_test.go │ │ ├── mappings.go │ │ ├── mappings_test.go │ │ ├── metadata.yaml │ │ ├── pb.go │ │ ├── pb_references_test.go │ │ ├── pb_test.go │ │ ├── pprofileotlp/ │ │ │ ├── fuzz_test.go │ │ │ ├── generated_exportpartialsuccess.go │ │ │ ├── generated_exportpartialsuccess_test.go │ │ │ ├── generated_exportresponse.go │ │ │ ├── generated_exportresponse_test.go │ │ │ ├── grpc.go │ │ │ ├── grpc_test.go │ │ │ ├── package_test.go │ │ │ ├── request.go │ │ │ ├── request_test.go │ │ │ ├── response.go │ │ │ └── response_test.go │ │ ├── profile.go │ │ ├── profile_test.go │ │ ├── profileid.go │ │ ├── profileid_test.go │ │ ├── profiles.go │ │ ├── profiles_merge.go │ │ ├── profiles_merge_test.go │ │ ├── profiles_test.go │ │ ├── resourceprofiles.go │ │ ├── resourceprofiles_test.go │ │ ├── sample.go │ │ ├── sample_test.go │ │ ├── scopeprofiles.go │ │ ├── scopeprofiles_test.go │ │ ├── stack.go │ │ ├── stack_test.go │ │ ├── stacks.go │ │ ├── stacks_test.go │ │ ├── string_table.go │ │ ├── string_table_test.go │ │ ├── valuetype.go │ │ └── valuetype_test.go │ ├── ptrace/ │ │ ├── doc_test.go │ │ ├── encoding.go │ │ ├── fuzz_test.go │ │ ├── generated_resourcespans.go │ │ ├── generated_resourcespans_test.go │ │ ├── generated_resourcespansslice.go │ │ ├── generated_resourcespansslice_test.go │ │ ├── generated_scopespans.go │ │ ├── generated_scopespans_test.go │ │ ├── generated_scopespansslice.go │ │ ├── generated_scopespansslice_test.go │ │ ├── generated_span.go │ │ ├── generated_span_test.go │ │ ├── generated_spanevent.go │ │ ├── generated_spanevent_test.go │ │ ├── generated_spaneventslice.go │ │ ├── generated_spaneventslice_test.go │ │ ├── generated_spanlink.go │ │ ├── generated_spanlink_test.go │ │ ├── generated_spanlinkslice.go │ │ ├── generated_spanlinkslice_test.go │ │ ├── generated_spanslice.go │ │ ├── generated_spanslice_test.go │ │ ├── generated_status.go │ │ ├── generated_status_test.go │ │ ├── generated_traces.go │ │ ├── generated_traces_test.go │ │ ├── json.go │ │ ├── package_test.go │ │ ├── pb.go │ │ ├── pb_test.go │ │ ├── ptraceotlp/ │ │ │ ├── fuzz_test.go │ │ │ ├── generated_exportpartialsuccess.go │ │ │ ├── generated_exportpartialsuccess_test.go │ │ │ ├── generated_exportresponse.go │ │ │ ├── generated_exportresponse_test.go │ │ │ ├── grpc.go │ │ │ ├── grpc_test.go │ │ │ ├── package_test.go │ │ │ ├── request.go │ │ │ ├── request_test.go │ │ │ ├── response.go │ │ │ └── response_test.go │ │ ├── span_kind.go │ │ ├── span_kind_test.go │ │ ├── status_code.go │ │ ├── status_code_test.go │ │ ├── traces.go │ │ └── traces_test.go │ ├── testdata/ │ │ ├── Makefile │ │ ├── common.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── log.go │ │ ├── metric.go │ │ ├── profile.go │ │ ├── resource.go │ │ └── trace.go │ └── xpdata/ │ ├── Makefile │ ├── documentation.md │ ├── entity/ │ │ ├── entity.go │ │ ├── entity_attribute_map.go │ │ ├── entity_attribute_map_test.go │ │ ├── entity_map.go │ │ ├── entity_map_test.go │ │ ├── entity_test.go │ │ ├── generated_entityref.go │ │ ├── generated_entityref_test.go │ │ ├── generated_entityrefslice.go │ │ ├── generated_entityrefslice_test.go │ │ ├── resource_entities.go │ │ └── resource_entities_test.go │ ├── fuzz_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── metadata/ │ │ └── generated_feature_gates.go │ ├── json.go │ ├── json_test.go │ ├── map_builder.go │ ├── map_builder_test.go │ ├── metadata.yaml │ ├── pref/ │ │ ├── gate.go │ │ ├── logs.go │ │ ├── metrics.go │ │ ├── profiles.go │ │ └── traces.go │ ├── request/ │ │ ├── context.go │ │ ├── context_test.go │ │ ├── internal/ │ │ │ └── request.proto │ │ ├── logs_request.go │ │ ├── logs_request_test.go │ │ ├── metrics_request.go │ │ ├── metrics_request_test.go │ │ ├── profiles_request.go │ │ ├── profiles_request_test.go │ │ ├── requesttest.go │ │ ├── traces_request.go │ │ ├── traces_request_test.go │ │ ├── version_check.go │ │ └── version_check_test.go │ └── xpdata.go ├── pipeline/ │ ├── Makefile │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── globalsignal/ │ │ ├── signal.go │ │ └── signal_test.go │ ├── metadata.yaml │ ├── pipeline.go │ ├── pipeline_test.go │ ├── signal.go │ └── xpipeline/ │ ├── Makefile │ ├── config.go │ ├── go.mod │ ├── go.sum │ └── metadata.yaml ├── processor/ │ ├── Makefile │ ├── README.md │ ├── batchprocessor/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── batch_processor.go │ │ ├── batch_processor_test.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── documentation.md │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ ├── generated_status.go │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ └── metadatatest/ │ │ │ ├── generated_telemetrytest.go │ │ │ └── generated_telemetrytest_test.go │ │ ├── metadata.yaml │ │ ├── metrics.go │ │ ├── splitlogs.go │ │ ├── splitlogs_test.go │ │ ├── splitmetrics.go │ │ ├── splitmetrics_test.go │ │ ├── splittraces.go │ │ ├── splittraces_test.go │ │ └── testdata/ │ │ └── config.yaml │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ ├── err.go │ │ └── obsmetrics.go │ ├── memorylimiterprocessor/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── documentation.md │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ ├── generated_status.go │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ ├── metadatatest/ │ │ │ │ ├── generated_telemetrytest.go │ │ │ │ └── generated_telemetrytest_test.go │ │ │ ├── mock_exporter.go │ │ │ └── mock_receiver.go │ │ ├── memorylimiter.go │ │ ├── memorylimiter_test.go │ │ ├── metadata.yaml │ │ └── obsreport.go │ ├── metadata.yaml │ ├── package_test.go │ ├── processor.go │ ├── processor_test.go │ ├── processorhelper/ │ │ ├── Makefile │ │ ├── documentation.md │ │ ├── example_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ └── metadatatest/ │ │ │ ├── generated_telemetrytest.go │ │ │ └── generated_telemetrytest_test.go │ │ ├── logs.go │ │ ├── logs_test.go │ │ ├── metadata.yaml │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── obsreport.go │ │ ├── processor.go │ │ ├── traces.go │ │ ├── traces_test.go │ │ └── xprocessorhelper/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── processor.go │ │ ├── profiles.go │ │ └── profiles_test.go │ ├── processortest/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop_processor.go │ │ ├── nop_processor_test.go │ │ ├── package_test.go │ │ ├── shutdown_verifier.go │ │ ├── shutdown_verifier_test.go │ │ ├── unhealthy_processor.go │ │ └── unhealthy_processor_test.go │ └── xprocessor/ │ ├── Makefile │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── processor.go │ └── processor_test.go ├── receiver/ │ ├── Makefile │ ├── README.md │ ├── doc.go │ ├── example_test.go │ ├── go.mod │ ├── go.sum │ ├── internal/ │ │ └── err.go │ ├── metadata.yaml │ ├── nopreceiver/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── doc.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ └── metadata/ │ │ │ ├── generated_logs.go │ │ │ ├── generated_logs_test.go │ │ │ └── generated_status.go │ │ ├── metadata.yaml │ │ ├── nop_receiver.go │ │ └── nop_receiver_test.go │ ├── otlpreceiver/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.go │ │ ├── config.md │ │ ├── config_test.go │ │ ├── doc.go │ │ ├── encoder.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── fuzz_test.go │ │ ├── generated_component_test.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── errors/ │ │ │ │ ├── errors.go │ │ │ │ └── errors_test.go │ │ │ ├── logs/ │ │ │ │ ├── otlp.go │ │ │ │ ├── otlp_test.go │ │ │ │ └── package_test.go │ │ │ ├── metadata/ │ │ │ │ ├── generated_logs.go │ │ │ │ ├── generated_logs_test.go │ │ │ │ └── generated_status.go │ │ │ ├── metrics/ │ │ │ │ ├── otlp.go │ │ │ │ ├── otlp_test.go │ │ │ │ └── package_test.go │ │ │ ├── profiles/ │ │ │ │ ├── otlp.go │ │ │ │ ├── otlp_test.go │ │ │ │ └── package_test.go │ │ │ └── trace/ │ │ │ ├── otlp.go │ │ │ ├── otlp_test.go │ │ │ └── package_test.go │ │ ├── metadata.yaml │ │ ├── otlp.go │ │ ├── otlp_benchmark_test.go │ │ ├── otlp_test.go │ │ ├── otlphttp.go │ │ ├── otlphttp_test.go │ │ └── testdata/ │ │ ├── bad_no_proto_config.yaml │ │ ├── bad_proto_config.yaml │ │ ├── config.yaml │ │ ├── default.yaml │ │ ├── invalid_logs_path.yaml │ │ ├── invalid_metrics_path.yaml │ │ ├── invalid_profiles_path.yaml │ │ ├── invalid_traces_path.yaml │ │ ├── only_grpc.yaml │ │ ├── only_http.yaml │ │ ├── only_http_empty_map.yaml │ │ ├── only_http_null.yaml │ │ ├── typo_default_proto_config.yaml │ │ └── uds.yaml │ ├── package_test.go │ ├── receiver.go │ ├── receiver_test.go │ ├── receiverhelper/ │ │ ├── Makefile │ │ ├── documentation.md │ │ ├── featuregates.go │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ ├── generated_feature_gates.go │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ ├── metadatatest/ │ │ │ │ ├── generated_telemetrytest.go │ │ │ │ └── generated_telemetrytest_test.go │ │ │ └── obsmetrics.go │ │ ├── metadata.yaml │ │ ├── obsreport.go │ │ └── obsreport_test.go │ ├── receivertest/ │ │ ├── Makefile │ │ ├── contract_checker.go │ │ ├── contract_checker_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ ├── nop_receiver.go │ │ ├── nop_receiver_test.go │ │ └── package_test.go │ └── xreceiver/ │ ├── Makefile │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── receiver.go │ └── receiver_test.go ├── renovate.json ├── reports/ │ └── distributions/ │ ├── contrib.yaml │ ├── core.yaml │ ├── k8s.yaml │ └── otlp.yaml ├── scraper/ │ ├── Makefile │ ├── README.md │ ├── doc.go │ ├── factory.go │ ├── factory_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── logs.go │ ├── logs_test.go │ ├── metadata.yaml │ ├── metrics.go │ ├── metrics_test.go │ ├── scraper.go │ ├── scrapererror/ │ │ ├── doc.go │ │ ├── package_test.go │ │ ├── partialscrapeerror.go │ │ ├── partialscrapeerror_test.go │ │ ├── scrapeerror.go │ │ └── scrapeerror_test.go │ ├── scraperhelper/ │ │ ├── Makefile │ │ ├── README.md │ │ ├── config.schema.yaml │ │ ├── controller.go │ │ ├── controller_test.go │ │ ├── doc.go │ │ ├── documentation.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── controller/ │ │ │ │ ├── config.go │ │ │ │ ├── config_test.go │ │ │ │ └── controller.go │ │ │ ├── metadata/ │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ ├── metadatatest/ │ │ │ │ ├── generated_telemetrytest.go │ │ │ │ └── generated_telemetrytest_test.go │ │ │ └── testhelper/ │ │ │ └── helper.go │ │ ├── metadata.yaml │ │ ├── obs_logs.go │ │ ├── obs_logs_test.go │ │ ├── obs_metrics.go │ │ ├── obs_metrics_test.go │ │ └── xscraperhelper/ │ │ ├── Makefile │ │ ├── controller.go │ │ ├── controller_test.go │ │ ├── doc.go │ │ ├── documentation.md │ │ ├── generated_package_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── internal/ │ │ │ ├── metadata/ │ │ │ │ ├── generated_telemetry.go │ │ │ │ └── generated_telemetry_test.go │ │ │ └── metadatatest/ │ │ │ ├── generated_telemetrytest.go │ │ │ └── generated_telemetrytest_test.go │ │ ├── metadata.yaml │ │ ├── obs_profiles.go │ │ └── obs_profiles_test.go │ ├── scrapertest/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── metadata.yaml │ │ └── settings.go │ └── xscraper/ │ ├── Makefile │ ├── doc.go │ ├── factory.go │ ├── factory_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── profiles.go │ ├── profiles_test.go │ └── scraper.go ├── service/ │ ├── Makefile │ ├── README.md │ ├── config.go │ ├── config_test.go │ ├── documentation.md │ ├── extensions/ │ │ ├── config.go │ │ ├── extensions.go │ │ ├── extensions_test.go │ │ ├── graph.go │ │ ├── graph_test.go │ │ └── package_test.go │ ├── generated_package_test.go │ ├── go.mod │ ├── go.sum │ ├── hostcapabilities/ │ │ ├── Makefile │ │ ├── go.mod │ │ ├── go.sum │ │ ├── interfaces.go │ │ └── metadata.yaml │ ├── internal/ │ │ ├── attribute/ │ │ │ ├── attribute.go │ │ │ └── attribute_test.go │ │ ├── builders/ │ │ │ ├── builders.go │ │ │ ├── builders_test/ │ │ │ │ ├── connector_test.go │ │ │ │ ├── exporter_test.go │ │ │ │ ├── extension_test.go │ │ │ │ ├── processor_test.go │ │ │ │ └── receiver_test.go │ │ │ ├── builders_test.go │ │ │ ├── connector.go │ │ │ ├── exporter.go │ │ │ ├── extension.go │ │ │ ├── processor.go │ │ │ └── receiver.go │ │ ├── capabilityconsumer/ │ │ │ ├── capabilities.go │ │ │ ├── capabilities_test.go │ │ │ └── package_test.go │ │ ├── componentattribute/ │ │ │ ├── logger_zap.go │ │ │ ├── meter_provider.go │ │ │ ├── telemetry.go │ │ │ ├── telemetry_test.go │ │ │ └── tracer_provider.go │ │ ├── graph/ │ │ │ ├── capabilities.go │ │ │ ├── connector.go │ │ │ ├── consumer.go │ │ │ ├── exporter.go │ │ │ ├── fanout.go │ │ │ ├── graph.go │ │ │ ├── graph_test.go │ │ │ ├── host.go │ │ │ ├── lifecycle_test.go │ │ │ ├── metadata.yaml │ │ │ ├── obs_test.go │ │ │ ├── package_test.go │ │ │ ├── processor.go │ │ │ ├── receiver.go │ │ │ ├── util_test.go │ │ │ └── zpages.go │ │ ├── metadata/ │ │ │ ├── generated_feature_gates.go │ │ │ ├── generated_telemetry.go │ │ │ └── generated_telemetry_test.go │ │ ├── metadatatest/ │ │ │ ├── generated_telemetrytest.go │ │ │ └── generated_telemetrytest_test.go │ │ ├── metricviews/ │ │ │ ├── views.go │ │ │ └── views_test.go │ │ ├── moduleinfo/ │ │ │ └── moduleinfo.go │ │ ├── obsconsumer/ │ │ │ ├── consumer_test.go │ │ │ ├── enabled.go │ │ │ ├── enabled_test.go │ │ │ ├── gate_test.go │ │ │ ├── logs.go │ │ │ ├── logs_test.go │ │ │ ├── metrics.go │ │ │ ├── metrics_test.go │ │ │ ├── option.go │ │ │ ├── package_test.go │ │ │ ├── profiles.go │ │ │ ├── profiles_test.go │ │ │ ├── telemetry.go │ │ │ ├── traces.go │ │ │ └── traces_test.go │ │ ├── proctelemetry/ │ │ │ ├── process_telemetry.go │ │ │ ├── process_telemetry_linux_test.go │ │ │ └── process_telemetry_test.go │ │ ├── promtest/ │ │ │ └── server_util.go │ │ ├── refconsumer/ │ │ │ ├── logs.go │ │ │ ├── logs_test.go │ │ │ ├── metrics.go │ │ │ ├── metrics_test.go │ │ │ ├── profiles.go │ │ │ ├── profiles_test.go │ │ │ ├── traces.go │ │ │ └── traces_test.go │ │ ├── resource/ │ │ │ ├── config.go │ │ │ └── config_test.go │ │ ├── status/ │ │ │ ├── nop.go │ │ │ ├── nop_test.go │ │ │ ├── package_test.go │ │ │ ├── status.go │ │ │ └── status_test.go │ │ ├── testcomponents/ │ │ │ ├── example_connector.go │ │ │ ├── example_connector_test.go │ │ │ ├── example_exporter.go │ │ │ ├── example_exporter_test.go │ │ │ ├── example_processor.go │ │ │ ├── example_processor_test.go │ │ │ ├── example_receiver.go │ │ │ ├── example_receiver_test.go │ │ │ ├── example_router.go │ │ │ ├── example_router_test.go │ │ │ ├── package_test.go │ │ │ └── stateful_component.go │ │ └── zpages/ │ │ ├── package_test.go │ │ ├── templates/ │ │ │ ├── component_header.html │ │ │ ├── extensions_table.html │ │ │ ├── features_table.html │ │ │ ├── page_footer.html │ │ │ ├── page_header.html │ │ │ ├── pipelines_table.html │ │ │ └── properties_table.html │ │ ├── templates.go │ │ └── templates_test.go │ ├── metadata.yaml │ ├── pipelines/ │ │ ├── config.go │ │ ├── config_test.go │ │ └── package_test.go │ ├── service.go │ ├── service_host_test.go │ ├── service_test.go │ └── telemetry/ │ ├── doc.go │ ├── otelconftelemetry/ │ │ ├── config.go │ │ ├── config_test.go │ │ ├── factory.go │ │ ├── factory_test.go │ │ ├── internal/ │ │ │ └── migration/ │ │ │ ├── normalize.go │ │ │ ├── testdata/ │ │ │ │ ├── v0.2.0_logs.yaml │ │ │ │ ├── v0.2.0_metrics.yaml │ │ │ │ ├── v0.2.0_traces.yaml │ │ │ │ ├── v0.3.0_logs.yaml │ │ │ │ ├── v0.3.0_metrics.yaml │ │ │ │ └── v0.3.0_traces.yaml │ │ │ ├── v0.2.0.go │ │ │ ├── v0.2.0_test.go │ │ │ ├── v0.3.0.go │ │ │ └── v0.3.0_test.go │ │ ├── logger.go │ │ ├── logger_tee.go │ │ ├── logger_test.go │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── package_test.go │ │ ├── resource.go │ │ ├── resource_test.go │ │ ├── sdk.go │ │ ├── testdata/ │ │ │ ├── config_deprecated_address.yaml │ │ │ ├── config_deprecated_address_and_readers.yaml │ │ │ ├── config_empty.yaml │ │ │ ├── config_empty_readers.yaml │ │ │ ├── config_invalid_deprecated_address.yaml │ │ │ ├── config_invalid_metrics_empty_readers.yaml │ │ │ ├── config_invalid_metrics_views_feature_gate.yaml │ │ │ ├── config_invalid_metrics_views_level.yaml │ │ │ ├── config_invalid_unknown_field.yaml │ │ │ ├── config_logs.yaml │ │ │ └── config_metrics_empty_readers.yaml │ │ ├── tracer.go │ │ └── tracer_test.go │ ├── telemetry.go │ ├── telemetry_test.go │ └── telemetrytest/ │ ├── Makefile │ ├── go.mod │ ├── go.sum │ ├── metadata.yaml │ ├── providers.go │ └── providers_test.go └── versions.yaml
Showing preview only (1,245K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (12415 symbols across 1567 files)
FILE: client/client.go
type ctxKey (line 88) | type ctxKey struct
type Info (line 91) | type Info struct
type AuthData (line 111) | type AuthData interface
constant MetadataHostName (line 122) | MetadataHostName = "Host"
function NewContext (line 126) | func NewContext(ctx context.Context, c Info) context.Context {
function FromContext (line 132) | func FromContext(ctx context.Context) Info {
type Metadata (line 141) | type Metadata struct
method Keys (line 157) | func (m Metadata) Keys() iter.Seq[string] {
method Get (line 163) | func (m Metadata) Get(key string) []string {
function NewMetadata (line 146) | func NewMetadata(md map[string][]string) Metadata {
FILE: client/client_test.go
function TestNewContext (line 17) | func TestNewContext(t *testing.T) {
function TestFromContext (line 43) | func TestFromContext(t *testing.T) {
function TestMetadata (line 80) | func TestMetadata(t *testing.T) {
function TestUninstantiatedMetadata (line 96) | func TestUninstantiatedMetadata(t *testing.T) {
FILE: client/doc_test.go
function Example_receiver (line 16) | func Example_receiver() {
function Example_processor (line 50) | func Example_processor() {
function Example_authenticator (line 60) | func Example_authenticator() {
type exampleAuthData (line 78) | type exampleAuthData struct
method GetAttribute (line 82) | func (e *exampleAuthData) GetAttribute(key string) any {
method GetAttributeNames (line 89) | func (e *exampleAuthData) GetAttributeNames() []string {
FILE: client/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: cmd/builder/internal/builder/config.go
constant DefaultBetaOtelColVersion (line 21) | DefaultBetaOtelColVersion = "v0.148.0"
constant DefaultStableOtelColVersion (line 22) | DefaultStableOtelColVersion = "v1.54.0"
type Config (line 29) | type Config struct
method Validate (line 139) | func (c *Config) Validate() error {
method SetGoPath (line 153) | func (c *Config) SetGoPath() error {
method ParseModules (line 169) | func (c *Config) ParseModules() error {
method allComponents (line 215) | func (c *Config) allComponents() []Module {
type ConfResolver (line 60) | type ConfResolver struct
type Distribution (line 68) | type Distribution struct
type Module (line 81) | type Module struct
type retry (line 88) | type retry struct
function NewDefaultConfig (line 94) | func NewDefaultConfig() (*Config, error) {
function validateModules (line 219) | func validateModules(name string, mods []Module) error {
function validateTelemetry (line 230) | func validateTelemetry(c *Config) error {
function parseModules (line 247) | func parseModules(mods []Module, usedNames map[string]int) ([]Module, er...
FILE: cmd/builder/internal/builder/config_test.go
function TestAliases (line 21) | func TestAliases(t *testing.T) {
function TestParseModules (line 140) | func TestParseModules(t *testing.T) {
function TestInvalidConverter (line 158) | func TestInvalidConverter(t *testing.T) {
function TestRelativePath (line 173) | func TestRelativePath(t *testing.T) {
function TestModuleFromCore (line 192) | func TestModuleFromCore(t *testing.T) {
function TestMissingModule (line 215) | func TestMissingModule(t *testing.T) {
function TestNewDefaultConfig (line 301) | func TestNewDefaultConfig(t *testing.T) {
function TestNewBuiltinConfig (line 317) | func TestNewBuiltinConfig(t *testing.T) {
function TestSkipGoValidation (line 338) | func TestSkipGoValidation(t *testing.T) {
function TestSkipGoInitialization (line 350) | func TestSkipGoInitialization(t *testing.T) {
function TestBuildTagConfig (line 360) | func TestBuildTagConfig(t *testing.T) {
function TestDebugOptionSetConfig (line 372) | func TestDebugOptionSetConfig(t *testing.T) {
function TestAddsDefaultProviders (line 384) | func TestAddsDefaultProviders(t *testing.T) {
function TestSkipsNilFieldValidation (line 391) | func TestSkipsNilFieldValidation(t *testing.T) {
FILE: cmd/builder/internal/builder/main.go
constant otelcolPath (line 33) | otelcolPath = "go.opentelemetry.io/collector/otelcol"
function runGoCommand (line 35) | func runGoCommand(cfg *Config, args ...string) ([]byte, error) {
function GenerateAndCompile (line 66) | func GenerateAndCompile(cfg *Config) error {
function Generate (line 80) | func Generate(cfg *Config) error {
function Compile (line 112) | func Compile(cfg *Config) error {
function outputBinaryName (line 155) | func outputBinaryName(name string) string {
function GetModules (line 171) | func GetModules(cfg *Config) error {
function downloadModules (line 225) | func downloadModules(cfg *Config) error {
function processAndWrite (line 240) | func processAndWrite(cfg *Config, tmpl *template.Template, outFile strin...
function readGoModFile (line 250) | func readGoModFile(cfg *Config) (string, map[string]string, error) {
FILE: cmd/builder/internal/builder/main_test.go
constant goModTestFile (line 23) | goModTestFile = `// Copyright The OpenTelemetry Authors
constant modulePrefix (line 37) | modulePrefix = "go.opentelemetry.io/collector"
function newTestConfig (line 122) | func newTestConfig(tb testing.TB) *Config {
function newInitializedConfig (line 130) | func newInitializedConfig(t *testing.T) *Config {
function TestGenerateDefault (line 140) | func TestGenerateDefault(t *testing.T) {
function TestGenerateInvalidOutputPath (line 144) | func TestGenerateInvalidOutputPath(t *testing.T) {
function TestOutputBinaryName (line 151) | func TestOutputBinaryName(t *testing.T) {
function TestVersioning (line 176) | func TestVersioning(t *testing.T) {
function TestSkipGenerate (line 259) | func TestSkipGenerate(t *testing.T) {
function TestGenerateAndCompile (line 274) | func TestGenerateAndCompile(t *testing.T) {
function TestReplaceStatementsAreComplete (line 398) | func TestReplaceStatementsAreComplete(t *testing.T) {
function verifyGoMod (line 473) | func verifyGoMod(t *testing.T, dir string, replaceMods map[string]bool) {
function makeModule (line 493) | func makeModule(dir string, fileContents []byte) error {
function generateReplaces (line 510) | func generateReplaces() []string {
function getWorkspaceDir (line 522) | func getWorkspaceDir() string {
FILE: cmd/builder/internal/builder/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: cmd/builder/internal/builder/templates.go
function parseTemplate (line 33) | func parseTemplate(name string, bytes []byte) *template.Template {
FILE: cmd/builder/internal/command.go
constant configFlag (line 23) | configFlag = "config"
constant skipGenerateFlag (line 24) | skipGenerateFlag = "skip-generate"
constant skipCompilationFlag (line 25) | skipCompilationFlag = "skip-compilation"
constant skipGetModulesFlag (line 26) | skipGetModulesFlag = "skip-get-modules"
constant skipStrictVersioningFlag (line 27) | skipStrictVersioningFlag = "skip-strict-versioning"
constant ldflagsFlag (line 28) | ldflagsFlag = "ldflags"
constant gcflagsFlag (line 29) | gcflagsFlag = "gcflags"
constant distributionOutputPathFlag (line 30) | distributionOutputPathFlag = "output-path"
constant verboseFlag (line 31) | verboseFlag = "verbose"
function Command (line 35) | func Command() (*cobra.Command, error) {
function initFlags (line 77) | func initFlags(flags *flag.FlagSet) error {
function initConfig (line 91) | func initConfig(flags *flag.FlagSet) (*builder.Config, error) {
function applyFlags (line 132) | func applyFlags(flags *flag.FlagSet, cfg *builder.Config) error {
FILE: cmd/builder/internal/command_init.go
constant defaultDescription (line 22) | defaultDescription = "Custom OpenTelemetry Collector"
type metadata (line 27) | type metadata struct
function initCommand (line 34) | func initCommand() *cobra.Command {
function run (line 52) | func run(path string) error {
function writeTemplate (line 115) | func writeTemplate(path, fn string, m metadata) error {
function executeTemplate (line 125) | func executeTemplate(tmplFile string, m metadata) ([]byte, error) {
function runTidy (line 136) | func runTidy(path string) error {
FILE: cmd/builder/internal/command_init_test.go
function TestInitCommand (line 20) | func TestInitCommand(t *testing.T) {
function TestRunInit (line 28) | func TestRunInit(t *testing.T) {
function validateCollector (line 66) | func validateCollector(t *testing.T, path string) {
FILE: cmd/builder/internal/command_test.go
function TestCommand (line 19) | func TestCommand(t *testing.T) {
function TestCommandErrorOutputOnce (line 58) | func TestCommandErrorOutputOnce(t *testing.T) {
function TestApplyFlags (line 75) | func TestApplyFlags(t *testing.T) {
function TestInitConfig (line 119) | func TestInitConfig(t *testing.T) {
FILE: cmd/builder/internal/config/default.go
function DefaultProvider (line 19) | func DefaultProvider() koanf.Provider {
FILE: cmd/builder/internal/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: cmd/builder/internal/version.go
function init (line 15) | func init() {
function versionCommand (line 26) | func versionCommand() *cobra.Command {
FILE: cmd/builder/main.go
function main (line 14) | func main() {
FILE: cmd/mdatagen/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/cfggen/generation.go
function NewCfgFns (line 16) | func NewCfgFns(rootPackage, componentPackage string) map[string]any {
function WithCfgFns (line 56) | func WithCfgFns(fns map[string]any, rootPackage, componentPackage string...
function MapGoType (line 69) | func MapGoType(md *ConfigMetadata, propName, rootPackage, componentPacka...
function resolveGoType (line 86) | func resolveGoType(md *ConfigMetadata, propName, rootPackage, componentP...
function ExtractImports (line 154) | func ExtractImports(md *ConfigMetadata, rootPackage, componentPackage st...
function collectImports (line 167) | func collectImports(md *ConfigMetadata, imports map[string]bool, rootPac...
function FormatTypeName (line 232) | func FormatTypeName(ref, rootPackage, componentPackage string) (string, ...
function ExtractDefs (line 242) | func ExtractDefs(md *ConfigMetadata) map[string]*ConfigMetadata {
function collectDefs (line 248) | func collectDefs(md *ConfigMetadata, defs map[string]*ConfigMetadata) {
FILE: cmd/mdatagen/internal/cfggen/generation_test.go
function TestMapGoType_BasicTypes (line 12) | func TestMapGoType_BasicTypes(t *testing.T) {
function TestMapGoType_FormattedStrings (line 60) | func TestMapGoType_FormattedStrings(t *testing.T) {
function TestMapGoType_Arrays (line 96) | func TestMapGoType_Arrays(t *testing.T) {
function TestMapGoType_Objects (line 160) | func TestMapGoType_Objects(t *testing.T) {
function TestMapGoType_CustomTypes (line 243) | func TestMapGoType_CustomTypes(t *testing.T) {
function TestMapGoType_References (line 284) | func TestMapGoType_References(t *testing.T) {
function TestMapGoType_Modifiers (line 314) | func TestMapGoType_Modifiers(t *testing.T) {
function TestMapGoType_NilInput (line 367) | func TestMapGoType_NilInput(t *testing.T) {
function TestMapGoType_UnsupportedType (line 373) | func TestMapGoType_UnsupportedType(t *testing.T) {
function TestExtractImports_BasicTypes (line 382) | func TestExtractImports_BasicTypes(t *testing.T) {
function TestExtractImports_CustomTypes (line 420) | func TestExtractImports_CustomTypes(t *testing.T) {
function TestExtractImports_LocalRef (line 459) | func TestExtractImports_LocalRef(t *testing.T) {
function TestExtractImports_Optional (line 493) | func TestExtractImports_Optional(t *testing.T) {
function TestExtractImports_Nested (line 503) | func TestExtractImports_Nested(t *testing.T) {
function TestExtractImports_AllOf (line 527) | func TestExtractImports_AllOf(t *testing.T) {
function TestExtractImports_ArrayItems (line 542) | func TestExtractImports_ArrayItems(t *testing.T) {
function TestExtractImports_AdditionalProperties (line 555) | func TestExtractImports_AdditionalProperties(t *testing.T) {
function TestExtractImports_Defs (line 568) | func TestExtractImports_Defs(t *testing.T) {
function TestExtractImports_NilInput (line 583) | func TestExtractImports_NilInput(t *testing.T) {
function TestFormatTypeName_InternalReferences (line 589) | func TestFormatTypeName_InternalReferences(t *testing.T) {
function TestFormatTypeName_ExternalReferences (line 621) | func TestFormatTypeName_ExternalReferences(t *testing.T) {
function TestFormatTypeName_LocalReferences (line 653) | func TestFormatTypeName_LocalReferences(t *testing.T) {
function TestFormatTypeName_InvalidInput (line 683) | func TestFormatTypeName_InvalidInput(t *testing.T) {
function TestExtractDefs_Basic (line 702) | func TestExtractDefs_Basic(t *testing.T) {
function TestExtractDefs_NestedDefs (line 721) | func TestExtractDefs_NestedDefs(t *testing.T) {
function TestExtractDefs_EmbeddedObjects (line 742) | func TestExtractDefs_EmbeddedObjects(t *testing.T) {
function TestExtractDefs_ArrayItems (line 761) | func TestExtractDefs_ArrayItems(t *testing.T) {
function TestExtractDefs_NilInput (line 783) | func TestExtractDefs_NilInput(t *testing.T) {
function TestExtractDefs_EmptyInput (line 788) | func TestExtractDefs_EmptyInput(t *testing.T) {
function TestExtractDefs_AdditionalPropertiesObject (line 796) | func TestExtractDefs_AdditionalPropertiesObject(t *testing.T) {
function TestNewCfgFns_ExtractImports (line 814) | func TestNewCfgFns_ExtractImports(t *testing.T) {
function TestNewCfgFns_ExtractDefs (line 833) | func TestNewCfgFns_ExtractDefs(t *testing.T) {
function TestNewCfgFns_MapGoType (line 850) | func TestNewCfgFns_MapGoType(t *testing.T) {
function TestNewCfgFns_PublicType (line 862) | func TestNewCfgFns_PublicType(t *testing.T) {
function TestWithCfgFns (line 871) | func TestWithCfgFns(t *testing.T) {
function TestResolveGoType_CustomTypeFormatError (line 882) | func TestResolveGoType_CustomTypeFormatError(t *testing.T) {
function TestResolveGoType_RefFormatError (line 890) | func TestResolveGoType_RefFormatError(t *testing.T) {
function TestResolveGoType_ArrayItemError (line 898) | func TestResolveGoType_ArrayItemError(t *testing.T) {
function TestResolveGoType_AdditionalPropertiesError (line 909) | func TestResolveGoType_AdditionalPropertiesError(t *testing.T) {
function TestResolveGoType_EmbeddedObjectNameError (line 920) | func TestResolveGoType_EmbeddedObjectNameError(t *testing.T) {
function TestExtractImports_PropError (line 933) | func TestExtractImports_PropError(t *testing.T) {
function TestExtractImports_ItemsPath (line 947) | func TestExtractImports_ItemsPath(t *testing.T) {
function TestExtractImports_DefsPath (line 960) | func TestExtractImports_DefsPath(t *testing.T) {
function TestExtractImports_ContentSchema (line 974) | func TestExtractImports_ContentSchema(t *testing.T) {
FILE: cmd/mdatagen/internal/cfggen/loader.go
constant schemaFileName (line 23) | schemaFileName = "config.schema.yaml"
type Loader (line 30) | type Loader interface
type schemaLoader (line 34) | type schemaLoader struct
method Load (line 50) | func (sl *schemaLoader) Load(ref Ref) (*ConfigMetadata, error) {
method load (line 64) | func (sl *schemaLoader) load(ref Ref) (*ConfigMetadata, error) {
method loadFromFile (line 83) | func (sl *schemaLoader) loadFromFile(filePath string) (*ConfigMetadata...
method loadFromHTTP (line 100) | func (sl *schemaLoader) loadFromHTTP(ref Ref, fileCacheDir string) (*C...
method tryLoad (line 124) | func (sl *schemaLoader) tryLoad(ref Ref, version string) (*ConfigMetad...
method persistToFile (line 156) | func (sl *schemaLoader) persistToFile(filePath string, md *ConfigMetad...
method refVersion (line 173) | func (sl *schemaLoader) refVersion(ref *Ref) (string, error) {
method resolveModuleVersion (line 195) | func (sl *schemaLoader) resolveModuleVersion(importPath string) string {
method repoRoot (line 213) | func (sl *schemaLoader) repoRoot(componentDir string) (string, error) {
function NewLoader (line 42) | func NewLoader(cwd string) Loader {
FILE: cmd/mdatagen/internal/cfggen/loader_test.go
function TestLoader_LoadFromFile_Success (line 19) | func TestLoader_LoadFromFile_Success(t *testing.T) {
function TestLoader_LoadFromFile_NotFound (line 42) | func TestLoader_LoadFromFile_NotFound(t *testing.T) {
function TestLoader_LoadFromFile_ParseError (line 52) | func TestLoader_LoadFromFile_ParseError(t *testing.T) {
function TestLoader_LoadFromHTTP_Success (line 72) | func TestLoader_LoadFromHTTP_Success(t *testing.T) {
function TestLoader_LoadFromHTTP_NotFound (line 98) | func TestLoader_LoadFromHTTP_NotFound(t *testing.T) {
function TestLoader_LoadFromHTTP_ServerError (line 117) | func TestLoader_LoadFromHTTP_ServerError(t *testing.T) {
function TestLoader_TryLoad_WithVersion (line 137) | func TestLoader_TryLoad_WithVersion(t *testing.T) {
function TestLoader_PersistToFile_Success (line 163) | func TestLoader_PersistToFile_Success(t *testing.T) {
function TestLoader_Load_CacheInteraction (line 185) | func TestLoader_Load_CacheInteraction(t *testing.T) {
function TestLoader_Integration_MemoryCachePeristence (line 200) | func TestLoader_Integration_MemoryCachePeristence(t *testing.T) {
function TestLoader_Load_CachesOnFirstLoad (line 225) | func TestLoader_Load_CachesOnFirstLoad(t *testing.T) {
function TestLoader_Load_RepoRootError (line 247) | func TestLoader_Load_RepoRootError(t *testing.T) {
function TestLoader_Load_LocalAbsolutePath (line 257) | func TestLoader_Load_LocalAbsolutePath(t *testing.T) {
function TestLoader_Load_LocalRelativePath (line 275) | func TestLoader_Load_LocalRelativePath(t *testing.T) {
function TestLoader_LoadFromFile_ReadError (line 291) | func TestLoader_LoadFromFile_ReadError(t *testing.T) {
function TestLoader_LoadFromHTTP_FileCacheHit (line 305) | func TestLoader_LoadFromHTTP_FileCacheHit(t *testing.T) {
function TestLoader_LoadFromHTTP_PersistWarning (line 336) | func TestLoader_LoadFromHTTP_PersistWarning(t *testing.T) {
function TestLoader_LoadFromHTTP_NonNotFoundFileError (line 368) | func TestLoader_LoadFromHTTP_NonNotFoundFileError(t *testing.T) {
function TestLoader_TryLoad_URLError (line 408) | func TestLoader_TryLoad_URLError(t *testing.T) {
function TestLoader_TryLoad_HTTPError (line 421) | func TestLoader_TryLoad_HTTPError(t *testing.T) {
function TestLoader_TryLoad_ParseError (line 438) | func TestLoader_TryLoad_ParseError(t *testing.T) {
function TestLoader_RefVersion_UnknownModulePath (line 456) | func TestLoader_RefVersion_UnknownModulePath(t *testing.T) {
function TestLoader_ResolveModuleVersion_NilModule (line 466) | func TestLoader_ResolveModuleVersion_NilModule(t *testing.T) {
function TestLoader_ResolveModuleVersion_LoadError (line 473) | func TestLoader_ResolveModuleVersion_LoadError(t *testing.T) {
function TestLoader_RepoRoot_CachedValue (line 480) | func TestLoader_RepoRoot_CachedValue(t *testing.T) {
function TestLoader_RepoRoot_GitError (line 489) | func TestLoader_RepoRoot_GitError(t *testing.T) {
function TestLoader_PersistToFile_MkdirAllError (line 498) | func TestLoader_PersistToFile_MkdirAllError(t *testing.T) {
function TestLoader_PersistToFile_WriteFileError (line 515) | func TestLoader_PersistToFile_WriteFileError(t *testing.T) {
function TestLoader_TryLoad_ReadBodyError (line 527) | func TestLoader_TryLoad_ReadBodyError(t *testing.T) {
function mdatagenDir (line 551) | func mdatagenDir(t *testing.T) string {
FILE: cmd/mdatagen/internal/cfggen/model.go
type ConfigMetadata (line 13) | type ConfigMetadata struct
method ToJSON (line 55) | func (md *ConfigMetadata) ToJSON() ([]byte, error) {
method Validate (line 59) | func (md *ConfigMetadata) Validate() error {
FILE: cmd/mdatagen/internal/cfggen/model_test.go
function TestConfigMetadata_ToJSON (line 13) | func TestConfigMetadata_ToJSON(t *testing.T) {
function TestConfigMetadata_Validate_Valid (line 29) | func TestConfigMetadata_Validate_Valid(t *testing.T) {
function TestConfigMetadata_Validate_InvalidType (line 85) | func TestConfigMetadata_Validate_InvalidType(t *testing.T) {
function TestConfigMetadata_Validate_EmptyConfig (line 122) | func TestConfigMetadata_Validate_EmptyConfig(t *testing.T) {
function TestConfigMetadata_Validate_MultipleErrors (line 162) | func TestConfigMetadata_Validate_MultipleErrors(t *testing.T) {
function TestConfigMetadata_Validate_NilMetadata (line 208) | func TestConfigMetadata_Validate_NilMetadata(t *testing.T) {
function TestConfigMetadata_Validate_TypeAsInterface (line 217) | func TestConfigMetadata_Validate_TypeAsInterface(t *testing.T) {
function TestConfigMetadata_Validate_EdgeCases (line 262) | func TestConfigMetadata_Validate_EdgeCases(t *testing.T) {
FILE: cmd/mdatagen/internal/cfggen/namespace.go
type RefKind (line 23) | type RefKind
constant External (line 26) | External RefKind = iota
constant Internal (line 27) | Internal
constant Local (line 28) | Local
type Ref (line 31) | type Ref struct
method Namespace (line 112) | func (r *Ref) Namespace() (string, bool) {
method Module (line 117) | func (r *Ref) Module() string {
method SchemaID (line 124) | func (r *Ref) SchemaID() string {
method DefName (line 128) | func (r *Ref) DefName() string {
method URL (line 132) | func (r *Ref) URL(version string) (string, error) {
method isInternal (line 146) | func (r *Ref) isInternal() bool {
method isLocal (line 150) | func (r *Ref) isLocal() bool {
method isExternal (line 154) | func (r *Ref) isExternal() bool {
method Validate (line 158) | func (r *Ref) Validate() error {
method String (line 173) | func (r *Ref) String() string {
method CacheKey (line 194) | func (r *Ref) CacheKey() string {
function NewRef (line 40) | func NewRef(refPath string) *Ref {
function WithOrigin (line 69) | func WithOrigin(refPath string, origin *Ref) *Ref {
function namespaceOf (line 93) | func namespaceOf(path string) string {
function matchSupportedNamespace (line 103) | func matchSupportedNamespace(path string) (string, bool) {
function LocalizeRef (line 198) | func LocalizeRef(refPath, importRootPath string) string {
FILE: cmd/mdatagen/internal/cfggen/namespace_test.go
function TestNewRef (line 12) | func TestNewRef(t *testing.T) {
function TestWithOrigin (line 157) | func TestWithOrigin(t *testing.T) {
function TestRef_Validate (line 228) | func TestRef_Validate(t *testing.T) {
function TestRef_URL (line 284) | func TestRef_URL(t *testing.T) {
function TestRef_String (line 321) | func TestRef_String(t *testing.T) {
function TestRef_Module_EmptyNamespace (line 326) | func TestRef_Module_EmptyNamespace(t *testing.T) {
function TestRef_URL_UnsupportedNamespace (line 331) | func TestRef_URL_UnsupportedNamespace(t *testing.T) {
function TestRef_Validate_LocalRefMissingSchemaID (line 338) | func TestRef_Validate_LocalRefMissingSchemaID(t *testing.T) {
function TestNamespaceOf_FallbackLastSlash (line 345) | func TestNamespaceOf_FallbackLastSlash(t *testing.T) {
function TestNamespaceOf_NoSlash (line 350) | func TestNamespaceOf_NoSlash(t *testing.T) {
function TestLocalizeRef (line 355) | func TestLocalizeRef(t *testing.T) {
FILE: cmd/mdatagen/internal/cfggen/resolver.go
constant schemaVersion (line 13) | schemaVersion = "https://json-schema.org/draft/2020-12/schema"
constant goDurationPattern (line 15) | goDurationPattern = `^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$`
type Resolver (line 18) | type Resolver struct
method ResolveSchema (line 41) | func (r *Resolver) ResolveSchema(src *ConfigMetadata) (*ConfigMetadata...
method resolveSchema (line 69) | func (r *Resolver) resolveSchema(root, current, target *ConfigMetadata...
method resolveRef (line 180) | func (r *Resolver) resolveRef(root, current *ConfigMetadata, origin *R...
method loadExternalRef (line 211) | func (r *Resolver) loadExternalRef(ref *Ref) (*ConfigMetadata, error) {
function NewResolver (line 25) | func NewResolver(pkgID, class, name, dir string) *Resolver {
function transformDurationFormat (line 59) | func transformDurationFormat(md *ConfigMetadata) {
FILE: cmd/mdatagen/internal/cfggen/resolver_test.go
function TestResolver_ResolveSchema_BasicMetadata (line 13) | func TestResolver_ResolveSchema_BasicMetadata(t *testing.T) {
function TestResolver_ResolveSchema_InternalReference (line 35) | func TestResolver_ResolveSchema_InternalReference(t *testing.T) {
function TestResolver_ResolveSchema_UnknownInternalReference (line 66) | func TestResolver_ResolveSchema_UnknownInternalReference(t *testing.T) {
function TestResolver_ResolveSchema_NestedStructures (line 89) | func TestResolver_ResolveSchema_NestedStructures(t *testing.T) {
function TestResolver_ResolveSchema_AllOf (line 125) | func TestResolver_ResolveSchema_AllOf(t *testing.T) {
function TestResolver_ResolveSchema_ArrayItems (line 158) | func TestResolver_ResolveSchema_ArrayItems(t *testing.T) {
function TestResolver_LoadExternalRef_Success (line 184) | func TestResolver_LoadExternalRef_Success(t *testing.T) {
function TestResolver_LoadExternalRef_InvalidPath (line 218) | func TestResolver_LoadExternalRef_InvalidPath(t *testing.T) {
function TestResolver_LoadExternalRef_TypeNotFound (line 232) | func TestResolver_LoadExternalRef_TypeNotFound(t *testing.T) {
function TestResolver_IsExternalRef (line 260) | func TestResolver_IsExternalRef(t *testing.T) {
function TestResolver_ResolveSchema_ExternalReference_Integration (line 302) | func TestResolver_ResolveSchema_ExternalReference_Integration(t *testing...
function TestResolver_ResolveSchema_DurationFormat (line 356) | func TestResolver_ResolveSchema_DurationFormat(t *testing.T) {
type mockLoader (line 398) | type mockLoader struct
method Load (line 402) | func (m *mockLoader) Load(ref Ref) (*ConfigMetadata, error) {
function TestResolver_ResolveSchema_OriginConvertsLocalRefToExternal (line 410) | func TestResolver_ResolveSchema_OriginConvertsLocalRefToExternal(t *test...
function TestResolver_ResolveSchema_LocalRefWithOriginConversion (line 481) | func TestResolver_ResolveSchema_LocalRefWithOriginConversion(t *testing....
function TestResolver_ResolveSchema_NestedOriginPropagation (line 543) | func TestResolver_ResolveSchema_NestedOriginPropagation(t *testing.T) {
function TestResolver_ResolveSchema_RelativeRefWithOrigin (line 624) | func TestResolver_ResolveSchema_RelativeRefWithOrigin(t *testing.T) {
function TestResolver_ResolveSchema_ParentRelativeRefWithOrigin (line 681) | func TestResolver_ResolveSchema_ParentRelativeRefWithOrigin(t *testing.T) {
function TestNewResolver (line 738) | func TestNewResolver(t *testing.T) {
function TestResolver_ResolveSchema_UnknownNamespaceFallback (line 748) | func TestResolver_ResolveSchema_UnknownNamespaceFallback(t *testing.T) {
function TestResolver_ResolveSchema_LoaderError (line 773) | func TestResolver_ResolveSchema_LoaderError(t *testing.T) {
function TestResolver_ResolveRef_InvalidRefFormat (line 797) | func TestResolver_ResolveRef_InvalidRefFormat(t *testing.T) {
function TestResolver_LoadExternalRef_NilResult (line 818) | func TestResolver_LoadExternalRef_NilResult(t *testing.T) {
type nilResultLoader (line 835) | type nilResultLoader struct
method Load (line 837) | func (n *nilResultLoader) Load(_ Ref) (*ConfigMetadata, error) { retur...
function TestResolver_LoadExternalRef_InternalResolutionError (line 839) | func TestResolver_LoadExternalRef_InternalResolutionError(t *testing.T) {
function TestResolver_ResolveSchema_LocalRef (line 874) | func TestResolver_ResolveSchema_LocalRef(t *testing.T) {
function TestResolver_ResolveSchema_MapValueError (line 914) | func TestResolver_ResolveSchema_MapValueError(t *testing.T) {
function TestResolver_ResolveSchema_AllOfError (line 936) | func TestResolver_ResolveSchema_AllOfError(t *testing.T) {
function TestResolver_ResolveSchema_PtrFieldError (line 957) | func TestResolver_ResolveSchema_PtrFieldError(t *testing.T) {
function TestResolver_ResolveSchema_PointerFields (line 981) | func TestResolver_ResolveSchema_PointerFields(t *testing.T) {
function TestResolver_ResolveSchema_ContentSchema (line 1011) | func TestResolver_ResolveSchema_ContentSchema(t *testing.T) {
function TestResolver_ResolveSchema_PreservesCustomExtensions (line 1042) | func TestResolver_ResolveSchema_PreservesCustomExtensions(t *testing.T) {
function TestResolver_ResolveSchema_RefWithoutCustomExtensions (line 1108) | func TestResolver_ResolveSchema_RefWithoutCustomExtensions(t *testing.T) {
FILE: cmd/mdatagen/internal/cfggen/type_ref.go
type GoTypeRef (line 17) | type GoTypeRef struct
method Qualifier (line 27) | func (r GoTypeRef) Qualifier() string {
method String (line 35) | func (r GoTypeRef) String() string {
function ResolveGoTypeRef (line 48) | func ResolveGoTypeRef(ref, rootPackage, componentPackage string) (GoType...
function resolveInternal (line 67) | func resolveInternal(ref string) (GoTypeRef, error) {
function resolveExternal (line 75) | func resolveExternal(ref string) (GoTypeRef, error) {
function resolveLocalAbsolute (line 90) | func resolveLocalAbsolute(ref, rootPackage string) (GoTypeRef, error) {
function resolveLocalRelative (line 107) | func resolveLocalRelative(ref, componentPackage string) (GoTypeRef, erro...
FILE: cmd/mdatagen/internal/cfggen/type_ref_test.go
function TestGoTypeRef_String (line 12) | func TestGoTypeRef_String(t *testing.T) {
function TestGoTypeRef_Qualifier (line 42) | func TestGoTypeRef_Qualifier(t *testing.T) {
function TestResolveGoTypeRef_Internal (line 72) | func TestResolveGoTypeRef_Internal(t *testing.T) {
function TestResolveGoTypeRef_External (line 104) | func TestResolveGoTypeRef_External(t *testing.T) {
function TestResolveGoTypeRef_LocalAbsolute (line 153) | func TestResolveGoTypeRef_LocalAbsolute(t *testing.T) {
function TestResolveGoTypeRef_LocalAbsolute_DifferentRoot (line 188) | func TestResolveGoTypeRef_LocalAbsolute_DifferentRoot(t *testing.T) {
function TestResolveGoTypeRef_LocalRelative (line 200) | func TestResolveGoTypeRef_LocalRelative(t *testing.T) {
function TestResolveGoTypeRef_Errors (line 235) | func TestResolveGoTypeRef_Errors(t *testing.T) {
function TestResolveGoTypeRef_VersionStripped (line 266) | func TestResolveGoTypeRef_VersionStripped(t *testing.T) {
FILE: cmd/mdatagen/internal/cfggen/writer.go
constant fileName (line 11) | fileName = "config.schema.json"
function WriteJSONSchema (line 15) | func WriteJSONSchema(dir string, md *ConfigMetadata) error {
FILE: cmd/mdatagen/internal/cfggen/writer_test.go
function TestWriteJSONSchema (line 14) | func TestWriteJSONSchema(t *testing.T) {
function TestWriteJSONSchema_InvalidDir (line 33) | func TestWriteJSONSchema_InvalidDir(t *testing.T) {
FILE: cmd/mdatagen/internal/command.go
constant statusStart (line 31) | statusStart = "<!-- status autogenerated section -->"
constant statusEnd (line 32) | statusEnd = "<!-- end autogenerated section -->"
function getVersion (line 42) | func getVersion() (string, error) {
function NewCommand (line 56) | func NewCommand() (*cobra.Command, error) {
function run (line 73) | func run(ymlPath string) error {
function getTemplateFuncMap (line 244) | func getTemplateFuncMap(md Metadata, importRootPath string) template.Fun...
function templatize (line 407) | func templatize(tmplFile string, funcMap template.FuncMap) *template.Tem...
function executeTemplate (line 416) | func executeTemplate(tmplFile string, md Metadata, goPackage, importRoot...
function generateFile (line 426) | func generateFile(tmplFile, outputFile string, md Metadata, goPackage, i...
function inlineReplace (line 430) | func inlineReplace(tmplFile, outputFile string, md Metadata, start, end,...
function generateFileWithFns (line 459) | func generateFileWithFns(tmplFile, outputFile string, md Metadata, goPac...
function validateMappingKeysSorted (line 484) | func validateMappingKeysSorted(root *yaml.Node, path ...string) error {
function validateYAMLKeyOrder (line 524) | func validateYAMLKeyOrder(raw []byte) error {
function generateConfigFiles (line 544) | func generateConfigFiles(md Metadata, mdDir, _ string) error {
function generateConfigGoStruct (line 564) | func generateConfigGoStruct(md Metadata, outputDir string) error {
function joinCamelCase (line 578) | func joinCamelCase(parts []string, exported bool) string {
FILE: cmd/mdatagen/internal/command_test.go
function TestNewCommand (line 24) | func TestNewCommand(t *testing.T) {
function TestCommandNoArgs (line 34) | func TestCommandNoArgs(t *testing.T) {
function TestCommandErrorOutputOnce (line 44) | func TestCommandErrorOutputOnce(t *testing.T) {
function TestRunContents (line 61) | func TestRunContents(t *testing.T) {
function TestGenerateConfigFiles (line 470) | func TestGenerateConfigFiles(t *testing.T) {
function TestGenerateConfigGoStruct_RootPackageError (line 541) | func TestGenerateConfigGoStruct_RootPackageError(t *testing.T) {
function TestGenerateConfigFiles_GoStructError (line 554) | func TestGenerateConfigFiles_GoStructError(t *testing.T) {
function TestGenerateConfigFiles_WriteError (line 567) | func TestGenerateConfigFiles_WriteError(t *testing.T) {
function TestRun (line 583) | func TestRun(t *testing.T) {
function TestInlineReplace (line 615) | func TestInlineReplace(t *testing.T) {
function TestGenerateStatusMetadata (line 870) | func TestGenerateStatusMetadata(t *testing.T) {
function TestGenerateTelemetryMetadata (line 984) | func TestGenerateTelemetryMetadata(t *testing.T) {
function TestGenerateConfigSchema_LocalizesSameRootRefs (line 1070) | func TestGenerateConfigSchema_LocalizesSameRootRefs(t *testing.T) {
FILE: cmd/mdatagen/internal/embedded_templates_test.go
function TestEnsureTemplatesLoaded (line 15) | func TestEnsureTemplatesLoaded(t *testing.T) {
FILE: cmd/mdatagen/internal/event.go
type EventName (line 14) | type EventName
method Render (line 17) | func (ln EventName) Render() (string, error) {
method RenderUnexported (line 21) | func (ln EventName) RenderUnexported() (string, error) {
type Event (line 25) | type Event struct
method validate (line 29) | func (l *Event) validate() error {
method Unmarshal (line 37) | func (l *Event) Unmarshal(parser *confmap.Conf) error {
FILE: cmd/mdatagen/internal/event_test.go
function TestEventNameRender (line 13) | func TestEventNameRender(t *testing.T) {
FILE: cmd/mdatagen/internal/helpers/lint.go
function FormatIdentifier (line 15) | func FormatIdentifier(s string, exported bool) (string, error) {
FILE: cmd/mdatagen/internal/helpers/lint_test.go
function TestFormatIdentifier (line 12) | func TestFormatIdentifier(t *testing.T) {
FILE: cmd/mdatagen/internal/helpers/packages.go
function RootPackage (line 17) | func RootPackage(componentDir string) (string, error) {
function rootModuleDir (line 32) | func rootModuleDir(componentDir string) (string, error) {
FILE: cmd/mdatagen/internal/helpers/packages_test.go
function TestRootModuleDir (line 15) | func TestRootModuleDir(t *testing.T) {
function TestRootPackage (line 67) | func TestRootPackage(t *testing.T) {
FILE: cmd/mdatagen/internal/loader.go
function setAttributeDefaultFields (line 18) | func setAttributeDefaultFields(attrs map[AttributeName]Attribute) {
type TemplateContext (line 28) | type TemplateContext struct
function LoadMetadata (line 36) | func LoadMetadata(filePath string) (Metadata, error) {
function shortFolderName (line 84) | func shortFolderName(filePath string) string {
function packageName (line 94) | func packageName(filePath string) (string, error) {
FILE: cmd/mdatagen/internal/loader_test.go
function boolPtr (line 19) | func boolPtr(b bool) *bool {
function TestTwoPackagesInDirectory (line 23) | func TestTwoPackagesInDirectory(t *testing.T) {
function TestLoadMetadata (line 39) | func TestLoadMetadata(t *testing.T) {
function strPtr (line 763) | func strPtr(s string) *string {
FILE: cmd/mdatagen/internal/metadata.go
type Metadata (line 21) | type Metadata struct
method GetCodeCovComponentID (line 86) | func (md Metadata) GetCodeCovComponentID() string {
method HasEntities (line 94) | func (md Metadata) HasEntities() bool {
method Validate (line 98) | func (md *Metadata) Validate() error {
method validateType (line 143) | func (md *Metadata) validateType() error {
method validateResourceAttributes (line 159) | func (md *Metadata) validateResourceAttributes() error {
method validateEntities (line 176) | func (md *Metadata) validateEntities() error {
method validateMetricsAndEvents (line 252) | func (md *Metadata) validateMetricsAndEvents() error {
method validateAttributes (line 264) | func (md *Metadata) validateAttributes(usedAttrs map[AttributeName]boo...
method validateEntityAssociations (line 289) | func (md *Metadata) validateEntityAssociations() error {
method supportsSignal (line 318) | func (md *Metadata) supportsSignal(signal string) bool {
method validateFeatureGates (line 376) | func (md *Metadata) validateFeatureGates() error {
method validateConfig (line 446) | func (md *Metadata) validateConfig() error {
type Deprecated (line 68) | type Deprecated struct
method validate (line 73) | func (d *Deprecated) validate() error {
function validateMetrics (line 332) | func validateMetrics(metrics map[MetricName]Metric, attributes map[Attri...
function validateEvents (line 354) | func validateEvents(events map[EventName]Event, attributes map[Attribute...
type AttributeName (line 453) | type AttributeName
method Render (line 484) | func (mn AttributeName) Render() (string, error) {
method RenderUnexported (line 488) | func (mn AttributeName) RenderUnexported() (string, error) {
type AttributeRequirementLevel (line 456) | type AttributeRequirementLevel
method String (line 470) | func (rl AttributeRequirementLevel) String() string {
method UnmarshalText (line 603) | func (rl *AttributeRequirementLevel) UnmarshalText(text []byte) error {
constant AttributeRequirementLevelRequired (line 460) | AttributeRequirementLevelRequired AttributeRequirementLevel = "required"
constant AttributeRequirementLevelConditionallyRequired (line 462) | AttributeRequirementLevelConditionallyRequired AttributeRequirementLevel...
constant AttributeRequirementLevelRecommended (line 464) | AttributeRequirementLevelRecommended AttributeRequirementLevel = "recomm...
constant AttributeRequirementLevelOptIn (line 466) | AttributeRequirementLevelOptIn AttributeRequirementLevel = "opt_in"
type ValueType (line 493) | type ValueType struct
method UnmarshalText (line 499) | func (mvt *ValueType) UnmarshalText(text []byte) error {
method String (line 522) | func (mvt ValueType) String() string {
method Primitive (line 527) | func (mvt ValueType) Primitive() string {
type SemanticConvention (line 550) | type SemanticConvention struct
type Warnings (line 554) | type Warnings struct
type Attribute (line 563) | type Attribute struct
method IsConditional (line 587) | func (a Attribute) IsConditional() bool {
method IsRequired (line 592) | func (a Attribute) IsRequired() bool {
method IsNotOptIn (line 598) | func (a Attribute) IsNotOptIn() bool {
method Enabled (line 626) | func (a Attribute) Enabled() bool {
method Name (line 634) | func (a Attribute) Name() AttributeName {
method TestValue (line 641) | func (a Attribute) TestValue() string {
method TestValueTwo (line 666) | func (a Attribute) TestValueTwo() string {
type Signal (line 691) | type Signal struct
method HasConditionalAttributes (line 718) | func (s Signal) HasConditionalAttributes(attrs map[AttributeName]Attri...
type Entity (line 727) | type Entity struct
type EntityAttributeRef (line 748) | type EntityAttributeRef struct
type EntityRelationship (line 753) | type EntityRelationship struct
type FeatureGateID (line 761) | type FeatureGateID
type FeatureGateStage (line 764) | type FeatureGateStage
constant FeatureGateStageAlpha (line 767) | FeatureGateStageAlpha FeatureGateStage = "alpha"
constant FeatureGateStageBeta (line 768) | FeatureGateStageBeta FeatureGateStage = "beta"
constant FeatureGateStageStable (line 769) | FeatureGateStageStable FeatureGateStage = "stable"
constant FeatureGateStageDeprecated (line 770) | FeatureGateStageDeprecated FeatureGateStage = "deprecated"
type FeatureGate (line 774) | type FeatureGate struct
FILE: cmd/mdatagen/internal/metadata_test.go
function TestValidate (line 15) | func TestValidate(t *testing.T) {
function TestSupportsSignal (line 196) | func TestSupportsSignal(t *testing.T) {
function TestCodeCovID (line 201) | func TestCodeCovID(t *testing.T) {
function TestAttributeRequirementLevel (line 253) | func TestAttributeRequirementLevel(t *testing.T) {
function TestAttributeRequirementLevelUnmarshalText (line 289) | func TestAttributeRequirementLevelUnmarshalText(t *testing.T) {
function TestValidateFeatureGates (line 342) | func TestValidateFeatureGates(t *testing.T) {
function TestValidateFeatureGatesEmptyID (line 477) | func TestValidateFeatureGatesEmptyID(t *testing.T) {
function TestValidateFeatureGatesDuplicateID (line 491) | func TestValidateFeatureGatesDuplicateID(t *testing.T) {
function TestValidateFeatureGatesNotSorted (line 511) | func TestValidateFeatureGatesNotSorted(t *testing.T) {
function TestValidateConfig (line 533) | func TestValidateConfig(t *testing.T) {
FILE: cmd/mdatagen/internal/metric.go
type MetricName (line 23) | type MetricName
method Render (line 25) | func (mn MetricName) Render() (string, error) {
method RenderUnexported (line 29) | func (mn MetricName) RenderUnexported() (string, error) {
type Metric (line 33) | type Metric struct
method validate (line 57) | func (m *Metric) validate(metricName MetricName, semConvVersion string...
method Unmarshal (line 136) | func (m *Metric) Unmarshal(parser *confmap.Conf) error {
method Data (line 146) | func (m Metric) Data() MetricData {
function metricAnchor (line 101) | func metricAnchor(metricName string) string {
function validateSemConvMetricURL (line 109) | func validateSemConvMetricURL(rawURL, semConvVersion, metricName string)...
type MetricData (line 160) | type MetricData interface
type AggregationTemporality (line 170) | type AggregationTemporality struct
method UnmarshalText (line 177) | func (agg *AggregationTemporality) UnmarshalText(text []byte) error {
method String (line 190) | func (agg *AggregationTemporality) String() string {
type Mono (line 195) | type Mono struct
type MetricInputType (line 201) | type MetricInputType struct
method HasMetricInputType (line 206) | func (mit MetricInputType) HasMetricInputType() bool {
method String (line 211) | func (mit MetricInputType) String() string {
method Validate (line 215) | func (mit MetricInputType) Validate() error {
type MetricValueType (line 223) | type MetricValueType struct
method Unmarshal (line 228) | func (mvt *MetricValueType) Unmarshal(parser *confmap.Conf) error {
method UnmarshalText (line 236) | func (mvt *MetricValueType) UnmarshalText(text []byte) error {
method String (line 249) | func (mvt MetricValueType) String() string {
method BasicType (line 254) | func (mvt MetricValueType) BasicType() string {
type Gauge (line 269) | type Gauge struct
method Unmarshal (line 276) | func (d *Gauge) Unmarshal(parser *confmap.Conf) error {
method Type (line 283) | func (d *Gauge) Type() string {
method HasMonotonic (line 287) | func (d *Gauge) HasMonotonic() bool {
method HasAggregated (line 291) | func (d *Gauge) HasAggregated() bool {
method Instrument (line 295) | func (d *Gauge) Instrument() string {
method IsAsync (line 306) | func (d *Gauge) IsAsync() bool {
type Sum (line 312) | type Sum struct
method Unmarshal (line 321) | func (d *Sum) Unmarshal(parser *confmap.Conf) error {
method Type (line 339) | func (d *Sum) Type() string {
method HasMonotonic (line 343) | func (d *Sum) HasMonotonic() bool {
method HasAggregated (line 347) | func (d *Sum) HasAggregated() bool {
method Instrument (line 351) | func (d *Sum) Instrument() string {
method IsAsync (line 364) | func (d *Sum) IsAsync() bool {
type Histogram (line 370) | type Histogram struct
method Type (line 379) | func (d *Histogram) Type() string {
method HasMonotonic (line 383) | func (d *Histogram) HasMonotonic() bool {
method HasAggregated (line 387) | func (d *Histogram) HasAggregated() bool {
method Instrument (line 391) | func (d *Histogram) Instrument() string {
method Unmarshal (line 397) | func (d *Histogram) Unmarshal(parser *confmap.Conf) error {
method IsAsync (line 404) | func (d *Histogram) IsAsync() bool {
FILE: cmd/mdatagen/internal/metric_test.go
function TestMetricData (line 14) | func TestMetricData(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleconnector/factory.go
function NewFactory (line 20) | func NewFactory() connector.Factory {
function createMetricsToMetricsConnector (line 29) | func createMetricsToMetricsConnector(context.Context, connector.Settings...
function createProfilesToProfilesConnector (line 33) | func createProfilesToProfilesConnector(context.Context, connector.Settin...
type nopConnector (line 39) | type nopConnector struct
method Capabilities (line 44) | func (n nopConnector) Capabilities() consumer.Capabilities {
method ConsumeMetrics (line 48) | func (n nopConnector) ConsumeMetrics(context.Context, pmetric.Metrics)...
method ConsumeProfiles (line 52) | func (n nopConnector) ConsumeProfiles(context.Context, pprofile.Profil...
FILE: cmd/mdatagen/internal/sampleconnector/generated_component_test.go
function TestComponentFactoryType (line 27) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 31) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 35) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 91) | type mdatagenNopHost struct
method GetExtensions (line 97) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 101) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 93) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/sampleconnector/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config.go
type DefaultMetricMetricAttributeKey (line 13) | type DefaultMetricMetricAttributeKey
constant DefaultMetricMetricAttributeKeyStringAttr (line 16) | DefaultMetricMetricAttributeKeyStringAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyOverriddenIntAttr (line 17) | DefaultMetricMetricAttributeKeyOverriddenIntAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyEnumAttr (line 18) | DefaultMetricMetricAttributeKeyEnumAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeySliceAttr (line 19) | DefaultMetricMetricAttributeKeySliceAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyMapAttr (line 20) | DefaultMetricMetricAttributeKeyMapAttr DefaultMetricMetricAttr...
type DefaultMetricMetricConfig (line 24) | type DefaultMetricMetricConfig struct
method Unmarshal (line 32) | func (ms *DefaultMetricMetricConfig) Unmarshal(parser *confmap.Conf) e...
method Validate (line 46) | func (ms *DefaultMetricMetricConfig) Validate() error {
type DefaultMetricToBeRemovedMetricConfig (line 65) | type DefaultMetricToBeRemovedMetricConfig struct
method Unmarshal (line 70) | func (ms *DefaultMetricToBeRemovedMetricConfig) Unmarshal(parser *conf...
type MetricInputTypeMetricAttributeKey (line 85) | type MetricInputTypeMetricAttributeKey
constant MetricInputTypeMetricAttributeKeyStringAttr (line 88) | MetricInputTypeMetricAttributeKeyStringAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyOverriddenIntAttr (line 89) | MetricInputTypeMetricAttributeKeyOverriddenIntAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyEnumAttr (line 90) | MetricInputTypeMetricAttributeKeyEnumAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeySliceAttr (line 91) | MetricInputTypeMetricAttributeKeySliceAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyMapAttr (line 92) | MetricInputTypeMetricAttributeKeyMapAttr MetricInputTypeMetric...
type MetricInputTypeMetricConfig (line 96) | type MetricInputTypeMetricConfig struct
method Unmarshal (line 104) | func (ms *MetricInputTypeMetricConfig) Unmarshal(parser *confmap.Conf)...
method Validate (line 118) | func (ms *MetricInputTypeMetricConfig) Validate() error {
type OptionalMetricMetricAttributeKey (line 137) | type OptionalMetricMetricAttributeKey
constant OptionalMetricMetricAttributeKeyStringAttr (line 140) | OptionalMetricMetricAttributeKeyStringAttr OptionalMetricMetricAttribu...
constant OptionalMetricMetricAttributeKeyBooleanAttr (line 141) | OptionalMetricMetricAttributeKeyBooleanAttr OptionalMetricMetricAttribu...
constant OptionalMetricMetricAttributeKeyBooleanAttr2 (line 142) | OptionalMetricMetricAttributeKeyBooleanAttr2 OptionalMetricMetricAttribu...
type OptionalMetricMetricConfig (line 146) | type OptionalMetricMetricConfig struct
method Unmarshal (line 154) | func (ms *OptionalMetricMetricConfig) Unmarshal(parser *confmap.Conf) ...
method Validate (line 168) | func (ms *OptionalMetricMetricConfig) Validate() error {
type OptionalMetricEmptyUnitMetricAttributeKey (line 187) | type OptionalMetricEmptyUnitMetricAttributeKey
constant OptionalMetricEmptyUnitMetricAttributeKeyStringAttr (line 190) | OptionalMetricEmptyUnitMetricAttributeKeyStringAttr OptionalMetricEmpty...
constant OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr (line 191) | OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr OptionalMetricEmpty...
type OptionalMetricEmptyUnitMetricConfig (line 195) | type OptionalMetricEmptyUnitMetricConfig struct
method Unmarshal (line 203) | func (ms *OptionalMetricEmptyUnitMetricConfig) Unmarshal(parser *confm...
method Validate (line 217) | func (ms *OptionalMetricEmptyUnitMetricConfig) Validate() error {
type ReaggregateMetricMetricAttributeKey (line 236) | type ReaggregateMetricMetricAttributeKey
constant ReaggregateMetricMetricAttributeKeyStringAttr (line 239) | ReaggregateMetricMetricAttributeKeyStringAttr ReaggregateMetricMetricAt...
constant ReaggregateMetricMetricAttributeKeyBooleanAttr (line 240) | ReaggregateMetricMetricAttributeKeyBooleanAttr ReaggregateMetricMetricAt...
type ReaggregateMetricMetricConfig (line 244) | type ReaggregateMetricMetricConfig struct
method Unmarshal (line 252) | func (ms *ReaggregateMetricMetricConfig) Unmarshal(parser *confmap.Con...
method Validate (line 266) | func (ms *ReaggregateMetricMetricConfig) Validate() error {
type MetricsConfig (line 285) | type MetricsConfig struct
function DefaultMetricsConfig (line 294) | func DefaultMetricsConfig() MetricsConfig {
type ResourceAttributeConfig (line 328) | type ResourceAttributeConfig struct
method Unmarshal (line 341) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 354) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 365) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
type MetricsBuilderConfig (line 395) | type MetricsBuilderConfig struct
function DefaultMetricsBuilderConfig (line 400) | func DefaultMetricsBuilderConfig() MetricsBuilderConfig {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config_test.go
function TestMetricsBuilderConfig (line 17) | func TestMetricsBuilderConfig(t *testing.T) {
function loadMetricsBuilderConfig (line 126) | func loadMetricsBuilderConfig(t *testing.T, name string) MetricsBuilderC...
function TestResourceAttributesConfig (line 136) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 181) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_entity_metrics.go
type TestEntityEntity (line 15) | type TestEntityEntity struct
method SetMapResourceAttr (line 31) | func (e *TestEntityEntity) SetMapResourceAttr(val map[string]any) {
method copyToResource (line 38) | func (e *TestEntityEntity) copyToResource(cfg ResourceAttributesConfig...
function NewTestEntityEntity (line 22) | func NewTestEntityEntity(stringResourceAttr string) *TestEntityEntity {
type TestEntityMetricsBuilder (line 57) | type TestEntityMetricsBuilder struct
method RecordDefaultMetricDataPoint (line 63) | func (eb *TestEntityMetricsBuilder) RecordDefaultMetricDataPoint(ts pc...
method RecordDefaultMetricToBeRemovedDataPoint (line 68) | func (eb *TestEntityMetricsBuilder) RecordDefaultMetricToBeRemovedData...
method RecordMetricInputTypeDataPoint (line 73) | func (eb *TestEntityMetricsBuilder) RecordMetricInputTypeDataPoint(ts ...
method RecordOptionalMetricDataPoint (line 83) | func (eb *TestEntityMetricsBuilder) RecordOptionalMetricDataPoint(ts p...
method RecordOptionalMetricEmptyUnitDataPoint (line 88) | func (eb *TestEntityMetricsBuilder) RecordOptionalMetricEmptyUnitDataP...
method RecordReaggregateMetricDataPoint (line 93) | func (eb *TestEntityMetricsBuilder) RecordReaggregateMetricDataPoint(t...
method Emit (line 100) | func (eb *TestEntityMetricsBuilder) Emit() {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_entity_metrics_test.go
function TestEntityBuilders (line 16) | func TestEntityBuilders(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_metrics.go
constant AggregationStrategySum (line 21) | AggregationStrategySum = "sum"
constant AggregationStrategyAvg (line 22) | AggregationStrategyAvg = "avg"
constant AggregationStrategyMin (line 23) | AggregationStrategyMin = "min"
constant AggregationStrategyMax (line 24) | AggregationStrategyMax = "max"
type AttributeEnumAttr (line 28) | type AttributeEnumAttr
method String (line 38) | func (av AttributeEnumAttr) String() string {
constant _ (line 31) | _ AttributeEnumAttr = iota
constant AttributeEnumAttrRed (line 32) | AttributeEnumAttrRed
constant AttributeEnumAttrGreen (line 33) | AttributeEnumAttrGreen
constant AttributeEnumAttrBlue (line 34) | AttributeEnumAttrBlue
type metricsInfo (line 78) | type metricsInfo struct
type metricInfo (line 87) | type metricInfo struct
type metricDefaultMetric (line 91) | type metricDefaultMetric struct
method init (line 99) | func (m *metricDefaultMetric) init() {
method recordDataPoint (line 110) | func (m *metricDefaultMetric) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 164) | func (m *metricDefaultMetric) updateCapacity() {
method emit (line 171) | func (m *metricDefaultMetric) emit(metrics pmetric.MetricSlice) {
function newMetricDefaultMetric (line 184) | func newMetricDefaultMetric(cfg DefaultMetricMetricConfig) metricDefault...
type metricDefaultMetricToBeRemoved (line 194) | type metricDefaultMetricToBeRemoved struct
method init (line 201) | func (m *metricDefaultMetricToBeRemoved) init() {
method recordDataPoint (line 210) | func (m *metricDefaultMetricToBeRemoved) recordDataPoint(start pcommon...
method updateCapacity (line 221) | func (m *metricDefaultMetricToBeRemoved) updateCapacity() {
method emit (line 228) | func (m *metricDefaultMetricToBeRemoved) emit(metrics pmetric.MetricSl...
function newMetricDefaultMetricToBeRemoved (line 236) | func newMetricDefaultMetricToBeRemoved(cfg DefaultMetricToBeRemovedMetri...
type metricMetricInputType (line 246) | type metricMetricInputType struct
method init (line 254) | func (m *metricMetricInputType) init() {
method recordDataPoint (line 265) | func (m *metricMetricInputType) recordDataPoint(start pcommon.Timestam...
method updateCapacity (line 319) | func (m *metricMetricInputType) updateCapacity() {
method emit (line 326) | func (m *metricMetricInputType) emit(metrics pmetric.MetricSlice) {
function newMetricMetricInputType (line 339) | func newMetricMetricInputType(cfg MetricInputTypeMetricConfig) metricMet...
type metricOptionalMetric (line 349) | type metricOptionalMetric struct
method init (line 357) | func (m *metricOptionalMetric) init() {
method recordDataPoint (line 366) | func (m *metricOptionalMetric) recordDataPoint(start pcommon.Timestamp...
method updateCapacity (line 414) | func (m *metricOptionalMetric) updateCapacity() {
method emit (line 421) | func (m *metricOptionalMetric) emit(metrics pmetric.MetricSlice) {
function newMetricOptionalMetric (line 434) | func newMetricOptionalMetric(cfg OptionalMetricMetricConfig) metricOptio...
type metricOptionalMetricEmptyUnit (line 444) | type metricOptionalMetricEmptyUnit struct
method init (line 452) | func (m *metricOptionalMetricEmptyUnit) init() {
method recordDataPoint (line 461) | func (m *metricOptionalMetricEmptyUnit) recordDataPoint(start pcommon....
method updateCapacity (line 506) | func (m *metricOptionalMetricEmptyUnit) updateCapacity() {
method emit (line 513) | func (m *metricOptionalMetricEmptyUnit) emit(metrics pmetric.MetricSli...
function newMetricOptionalMetricEmptyUnit (line 526) | func newMetricOptionalMetricEmptyUnit(cfg OptionalMetricEmptyUnitMetricC...
type metricReaggregateMetric (line 536) | type metricReaggregateMetric struct
method init (line 544) | func (m *metricReaggregateMetric) init() {
method recordDataPoint (line 553) | func (m *metricReaggregateMetric) recordDataPoint(start pcommon.Timest...
method updateCapacity (line 598) | func (m *metricReaggregateMetric) updateCapacity() {
method emit (line 605) | func (m *metricReaggregateMetric) emit(metrics pmetric.MetricSlice) {
function newMetricReaggregateMetric (line 618) | func newMetricReaggregateMetric(cfg ReaggregateMetricMetricConfig) metri...
type MetricsBuilder (line 630) | type MetricsBuilder struct
method NewResourceBuilder (line 755) | func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder {
method updateCapacity (line 760) | func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) {
method ForTestEntity (line 813) | func (mb *MetricsBuilder) ForTestEntity(e *TestEntityEntity) *TestEnti...
method EmitForResource (line 824) | func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOp...
method Emit (line 861) | func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetr...
method RecordDefaultMetricDataPoint (line 871) | func (mb *MetricsBuilder) RecordDefaultMetricDataPoint(ts pcommon.Time...
method RecordDefaultMetricToBeRemovedDataPoint (line 878) | func (mb *MetricsBuilder) RecordDefaultMetricToBeRemovedDataPoint(ts p...
method RecordMetricInputTypeDataPoint (line 885) | func (mb *MetricsBuilder) RecordMetricInputTypeDataPoint(ts pcommon.Ti...
method RecordOptionalMetricDataPoint (line 897) | func (mb *MetricsBuilder) RecordOptionalMetricDataPoint(ts pcommon.Tim...
method RecordOptionalMetricEmptyUnitDataPoint (line 904) | func (mb *MetricsBuilder) RecordOptionalMetricEmptyUnitDataPoint(ts pc...
method RecordReaggregateMetricDataPoint (line 911) | func (mb *MetricsBuilder) RecordReaggregateMetricDataPoint(ts pcommon....
method Reset (line 917) | func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) {
type MetricBuilderOption (line 647) | type MetricBuilderOption interface
type metricBuilderOptionFunc (line 651) | type metricBuilderOptionFunc
method apply (line 653) | func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) {
function WithStartTime (line 658) | func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
function NewMetricsBuilder (line 663) | func NewMetricsBuilder(mbc MetricsBuilderConfig, settings connector.Sett...
type ResourceMetricsOption (line 767) | type ResourceMetricsOption interface
type resourceMetricsOptionFunc (line 771) | type resourceMetricsOptionFunc
method apply (line 773) | func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) {
function WithResource (line 779) | func WithResource(res pcommon.Resource) ResourceMetricsOption {
function withResourceMoved (line 785) | func withResourceMoved(res pcommon.Resource) ResourceMetricsOption {
function WithStartTimeOverride (line 793) | func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_metrics_test.go
type testDataSet (line 17) | type testDataSet
constant testDataSetDefault (line 20) | testDataSetDefault testDataSet = iota
constant testDataSetAll (line 21) | testDataSetAll
constant testDataSetNone (line 22) | testDataSetNone
constant testDataSetReag (line 23) | testDataSetReag
function TestMetricsBuilder (line 26) | func TestMetricsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetMapResourceAttr (line 25) | func (rb *ResourceBuilder) SetMapResourceAttr(val map[string]any) {
method SetOptionalResourceAttr (line 32) | func (rb *ResourceBuilder) SetOptionalResourceAttr(val string) {
method SetSliceResourceAttr (line 39) | func (rb *ResourceBuilder) SetSliceResourceAttr(val []any) {
method SetStringEnumResourceAttrOne (line 46) | func (rb *ResourceBuilder) SetStringEnumResourceAttrOne() {
method SetStringEnumResourceAttrTwo (line 53) | func (rb *ResourceBuilder) SetStringEnumResourceAttrTwo() {
method SetStringResourceAttr (line 60) | func (rb *ResourceBuilder) SetStringResourceAttr(val string) {
method SetStringResourceAttrDisableWarning (line 67) | func (rb *ResourceBuilder) SetStringResourceAttrDisableWarning(val str...
method SetStringResourceAttrRemoveWarning (line 74) | func (rb *ResourceBuilder) SetStringResourceAttrRemoveWarning(val stri...
method SetStringResourceAttrToBeRemoved (line 81) | func (rb *ResourceBuilder) SetStringResourceAttrToBeRemoved(val string) {
method Emit (line 88) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_status.go
constant MetricsToMetricsStability (line 15) | MetricsToMetricsStability = component.StabilityLevelDevelopment
constant ProfilesToProfilesStability (line 16) | ProfilesToProfilesStability = component.StabilityLevelDevelopment
FILE: cmd/mdatagen/internal/sampleconnector/metrics_test.go
function TestGeneratedMetrics (line 19) | func TestGeneratedMetrics(t *testing.T) {
function TestNopConnector (line 25) | func TestNopConnector(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleentityreceiver/factory.go
function NewFactory (line 17) | func NewFactory() xreceiver.Factory {
function createMetrics (line 25) | func createMetrics(context.Context, receiver.Settings, component.Config,...
type nopReceiver (line 31) | type nopReceiver struct
method Shutdown (line 35) | func (nopReceiver) Shutdown(context.Context) error {
FILE: cmd/mdatagen/internal/sampleentityreceiver/generated_component_test.go
function TestComponentFactoryType (line 21) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 25) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 29) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 76) | type mdatagenNopHost struct
method GetExtensions (line 82) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 86) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 78) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/sampleentityreceiver/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_config.go
type MetricConfig (line 11) | type MetricConfig struct
method Unmarshal (line 16) | func (ms *MetricConfig) Unmarshal(parser *confmap.Conf) error {
type MetricsConfig (line 31) | type MetricsConfig struct
function DefaultMetricsConfig (line 37) | func DefaultMetricsConfig() MetricsConfig {
type ResourceAttributeConfig (line 52) | type ResourceAttributeConfig struct
method Unmarshal (line 65) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 78) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 86) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
type MetricsBuilderConfig (line 107) | type MetricsBuilderConfig struct
function DefaultMetricsBuilderConfig (line 112) | func DefaultMetricsBuilderConfig() MetricsBuilderConfig {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_config_test.go
function TestMetricsBuilderConfig (line 17) | func TestMetricsBuilderConfig(t *testing.T) {
function loadMetricsBuilderConfig (line 82) | func loadMetricsBuilderConfig(t *testing.T, name string) MetricsBuilderC...
function TestResourceAttributesConfig (line 92) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 131) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_entity_metrics.go
type K8sReplicasetEntity (line 12) | type K8sReplicasetEntity struct
method SetK8sReplicasetName (line 28) | func (e *K8sReplicasetEntity) SetK8sReplicasetName(val string) {
method copyToResource (line 35) | func (e *K8sReplicasetEntity) copyToResource(cfg ResourceAttributesCon...
function NewK8sReplicasetEntity (line 19) | func NewK8sReplicasetEntity(k8sReplicasetUID string) *K8sReplicasetEntity {
type K8sPodEntity (line 54) | type K8sPodEntity struct
method SetK8sPodName (line 72) | func (e *K8sPodEntity) SetK8sPodName(val string) {
method SetK8sNamespaceName (line 80) | func (e *K8sPodEntity) SetK8sNamespaceName(val string) {
method SetControlledByK8sReplicaset (line 88) | func (e *K8sPodEntity) SetControlledByK8sReplicaset(target *K8sReplica...
method copyToResource (line 95) | func (e *K8sPodEntity) copyToResource(cfg ResourceAttributesConfig, re...
function NewK8sPodEntity (line 63) | func NewK8sPodEntity(k8sPodUID string) *K8sPodEntity {
type K8sReplicasetMetricsBuilder (line 120) | type K8sReplicasetMetricsBuilder struct
method RecordK8sReplicasetDesiredDataPoint (line 126) | func (eb *K8sReplicasetMetricsBuilder) RecordK8sReplicasetDesiredDataP...
method Emit (line 133) | func (eb *K8sReplicasetMetricsBuilder) Emit() {
type K8sPodMetricsBuilder (line 142) | type K8sPodMetricsBuilder struct
method RecordK8sPodCPUTimeDataPoint (line 148) | func (eb *K8sPodMetricsBuilder) RecordK8sPodCPUTimeDataPoint(ts pcommo...
method RecordK8sPodPhaseDataPoint (line 153) | func (eb *K8sPodMetricsBuilder) RecordK8sPodPhaseDataPoint(ts pcommon....
method Emit (line 160) | func (eb *K8sPodMetricsBuilder) Emit() {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_entity_metrics_test.go
function TestEntityBuilders (line 16) | func TestEntityBuilders(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_metrics.go
type AttributePhase (line 18) | type AttributePhase
method String (line 30) | func (av AttributePhase) String() string {
constant _ (line 21) | _ AttributePhase = iota
constant AttributePhasePending (line 22) | AttributePhasePending
constant AttributePhaseRunning (line 23) | AttributePhaseRunning
constant AttributePhaseSucceeded (line 24) | AttributePhaseSucceeded
constant AttributePhaseFailed (line 25) | AttributePhaseFailed
constant AttributePhaseUnknown (line 26) | AttributePhaseUnknown
type metricsInfo (line 67) | type metricsInfo struct
type metricInfo (line 73) | type metricInfo struct
type metricK8sPodCPUTime (line 77) | type metricK8sPodCPUTime struct
method init (line 84) | func (m *metricK8sPodCPUTime) init() {
method recordDataPoint (line 93) | func (m *metricK8sPodCPUTime) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 104) | func (m *metricK8sPodCPUTime) updateCapacity() {
method emit (line 111) | func (m *metricK8sPodCPUTime) emit(metrics pmetric.MetricSlice) {
function newMetricK8sPodCPUTime (line 119) | func newMetricK8sPodCPUTime(cfg MetricConfig) metricK8sPodCPUTime {
type metricK8sPodPhase (line 129) | type metricK8sPodPhase struct
method init (line 136) | func (m *metricK8sPodPhase) init() {
method recordDataPoint (line 144) | func (m *metricK8sPodPhase) recordDataPoint(start pcommon.Timestamp, t...
method updateCapacity (line 156) | func (m *metricK8sPodPhase) updateCapacity() {
method emit (line 163) | func (m *metricK8sPodPhase) emit(metrics pmetric.MetricSlice) {
function newMetricK8sPodPhase (line 171) | func newMetricK8sPodPhase(cfg MetricConfig) metricK8sPodPhase {
type metricK8sReplicasetDesired (line 181) | type metricK8sReplicasetDesired struct
method init (line 188) | func (m *metricK8sReplicasetDesired) init() {
method recordDataPoint (line 195) | func (m *metricK8sReplicasetDesired) recordDataPoint(start pcommon.Tim...
method updateCapacity (line 206) | func (m *metricK8sReplicasetDesired) updateCapacity() {
method emit (line 213) | func (m *metricK8sReplicasetDesired) emit(metrics pmetric.MetricSlice) {
function newMetricK8sReplicasetDesired (line 221) | func newMetricK8sReplicasetDesired(cfg MetricConfig) metricK8sReplicaset...
type MetricsBuilder (line 233) | type MetricsBuilder struct
method NewResourceBuilder (line 313) | func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder {
method updateCapacity (line 318) | func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) {
method ForK8sReplicaset (line 371) | func (mb *MetricsBuilder) ForK8sReplicaset(e *K8sReplicasetEntity) *K8...
method ForK8sPod (line 377) | func (mb *MetricsBuilder) ForK8sPod(e *K8sPodEntity) *K8sPodMetricsBui...
method EmitForResource (line 388) | func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOp...
method Emit (line 422) | func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetr...
method RecordK8sPodCPUTimeDataPoint (line 432) | func (mb *MetricsBuilder) RecordK8sPodCPUTimeDataPoint(ts pcommon.Time...
method RecordK8sPodPhaseDataPoint (line 439) | func (mb *MetricsBuilder) RecordK8sPodPhaseDataPoint(ts pcommon.Timest...
method RecordK8sReplicasetDesiredDataPoint (line 446) | func (mb *MetricsBuilder) RecordK8sReplicasetDesiredDataPoint(ts pcomm...
method Reset (line 452) | func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) {
type MetricBuilderOption (line 247) | type MetricBuilderOption interface
type metricBuilderOptionFunc (line 251) | type metricBuilderOptionFunc
method apply (line 253) | func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) {
function WithStartTime (line 258) | func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
function NewMetricsBuilder (line 263) | func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.Setti...
type ResourceMetricsOption (line 325) | type ResourceMetricsOption interface
type resourceMetricsOptionFunc (line 329) | type resourceMetricsOptionFunc
method apply (line 331) | func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) {
function WithResource (line 337) | func WithResource(res pcommon.Resource) ResourceMetricsOption {
function withResourceMoved (line 343) | func withResourceMoved(res pcommon.Resource) ResourceMetricsOption {
function WithStartTimeOverride (line 351) | func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_metrics_test.go
type testDataSet (line 17) | type testDataSet
constant testDataSetDefault (line 20) | testDataSetDefault testDataSet = iota
constant testDataSetAll (line 21) | testDataSetAll
constant testDataSetNone (line 22) | testDataSetNone
function TestMetricsBuilder (line 25) | func TestMetricsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetK8sNamespaceName (line 25) | func (rb *ResourceBuilder) SetK8sNamespaceName(val string) {
method SetK8sPodName (line 32) | func (rb *ResourceBuilder) SetK8sPodName(val string) {
method SetK8sPodUID (line 39) | func (rb *ResourceBuilder) SetK8sPodUID(val string) {
method SetK8sReplicasetName (line 46) | func (rb *ResourceBuilder) SetK8sReplicasetName(val string) {
method SetK8sReplicasetUID (line 53) | func (rb *ResourceBuilder) SetK8sReplicasetUID(val string) {
method Emit (line 60) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_status.go
constant MetricsStability (line 15) | MetricsStability = component.StabilityLevelDevelopment
FILE: cmd/mdatagen/internal/samplefactoryreceiver/factory.go
function NewFactory (line 22) | func NewFactory() xreceiver.Factory {
function createTraces (line 33) | func createTraces(context.Context, receiver.Settings, component.Config, ...
function createMetrics (line 37) | func createMetrics(ctx context.Context, set receiver.Settings, _ compone...
function createLogs (line 54) | func createLogs(context.Context, receiver.Settings, component.Config, co...
function createProfiles (line 58) | func createProfiles(context.Context, receiver.Settings, component.Config...
type nopReceiver (line 64) | type nopReceiver struct
method Start (line 69) | func (r nopReceiver) Start(_ context.Context, host component.Host) err...
method Shutdown (line 78) | func (r nopReceiver) Shutdown(context.Context) error {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/generated_component_test.go
function TestComponentFactoryType (line 23) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 27) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 31) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 99) | type mdatagenNopHost struct
method GetExtensions (line 105) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 109) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 101) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_config.go
type MetricConfig (line 11) | type MetricConfig struct
method Unmarshal (line 17) | func (ms *MetricConfig) Unmarshal(parser *confmap.Conf) error {
type MetricsConfig (line 30) | type MetricsConfig struct
function DefaultMetricsConfig (line 38) | func DefaultMetricsConfig() MetricsConfig {
type EventConfig (line 59) | type EventConfig struct
method Unmarshal (line 65) | func (ec *EventConfig) Unmarshal(parser *confmap.Conf) error {
type EventsConfig (line 78) | type EventsConfig struct
function DefaultEventsConfig (line 84) | func DefaultEventsConfig() EventsConfig {
type ResourceAttributeConfig (line 99) | type ResourceAttributeConfig struct
method Unmarshal (line 119) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 132) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 143) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
type MetricsBuilderConfig (line 173) | type MetricsBuilderConfig struct
function DefaultMetricsBuilderConfig (line 178) | func DefaultMetricsBuilderConfig() MetricsBuilderConfig {
type LogsBuilderConfig (line 186) | type LogsBuilderConfig struct
function DefaultLogsBuilderConfig (line 191) | func DefaultLogsBuilderConfig() LogsBuilderConfig {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_config_test.go
function TestMetricsBuilderConfig (line 17) | func TestMetricsBuilderConfig(t *testing.T) {
function loadMetricsBuilderConfig (line 80) | func loadMetricsBuilderConfig(t *testing.T, name string) MetricsBuilderC...
function loadLogsBuilderConfig (line 90) | func loadLogsBuilderConfig(t *testing.T, name string) LogsBuilderConfig {
function TestResourceAttributesConfig (line 100) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 145) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_logs.go
type LogsBuilder (line 16) | type LogsBuilder struct
method AppendLogRecord (line 57) | func (lb *LogsBuilder) AppendLogRecord(lr plog.LogRecord) {
method EmitForResource (line 66) | func (lb *LogsBuilder) EmitForResource(options ...ResourceLogsOption) {
method Emit (line 90) | func (lb *LogsBuilder) Emit(options ...ResourceLogsOption) plog.Logs {
type LogBuilderOption (line 23) | type LogBuilderOption interface
function NewLogsBuilder (line 27) | func NewLogsBuilder(settings receiver.Settings) *LogsBuilder {
type ResourceLogsOption (line 38) | type ResourceLogsOption interface
type resourceLogsOptionFunc (line 42) | type resourceLogsOptionFunc
method apply (line 44) | func (rlof resourceLogsOptionFunc) apply(rl plog.ResourceLogs) {
function WithLogsResource (line 50) | func WithLogsResource(res pcommon.Resource) ResourceLogsOption {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_logs_test.go
function TestLogsBuilderAppendLogRecord (line 18) | func TestLogsBuilderAppendLogRecord(t *testing.T) {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_metrics.go
type AttributeEnumAttr (line 20) | type AttributeEnumAttr
method String (line 30) | func (av AttributeEnumAttr) String() string {
constant _ (line 23) | _ AttributeEnumAttr = iota
constant AttributeEnumAttrRed (line 24) | AttributeEnumAttrRed
constant AttributeEnumAttrGreen (line 25) | AttributeEnumAttrGreen
constant AttributeEnumAttrBlue (line 26) | AttributeEnumAttrBlue
type metricsInfo (line 67) | type metricsInfo struct
type metricInfo (line 75) | type metricInfo struct
type MetricAttributeOption (line 79) | type MetricAttributeOption interface
type metricAttributeOptionFunc (line 83) | type metricAttributeOptionFunc
method apply (line 85) | func (maof metricAttributeOptionFunc) apply(dp pmetric.NumberDataPoint) {
function WithOptionalIntAttrMetricAttribute (line 89) | func WithOptionalIntAttrMetricAttribute(optionalIntAttrAttributeValue in...
function WithOptionalStringAttrMetricAttribute (line 95) | func WithOptionalStringAttrMetricAttribute(optionalStringAttrAttributeVa...
type metricDefaultMetric (line 101) | type metricDefaultMetric struct
method init (line 108) | func (m *metricDefaultMetric) init() {
method recordDataPoint (line 118) | func (m *metricDefaultMetric) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 137) | func (m *metricDefaultMetric) updateCapacity() {
method emit (line 144) | func (m *metricDefaultMetric) emit(metrics pmetric.MetricSlice) {
function newMetricDefaultMetric (line 152) | func newMetricDefaultMetric(cfg MetricConfig) metricDefaultMetric {
type metricDefaultMetricToBeRemoved (line 161) | type metricDefaultMetricToBeRemoved struct
method init (line 168) | func (m *metricDefaultMetricToBeRemoved) init() {
method recordDataPoint (line 177) | func (m *metricDefaultMetricToBeRemoved) recordDataPoint(start pcommon...
method updateCapacity (line 188) | func (m *metricDefaultMetricToBeRemoved) updateCapacity() {
method emit (line 195) | func (m *metricDefaultMetricToBeRemoved) emit(metrics pmetric.MetricSl...
function newMetricDefaultMetricToBeRemoved (line 203) | func newMetricDefaultMetricToBeRemoved(cfg MetricConfig) metricDefaultMe...
type metricMetricInputType (line 212) | type metricMetricInputType struct
method init (line 219) | func (m *metricMetricInputType) init() {
method recordDataPoint (line 229) | func (m *metricMetricInputType) recordDataPoint(start pcommon.Timestam...
method updateCapacity (line 245) | func (m *metricMetricInputType) updateCapacity() {
method emit (line 252) | func (m *metricMetricInputType) emit(metrics pmetric.MetricSlice) {
function newMetricMetricInputType (line 260) | func newMetricMetricInputType(cfg MetricConfig) metricMetricInputType {
type metricOptionalMetric (line 269) | type metricOptionalMetric struct
method init (line 276) | func (m *metricOptionalMetric) init() {
method recordDataPoint (line 284) | func (m *metricOptionalMetric) recordDataPoint(start pcommon.Timestamp...
method updateCapacity (line 301) | func (m *metricOptionalMetric) updateCapacity() {
method emit (line 308) | func (m *metricOptionalMetric) emit(metrics pmetric.MetricSlice) {
function newMetricOptionalMetric (line 316) | func newMetricOptionalMetric(cfg MetricConfig) metricOptionalMetric {
type metricOptionalMetricEmptyUnit (line 325) | type metricOptionalMetricEmptyUnit struct
method init (line 332) | func (m *metricOptionalMetricEmptyUnit) init() {
method recordDataPoint (line 340) | func (m *metricOptionalMetricEmptyUnit) recordDataPoint(start pcommon....
method updateCapacity (line 353) | func (m *metricOptionalMetricEmptyUnit) updateCapacity() {
method emit (line 360) | func (m *metricOptionalMetricEmptyUnit) emit(metrics pmetric.MetricSli...
function newMetricOptionalMetricEmptyUnit (line 368) | func newMetricOptionalMetricEmptyUnit(cfg MetricConfig) metricOptionalMe...
type MetricsBuilder (line 379) | type MetricsBuilder struct
method NewResourceBuilder (line 502) | func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder {
method updateCapacity (line 507) | func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) {
method EmitForResource (line 557) | func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOp...
method Emit (line 593) | func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetr...
method RecordDefaultMetricDataPoint (line 601) | func (mb *MetricsBuilder) RecordDefaultMetricDataPoint(ts pcommon.Time...
method RecordDefaultMetricToBeRemovedDataPoint (line 606) | func (mb *MetricsBuilder) RecordDefaultMetricToBeRemovedDataPoint(ts p...
method RecordMetricInputTypeDataPoint (line 611) | func (mb *MetricsBuilder) RecordMetricInputTypeDataPoint(ts pcommon.Ti...
method RecordOptionalMetricDataPoint (line 621) | func (mb *MetricsBuilder) RecordOptionalMetricDataPoint(ts pcommon.Tim...
method RecordOptionalMetricEmptyUnitDataPoint (line 626) | func (mb *MetricsBuilder) RecordOptionalMetricEmptyUnitDataPoint(ts pc...
method Reset (line 632) | func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) {
type MetricBuilderOption (line 395) | type MetricBuilderOption interface
type metricBuilderOptionFunc (line 399) | type metricBuilderOptionFunc
method apply (line 401) | func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) {
function WithStartTime (line 406) | func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
function NewMetricsBuilder (line 411) | func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.Setti...
type ResourceMetricsOption (line 514) | type ResourceMetricsOption interface
type resourceMetricsOptionFunc (line 518) | type resourceMetricsOptionFunc
method apply (line 520) | func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) {
function WithResource (line 526) | func WithResource(res pcommon.Resource) ResourceMetricsOption {
function WithStartTimeOverride (line 534) | func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_metrics_test.go
type testDataSet (line 17) | type testDataSet
constant testDataSetDefault (line 20) | testDataSetDefault testDataSet = iota
constant testDataSetAll (line 21) | testDataSetAll
constant testDataSetNone (line 22) | testDataSetNone
function TestMetricsBuilder (line 25) | func TestMetricsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetMapResourceAttr (line 25) | func (rb *ResourceBuilder) SetMapResourceAttr(val map[string]any) {
method SetOptionalResourceAttr (line 32) | func (rb *ResourceBuilder) SetOptionalResourceAttr(val string) {
method SetSliceResourceAttr (line 39) | func (rb *ResourceBuilder) SetSliceResourceAttr(val []any) {
method SetStringEnumResourceAttrOne (line 46) | func (rb *ResourceBuilder) SetStringEnumResourceAttrOne() {
method SetStringEnumResourceAttrTwo (line 53) | func (rb *ResourceBuilder) SetStringEnumResourceAttrTwo() {
method SetStringResourceAttr (line 60) | func (rb *ResourceBuilder) SetStringResourceAttr(val string) {
method SetStringResourceAttrDisableWarning (line 67) | func (rb *ResourceBuilder) SetStringResourceAttrDisableWarning(val str...
method SetStringResourceAttrRemoveWarning (line 74) | func (rb *ResourceBuilder) SetStringResourceAttrRemoveWarning(val stri...
method SetStringResourceAttrToBeRemoved (line 81) | func (rb *ResourceBuilder) SetStringResourceAttrToBeRemoved(val string) {
method Emit (line 88) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_status.go
constant ProfilesStability (line 15) | ProfilesStability = component.StabilityLevelDeprecated
constant LogsStability (line 16) | LogsStability = component.StabilityLevelDevelopment
constant TracesStability (line 17) | TracesStability = component.StabilityLevelBeta
constant MetricsStability (line 18) | MetricsStability = component.StabilityLevelStable
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_telemetry.go
function Meter (line 17) | func Meter(settings component.TelemetrySettings) metric.Meter {
function Tracer (line 21) | func Tracer(settings component.TelemetrySettings) trace.Tracer {
type TelemetryBuilder (line 27) | type TelemetryBuilder struct
method RegisterProcessRuntimeTotalAllocBytesCallback (line 50) | func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalAllocBytes...
method RegisterQueueLengthCallback (line 65) | func (builder *TelemetryBuilder) RegisterQueueLengthCallback(cb metric...
method Shutdown (line 90) | func (builder *TelemetryBuilder) Shutdown() {
type TelemetryBuilderOption (line 39) | type TelemetryBuilderOption interface
type telemetryBuilderOptionFunc (line 43) | type telemetryBuilderOptionFunc
method apply (line 45) | func (tbof telemetryBuilderOptionFunc) apply(mb *TelemetryBuilder) {
type observerInt64 (line 79) | type observerInt64 struct
method Observe (line 85) | func (oi *observerInt64) Observe(value int64, opts ...metric.ObserveOp...
function NewTelemetryBuilder (line 100) | func NewTelemetryBuilder(settings component.TelemetrySettings, options ....
FILE: cmd/mdatagen/internal/samplefactoryreceiver/internal/metadata/generated_telemetry_test.go
type mockMeter (line 20) | type mockMeter struct
type mockMeterProvider (line 24) | type mockMeterProvider struct
method Meter (line 28) | func (m mockMeterProvider) Meter(name string, opts ...metric.MeterOpti...
type mockTracer (line 32) | type mockTracer struct
type mockTracerProvider (line 37) | type mockTracerProvider struct
method Tracer (line 41) | func (m mockTracerProvider) Tracer(name string, opts ...trace.TracerOp...
function TestProviders (line 45) | func TestProviders(t *testing.T) {
function TestNewTelemetryBuilder (line 66) | func TestNewTelemetryBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleprocessor/factory.go
function NewFactory (line 22) | func NewFactory() processor.Factory {
function createTracesProcessor (line 33) | func createTracesProcessor(context.Context, processor.Settings, componen...
function createMetricsProcessor (line 37) | func createMetricsProcessor(context.Context, processor.Settings, compone...
function createLogsProcessor (line 41) | func createLogsProcessor(context.Context, processor.Settings, component....
function createProfilesProcessor (line 45) | func createProfilesProcessor(context.Context, processor.Settings, compon...
type nopProcessor (line 51) | type nopProcessor struct
method ConsumeTraces (line 56) | func (n nopProcessor) ConsumeTraces(context.Context, ptrace.Traces) er...
method ConsumeLogs (line 60) | func (n nopProcessor) ConsumeLogs(context.Context, plog.Logs) error {
method Capabilities (line 64) | func (n nopProcessor) Capabilities() consumer.Capabilities {
method ConsumeMetrics (line 68) | func (n nopProcessor) ConsumeMetrics(context.Context, pmetric.Metrics)...
method ConsumeProfiles (line 72) | func (n nopProcessor) ConsumeProfiles(context.Context, pprofile.Profil...
FILE: cmd/mdatagen/internal/sampleprocessor/generated_component_test.go
function TestComponentFactoryType (line 28) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 32) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 36) | func TestComponentLifecycle(t *testing.T) {
function generateLifecycleTestLogs (line 128) | func generateLifecycleTestLogs() plog.Logs {
function generateLifecycleTestMetrics (line 138) | func generateLifecycleTestMetrics() pmetric.Metrics {
function generateLifecycleTestTraces (line 151) | func generateLifecycleTestTraces() ptrace.Traces {
type mdatagenNopHost (line 165) | type mdatagenNopHost struct
method GetExtensions (line 171) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 175) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 167) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/sampleprocessor/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/sampleprocessor/internal/metadata/generated_config.go
type ResourceAttributeConfig (line 10) | type ResourceAttributeConfig struct
method Unmarshal (line 16) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 29) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 40) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
FILE: cmd/mdatagen/internal/sampleprocessor/internal/metadata/generated_config_test.go
function TestResourceAttributesConfig (line 16) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 61) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/sampleprocessor/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetMapResourceAttr (line 25) | func (rb *ResourceBuilder) SetMapResourceAttr(val map[string]any) {
method SetOptionalResourceAttr (line 32) | func (rb *ResourceBuilder) SetOptionalResourceAttr(val string) {
method SetSliceResourceAttr (line 39) | func (rb *ResourceBuilder) SetSliceResourceAttr(val []any) {
method SetStringEnumResourceAttrOne (line 46) | func (rb *ResourceBuilder) SetStringEnumResourceAttrOne() {
method SetStringEnumResourceAttrTwo (line 53) | func (rb *ResourceBuilder) SetStringEnumResourceAttrTwo() {
method SetStringResourceAttr (line 60) | func (rb *ResourceBuilder) SetStringResourceAttr(val string) {
method SetStringResourceAttrDisableWarning (line 67) | func (rb *ResourceBuilder) SetStringResourceAttrDisableWarning(val str...
method SetStringResourceAttrRemoveWarning (line 74) | func (rb *ResourceBuilder) SetStringResourceAttrRemoveWarning(val stri...
method SetStringResourceAttrToBeRemoved (line 81) | func (rb *ResourceBuilder) SetStringResourceAttrToBeRemoved(val string) {
method Emit (line 88) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/sampleprocessor/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/sampleprocessor/internal/metadata/generated_status.go
constant LogsStability (line 15) | LogsStability = component.StabilityLevelDevelopment
constant ProfilesStability (line 16) | ProfilesStability = component.StabilityLevelDevelopment
constant TracesStability (line 17) | TracesStability = component.StabilityLevelBeta
constant MetricsStability (line 18) | MetricsStability = component.StabilityLevelStable
FILE: cmd/mdatagen/internal/samplereceiver/factory.go
function NewFactory (line 20) | func NewFactory() xreceiver.Factory {
function createTraces (line 31) | func createTraces(context.Context, receiver.Settings, component.Config, ...
function createMetrics (line 35) | func createMetrics(ctx context.Context, set receiver.Settings, _ compone...
function createLogs (line 52) | func createLogs(context.Context, receiver.Settings, component.Config, co...
function createProfiles (line 56) | func createProfiles(context.Context, receiver.Settings, component.Config...
type nopReceiver (line 62) | type nopReceiver struct
method initOptionalMetric (line 67) | func (r nopReceiver) initOptionalMetric() {
method Shutdown (line 75) | func (r nopReceiver) Shutdown(context.Context) error {
FILE: cmd/mdatagen/internal/samplereceiver/generated_component_test.go
function TestComponentFactoryType (line 23) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 27) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 31) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 99) | type mdatagenNopHost struct
method GetExtensions (line 105) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 109) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 101) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/samplereceiver/generated_config.go
type Config (line 12) | type Config struct
FILE: cmd/mdatagen/internal/samplereceiver/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_config.go
type DefaultMetricMetricAttributeKey (line 14) | type DefaultMetricMetricAttributeKey
constant DefaultMetricMetricAttributeKeyStringAttr (line 17) | DefaultMetricMetricAttributeKeyStringAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyOverriddenIntAttr (line 18) | DefaultMetricMetricAttributeKeyOverriddenIntAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyEnumAttr (line 19) | DefaultMetricMetricAttributeKeyEnumAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeySliceAttr (line 20) | DefaultMetricMetricAttributeKeySliceAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyMapAttr (line 21) | DefaultMetricMetricAttributeKeyMapAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyConditionalIntAttr (line 22) | DefaultMetricMetricAttributeKeyConditionalIntAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyConditionalStringAttr (line 23) | DefaultMetricMetricAttributeKeyConditionalStringAttr DefaultMetricMetric...
constant DefaultMetricMetricAttributeKeyOptInBoolAttr (line 24) | DefaultMetricMetricAttributeKeyOptInBoolAttr DefaultMetricMetric...
type DefaultMetricMetricConfig (line 28) | type DefaultMetricMetricConfig struct
method Unmarshal (line 36) | func (ms *DefaultMetricMetricConfig) Unmarshal(parser *confmap.Conf) e...
method Validate (line 50) | func (ms *DefaultMetricMetricConfig) Validate() error {
type DefaultMetricToBeRemovedMetricConfig (line 69) | type DefaultMetricToBeRemovedMetricConfig struct
method Unmarshal (line 74) | func (ms *DefaultMetricToBeRemovedMetricConfig) Unmarshal(parser *conf...
type MetricInputTypeMetricAttributeKey (line 89) | type MetricInputTypeMetricAttributeKey
constant MetricInputTypeMetricAttributeKeyStringAttr (line 92) | MetricInputTypeMetricAttributeKeyStringAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyOverriddenIntAttr (line 93) | MetricInputTypeMetricAttributeKeyOverriddenIntAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyEnumAttr (line 94) | MetricInputTypeMetricAttributeKeyEnumAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeySliceAttr (line 95) | MetricInputTypeMetricAttributeKeySliceAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyMapAttr (line 96) | MetricInputTypeMetricAttributeKeyMapAttr MetricInputTypeMetric...
type MetricInputTypeMetricConfig (line 100) | type MetricInputTypeMetricConfig struct
method Unmarshal (line 108) | func (ms *MetricInputTypeMetricConfig) Unmarshal(parser *confmap.Conf)...
method Validate (line 122) | func (ms *MetricInputTypeMetricConfig) Validate() error {
type OptionalMetricMetricAttributeKey (line 141) | type OptionalMetricMetricAttributeKey
constant OptionalMetricMetricAttributeKeyStringAttr (line 144) | OptionalMetricMetricAttributeKeyStringAttr OptionalMetricMetr...
constant OptionalMetricMetricAttributeKeyBooleanAttr (line 145) | OptionalMetricMetricAttributeKeyBooleanAttr OptionalMetricMetr...
constant OptionalMetricMetricAttributeKeyBooleanAttr2 (line 146) | OptionalMetricMetricAttributeKeyBooleanAttr2 OptionalMetricMetr...
constant OptionalMetricMetricAttributeKeyConditionalStringAttr (line 147) | OptionalMetricMetricAttributeKeyConditionalStringAttr OptionalMetricMetr...
type OptionalMetricMetricConfig (line 151) | type OptionalMetricMetricConfig struct
method Unmarshal (line 159) | func (ms *OptionalMetricMetricConfig) Unmarshal(parser *confmap.Conf) ...
method Validate (line 173) | func (ms *OptionalMetricMetricConfig) Validate() error {
type OptionalMetricEmptyUnitMetricAttributeKey (line 192) | type OptionalMetricEmptyUnitMetricAttributeKey
constant OptionalMetricEmptyUnitMetricAttributeKeyStringAttr (line 195) | OptionalMetricEmptyUnitMetricAttributeKeyStringAttr OptionalMetricEmpty...
constant OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr (line 196) | OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr OptionalMetricEmpty...
type OptionalMetricEmptyUnitMetricConfig (line 200) | type OptionalMetricEmptyUnitMetricConfig struct
method Unmarshal (line 208) | func (ms *OptionalMetricEmptyUnitMetricConfig) Unmarshal(parser *confm...
method Validate (line 222) | func (ms *OptionalMetricEmptyUnitMetricConfig) Validate() error {
type ReaggregateMetricMetricAttributeKey (line 241) | type ReaggregateMetricMetricAttributeKey
constant ReaggregateMetricMetricAttributeKeyStringAttr (line 244) | ReaggregateMetricMetricAttributeKeyStringAttr ReaggregateMetricMetricAt...
constant ReaggregateMetricMetricAttributeKeyBooleanAttr (line 245) | ReaggregateMetricMetricAttributeKeyBooleanAttr ReaggregateMetricMetricAt...
type ReaggregateMetricMetricConfig (line 249) | type ReaggregateMetricMetricConfig struct
method Unmarshal (line 257) | func (ms *ReaggregateMetricMetricConfig) Unmarshal(parser *confmap.Con...
method Validate (line 271) | func (ms *ReaggregateMetricMetricConfig) Validate() error {
type ReaggregateMetricWithRequiredMetricAttributeKey (line 290) | type ReaggregateMetricWithRequiredMetricAttributeKey
constant ReaggregateMetricWithRequiredMetricAttributeKeyRequiredStringAttr (line 293) | ReaggregateMetricWithRequiredMetricAttributeKeyRequiredStringAttr Reaggr...
constant ReaggregateMetricWithRequiredMetricAttributeKeyStringAttr (line 294) | ReaggregateMetricWithRequiredMetricAttributeKeyStringAttr Reaggr...
constant ReaggregateMetricWithRequiredMetricAttributeKeyBooleanAttr (line 295) | ReaggregateMetricWithRequiredMetricAttributeKeyBooleanAttr Reaggr...
type ReaggregateMetricWithRequiredMetricConfig (line 299) | type ReaggregateMetricWithRequiredMetricConfig struct
method Unmarshal (line 307) | func (ms *ReaggregateMetricWithRequiredMetricConfig) Unmarshal(parser ...
method Validate (line 321) | func (ms *ReaggregateMetricWithRequiredMetricConfig) Validate() error {
type SystemCPUTimeMetricConfig (line 343) | type SystemCPUTimeMetricConfig struct
method Unmarshal (line 348) | func (ms *SystemCPUTimeMetricConfig) Unmarshal(parser *confmap.Conf) e...
type MetricsConfig (line 363) | type MetricsConfig struct
function DefaultMetricsConfig (line 374) | func DefaultMetricsConfig() MetricsConfig {
type EventConfig (line 416) | type EventConfig struct
method Unmarshal (line 422) | func (ec *EventConfig) Unmarshal(parser *confmap.Conf) error {
type EventsConfig (line 435) | type EventsConfig struct
function DefaultEventsConfig (line 441) | func DefaultEventsConfig() EventsConfig {
type ResourceAttributeConfig (line 456) | type ResourceAttributeConfig struct
method Unmarshal (line 476) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 489) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 500) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
type MetricsBuilderConfig (line 530) | type MetricsBuilderConfig struct
function DefaultMetricsBuilderConfig (line 535) | func DefaultMetricsBuilderConfig() MetricsBuilderConfig {
type LogsBuilderConfig (line 543) | type LogsBuilderConfig struct
function DefaultLogsBuilderConfig (line 548) | func DefaultLogsBuilderConfig() LogsBuilderConfig {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_config_test.go
function TestMetricsBuilderConfig (line 17) | func TestMetricsBuilderConfig(t *testing.T) {
function loadMetricsBuilderConfig (line 142) | func loadMetricsBuilderConfig(t *testing.T, name string) MetricsBuilderC...
function loadLogsBuilderConfig (line 152) | func loadLogsBuilderConfig(t *testing.T, name string) LogsBuilderConfig {
function TestResourceAttributesConfig (line 162) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 207) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_logs.go
type EventAttributeOption (line 18) | type EventAttributeOption interface
type eventAttributeOptionFunc (line 22) | type eventAttributeOptionFunc
method apply (line 24) | func (eaof eventAttributeOptionFunc) apply(lr plog.LogRecord) {
function WithConditionalIntAttrEventAttribute (line 28) | func WithConditionalIntAttrEventAttribute(conditionalIntAttrAttributeVal...
function WithConditionalStringAttrEventAttribute (line 34) | func WithConditionalStringAttrEventAttribute(conditionalStringAttrAttrib...
type eventDefaultEvent (line 40) | type eventDefaultEvent struct
method recordEvent (line 45) | func (e *eventDefaultEvent) recordEvent(ctx context.Context, timestamp...
method emit (line 70) | func (e *eventDefaultEvent) emit(lrs plog.LogRecordSlice) {
function newEventDefaultEvent (line 76) | func newEventDefaultEvent(cfg EventConfig) eventDefaultEvent {
type eventDefaultEventToBeRemoved (line 84) | type eventDefaultEventToBeRemoved struct
method recordEvent (line 89) | func (e *eventDefaultEventToBeRemoved) recordEvent(ctx context.Context...
method emit (line 110) | func (e *eventDefaultEventToBeRemoved) emit(lrs plog.LogRecordSlice) {
function newEventDefaultEventToBeRemoved (line 116) | func newEventDefaultEventToBeRemoved(cfg EventConfig) eventDefaultEventT...
type eventDefaultEventToBeRenamed (line 124) | type eventDefaultEventToBeRenamed struct
method recordEvent (line 129) | func (e *eventDefaultEventToBeRenamed) recordEvent(ctx context.Context...
method emit (line 151) | func (e *eventDefaultEventToBeRenamed) emit(lrs plog.LogRecordSlice) {
function newEventDefaultEventToBeRenamed (line 157) | func newEventDefaultEventToBeRenamed(cfg EventConfig) eventDefaultEventT...
type LogsBuilder (line 167) | type LogsBuilder struct
method NewResourceBuilder (line 267) | func (lb *LogsBuilder) NewResourceBuilder() *ResourceBuilder {
method AppendLogRecord (line 291) | func (lb *LogsBuilder) AppendLogRecord(lr plog.LogRecord) {
method EmitForResource (line 300) | func (lb *LogsBuilder) EmitForResource(options ...ResourceLogsOption) {
method Emit (line 338) | func (lb *LogsBuilder) Emit(options ...ResourceLogsOption) plog.Logs {
method RecordDefaultEventEvent (line 346) | func (lb *LogsBuilder) RecordDefaultEventEvent(ctx context.Context, ti...
method RecordDefaultEventToBeRemovedEvent (line 351) | func (lb *LogsBuilder) RecordDefaultEventToBeRemovedEvent(ctx context....
method RecordDefaultEventToBeRenamedEvent (line 356) | func (lb *LogsBuilder) RecordDefaultEventToBeRenamedEvent(ctx context....
type LogBuilderOption (line 180) | type LogBuilderOption interface
function NewLogsBuilder (line 184) | func NewLogsBuilder(lbc LogsBuilderConfig, settings receiver.Settings) *...
type ResourceLogsOption (line 272) | type ResourceLogsOption interface
type resourceLogsOptionFunc (line 276) | type resourceLogsOptionFunc
method apply (line 278) | func (rlof resourceLogsOptionFunc) apply(rl plog.ResourceLogs) {
function WithLogsResource (line 284) | func WithLogsResource(res pcommon.Resource) ResourceLogsOption {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_logs_test.go
type eventsTestDataSet (line 20) | type eventsTestDataSet
constant eventTestDataSetDefault (line 23) | eventTestDataSetDefault eventsTestDataSet = iota
constant eventTestDataSetAll (line 24) | eventTestDataSetAll
constant eventTestDataSetNone (line 25) | eventTestDataSetNone
function TestLogsBuilderAppendLogRecord (line 28) | func TestLogsBuilderAppendLogRecord(t *testing.T) {
function TestLogsBuilder (line 86) | func TestLogsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_metrics.go
constant AggregationStrategySum (line 21) | AggregationStrategySum = "sum"
constant AggregationStrategyAvg (line 22) | AggregationStrategyAvg = "avg"
constant AggregationStrategyMin (line 23) | AggregationStrategyMin = "min"
constant AggregationStrategyMax (line 24) | AggregationStrategyMax = "max"
type AttributeEnumAttr (line 28) | type AttributeEnumAttr
method String (line 38) | func (av AttributeEnumAttr) String() string {
constant _ (line 31) | _ AttributeEnumAttr = iota
constant AttributeEnumAttrRed (line 32) | AttributeEnumAttrRed
constant AttributeEnumAttrGreen (line 33) | AttributeEnumAttrGreen
constant AttributeEnumAttrBlue (line 34) | AttributeEnumAttrBlue
type metricsInfo (line 84) | type metricsInfo struct
type metricInfo (line 95) | type metricInfo struct
type MetricAttributeOption (line 99) | type MetricAttributeOption interface
type metricAttributeOptionFunc (line 103) | type metricAttributeOptionFunc
method apply (line 105) | func (maof metricAttributeOptionFunc) apply(dp pmetric.NumberDataPoint) {
function WithConditionalIntAttrMetricAttribute (line 109) | func WithConditionalIntAttrMetricAttribute(conditionalIntAttrAttributeVa...
function WithConditionalStringAttrMetricAttribute (line 115) | func WithConditionalStringAttrMetricAttribute(conditionalStringAttrAttri...
type metricDefaultMetric (line 121) | type metricDefaultMetric struct
method init (line 129) | func (m *metricDefaultMetric) init() {
method recordDataPoint (line 140) | func (m *metricDefaultMetric) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 200) | func (m *metricDefaultMetric) updateCapacity() {
method emit (line 207) | func (m *metricDefaultMetric) emit(metrics pmetric.MetricSlice) {
function newMetricDefaultMetric (line 220) | func newMetricDefaultMetric(cfg DefaultMetricMetricConfig) metricDefault...
type metricDefaultMetricToBeRemoved (line 230) | type metricDefaultMetricToBeRemoved struct
method init (line 237) | func (m *metricDefaultMetricToBeRemoved) init() {
method recordDataPoint (line 246) | func (m *metricDefaultMetricToBeRemoved) recordDataPoint(start pcommon...
method updateCapacity (line 257) | func (m *metricDefaultMetricToBeRemoved) updateCapacity() {
method emit (line 264) | func (m *metricDefaultMetricToBeRemoved) emit(metrics pmetric.MetricSl...
function newMetricDefaultMetricToBeRemoved (line 272) | func newMetricDefaultMetricToBeRemoved(cfg DefaultMetricToBeRemovedMetri...
type metricMetricInputType (line 282) | type metricMetricInputType struct
method init (line 290) | func (m *metricMetricInputType) init() {
method recordDataPoint (line 301) | func (m *metricMetricInputType) recordDataPoint(start pcommon.Timestam...
method updateCapacity (line 355) | func (m *metricMetricInputType) updateCapacity() {
method emit (line 362) | func (m *metricMetricInputType) emit(metrics pmetric.MetricSlice) {
function newMetricMetricInputType (line 375) | func newMetricMetricInputType(cfg MetricInputTypeMetricConfig) metricMet...
type metricOptionalMetric (line 385) | type metricOptionalMetric struct
method init (line 393) | func (m *metricOptionalMetric) init() {
method recordDataPoint (line 402) | func (m *metricOptionalMetric) recordDataPoint(start pcommon.Timestamp...
method updateCapacity (line 453) | func (m *metricOptionalMetric) updateCapacity() {
method emit (line 460) | func (m *metricOptionalMetric) emit(metrics pmetric.MetricSlice) {
function newMetricOptionalMetric (line 473) | func newMetricOptionalMetric(cfg OptionalMetricMetricConfig) metricOptio...
type metricOptionalMetricEmptyUnit (line 483) | type metricOptionalMetricEmptyUnit struct
method init (line 491) | func (m *metricOptionalMetricEmptyUnit) init() {
method recordDataPoint (line 500) | func (m *metricOptionalMetricEmptyUnit) recordDataPoint(start pcommon....
method updateCapacity (line 545) | func (m *metricOptionalMetricEmptyUnit) updateCapacity() {
method emit (line 552) | func (m *metricOptionalMetricEmptyUnit) emit(metrics pmetric.MetricSli...
function newMetricOptionalMetricEmptyUnit (line 565) | func newMetricOptionalMetricEmptyUnit(cfg OptionalMetricEmptyUnitMetricC...
type metricReaggregateMetric (line 575) | type metricReaggregateMetric struct
method init (line 583) | func (m *metricReaggregateMetric) init() {
method recordDataPoint (line 592) | func (m *metricReaggregateMetric) recordDataPoint(start pcommon.Timest...
method updateCapacity (line 637) | func (m *metricReaggregateMetric) updateCapacity() {
method emit (line 644) | func (m *metricReaggregateMetric) emit(metrics pmetric.MetricSlice) {
function newMetricReaggregateMetric (line 657) | func newMetricReaggregateMetric(cfg ReaggregateMetricMetricConfig) metri...
type metricReaggregateMetricWithRequired (line 667) | type metricReaggregateMetricWithRequired struct
method init (line 675) | func (m *metricReaggregateMetricWithRequired) init() {
method recordDataPoint (line 684) | func (m *metricReaggregateMetricWithRequired) recordDataPoint(start pc...
method updateCapacity (line 732) | func (m *metricReaggregateMetricWithRequired) updateCapacity() {
method emit (line 739) | func (m *metricReaggregateMetricWithRequired) emit(metrics pmetric.Met...
function newMetricReaggregateMetricWithRequired (line 752) | func newMetricReaggregateMetricWithRequired(cfg ReaggregateMetricWithReq...
type metricSystemCPUTime (line 762) | type metricSystemCPUTime struct
method init (line 769) | func (m *metricSystemCPUTime) init() {
method recordDataPoint (line 778) | func (m *metricSystemCPUTime) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 789) | func (m *metricSystemCPUTime) updateCapacity() {
method emit (line 796) | func (m *metricSystemCPUTime) emit(metrics pmetric.MetricSlice) {
function newMetricSystemCPUTime (line 804) | func newMetricSystemCPUTime(cfg SystemCPUTimeMetricConfig) metricSystemC...
type MetricsBuilder (line 816) | type MetricsBuilder struct
method NewResourceBuilder (line 945) | func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder {
method updateCapacity (line 950) | func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) {
method EmitForResource (line 1000) | func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOp...
method Emit (line 1039) | func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetr...
method RecordDefaultMetricDataPoint (line 1047) | func (mb *MetricsBuilder) RecordDefaultMetricDataPoint(ts pcommon.Time...
method RecordDefaultMetricToBeRemovedDataPoint (line 1052) | func (mb *MetricsBuilder) RecordDefaultMetricToBeRemovedDataPoint(ts p...
method RecordMetricInputTypeDataPoint (line 1057) | func (mb *MetricsBuilder) RecordMetricInputTypeDataPoint(ts pcommon.Ti...
method RecordOptionalMetricDataPoint (line 1067) | func (mb *MetricsBuilder) RecordOptionalMetricDataPoint(ts pcommon.Tim...
method RecordOptionalMetricEmptyUnitDataPoint (line 1072) | func (mb *MetricsBuilder) RecordOptionalMetricEmptyUnitDataPoint(ts pc...
method RecordReaggregateMetricDataPoint (line 1077) | func (mb *MetricsBuilder) RecordReaggregateMetricDataPoint(ts pcommon....
method RecordReaggregateMetricWithRequiredDataPoint (line 1082) | func (mb *MetricsBuilder) RecordReaggregateMetricWithRequiredDataPoint...
method RecordSystemCPUTimeDataPoint (line 1087) | func (mb *MetricsBuilder) RecordSystemCPUTimeDataPoint(ts pcommon.Time...
method Reset (line 1093) | func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) {
type MetricBuilderOption (line 835) | type MetricBuilderOption interface
type metricBuilderOptionFunc (line 839) | type metricBuilderOptionFunc
method apply (line 841) | func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) {
function WithStartTime (line 846) | func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
function NewMetricsBuilder (line 851) | func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.Setti...
type ResourceMetricsOption (line 957) | type ResourceMetricsOption interface
type resourceMetricsOptionFunc (line 961) | type resourceMetricsOptionFunc
method apply (line 963) | func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) {
function WithResource (line 969) | func WithResource(res pcommon.Resource) ResourceMetricsOption {
function WithStartTimeOverride (line 977) | func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_metrics_test.go
type testDataSet (line 17) | type testDataSet
constant testDataSetDefault (line 20) | testDataSetDefault testDataSet = iota
constant testDataSetAll (line 21) | testDataSetAll
constant testDataSetNone (line 22) | testDataSetNone
constant testDataSetReag (line 23) | testDataSetReag
function TestMetricsBuilder (line 26) | func TestMetricsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetMapResourceAttr (line 25) | func (rb *ResourceBuilder) SetMapResourceAttr(val map[string]any) {
method SetOptionalResourceAttr (line 32) | func (rb *ResourceBuilder) SetOptionalResourceAttr(val string) {
method SetSliceResourceAttr (line 39) | func (rb *ResourceBuilder) SetSliceResourceAttr(val []any) {
method SetStringEnumResourceAttrOne (line 46) | func (rb *ResourceBuilder) SetStringEnumResourceAttrOne() {
method SetStringEnumResourceAttrTwo (line 53) | func (rb *ResourceBuilder) SetStringEnumResourceAttrTwo() {
method SetStringResourceAttr (line 60) | func (rb *ResourceBuilder) SetStringResourceAttr(val string) {
method SetStringResourceAttrDisableWarning (line 67) | func (rb *ResourceBuilder) SetStringResourceAttrDisableWarning(val str...
method SetStringResourceAttrRemoveWarning (line 74) | func (rb *ResourceBuilder) SetStringResourceAttrRemoveWarning(val stri...
method SetStringResourceAttrToBeRemoved (line 81) | func (rb *ResourceBuilder) SetStringResourceAttrToBeRemoved(val string) {
method Emit (line 88) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_status.go
constant ProfilesStability (line 15) | ProfilesStability = component.StabilityLevelDeprecated
constant LogsStability (line 16) | LogsStability = component.StabilityLevelDevelopment
constant TracesStability (line 17) | TracesStability = component.StabilityLevelBeta
constant MetricsStability (line 18) | MetricsStability = component.StabilityLevelStable
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go
function Meter (line 17) | func Meter(settings component.TelemetrySettings) metric.Meter {
function Tracer (line 21) | func Tracer(settings component.TelemetrySettings) trace.Tracer {
type TelemetryBuilder (line 27) | type TelemetryBuilder struct
method RegisterProcessRuntimeTotalAllocBytesCallback (line 50) | func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalAllocBytes...
method RegisterQueueLengthCallback (line 65) | func (builder *TelemetryBuilder) RegisterQueueLengthCallback(cb metric...
method Shutdown (line 90) | func (builder *TelemetryBuilder) Shutdown() {
type TelemetryBuilderOption (line 39) | type TelemetryBuilderOption interface
type telemetryBuilderOptionFunc (line 43) | type telemetryBuilderOptionFunc
method apply (line 45) | func (tbof telemetryBuilderOptionFunc) apply(mb *TelemetryBuilder) {
type observerInt64 (line 79) | type observerInt64 struct
method Observe (line 85) | func (oi *observerInt64) Observe(value int64, opts ...metric.ObserveOp...
function NewTelemetryBuilder (line 100) | func NewTelemetryBuilder(settings component.TelemetrySettings, options ....
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry_test.go
type mockMeter (line 20) | type mockMeter struct
type mockMeterProvider (line 24) | type mockMeterProvider struct
method Meter (line 28) | func (m mockMeterProvider) Meter(name string, opts ...metric.MeterOpti...
type mockTracer (line 32) | type mockTracer struct
type mockTracerProvider (line 37) | type mockTracerProvider struct
method Tracer (line 41) | func (m mockTracerProvider) Tracer(name string, opts ...trace.TracerOp...
function TestProviders (line 45) | func TestProviders(t *testing.T) {
function TestNewTelemetryBuilder (line 66) | func TestNewTelemetryBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest.go
function NewSettings (line 18) | func NewSettings(tt *componenttest.Telemetry) receiver.Settings {
function AssertEqualBatchSizeTriggerSend (line 25) | func AssertEqualBatchSizeTriggerSend(t *testing.T, tt *componenttest.Tel...
function AssertEqualProcessRuntimeTotalAllocBytes (line 41) | func AssertEqualProcessRuntimeTotalAllocBytes(t *testing.T, tt *componen...
function AssertEqualQueueCapacity (line 57) | func AssertEqualQueueCapacity(t *testing.T, tt *componenttest.Telemetry,...
function AssertEqualQueueLength (line 71) | func AssertEqualQueueLength(t *testing.T, tt *componenttest.Telemetry, d...
function AssertEqualRequestDuration (line 85) | func AssertEqualRequestDuration(t *testing.T, tt *componenttest.Telemetr...
FILE: cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest_test.go
function TestSetupTelemetry (line 18) | func TestSetupTelemetry(t *testing.T) {
FILE: cmd/mdatagen/internal/samplereceiver/metrics_test.go
function TestGeneratedMetrics (line 22) | func TestGeneratedMetrics(t *testing.T) {
function TestComponentTelemetry (line 28) | func TestComponentTelemetry(t *testing.T) {
FILE: cmd/mdatagen/internal/samplescraper/factory.go
function NewFactory (line 19) | func NewFactory() scraper.Factory {
function createMetrics (line 29) | func createMetrics(context.Context, scraper.Settings, component.Config) ...
function createLogs (line 35) | func createLogs(context.Context, scraper.Settings, component.Config) (sc...
function createProfiles (line 39) | func createProfiles(context.Context, scraper.Settings, component.Config)...
FILE: cmd/mdatagen/internal/samplescraper/generated_component_test.go
function TestComponentFactoryType (line 22) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 26) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 30) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 91) | type mdatagenNopHost struct
method GetExtensions (line 97) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 101) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 93) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/samplescraper/generated_config.go
type TargetsItem (line 13) | type TargetsItem struct
type Config (line 19) | type Config struct
FILE: cmd/mdatagen/internal/samplescraper/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_config.go
type DefaultMetricMetricAttributeKey (line 13) | type DefaultMetricMetricAttributeKey
constant DefaultMetricMetricAttributeKeyStringAttr (line 16) | DefaultMetricMetricAttributeKeyStringAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyOverriddenIntAttr (line 17) | DefaultMetricMetricAttributeKeyOverriddenIntAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyEnumAttr (line 18) | DefaultMetricMetricAttributeKeyEnumAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeySliceAttr (line 19) | DefaultMetricMetricAttributeKeySliceAttr DefaultMetricMetricAttr...
constant DefaultMetricMetricAttributeKeyMapAttr (line 20) | DefaultMetricMetricAttributeKeyMapAttr DefaultMetricMetricAttr...
type DefaultMetricMetricConfig (line 24) | type DefaultMetricMetricConfig struct
method Unmarshal (line 32) | func (ms *DefaultMetricMetricConfig) Unmarshal(parser *confmap.Conf) e...
method Validate (line 46) | func (ms *DefaultMetricMetricConfig) Validate() error {
type DefaultMetricToBeRemovedMetricConfig (line 65) | type DefaultMetricToBeRemovedMetricConfig struct
method Unmarshal (line 70) | func (ms *DefaultMetricToBeRemovedMetricConfig) Unmarshal(parser *conf...
type MetricInputTypeMetricAttributeKey (line 85) | type MetricInputTypeMetricAttributeKey
constant MetricInputTypeMetricAttributeKeyStringAttr (line 88) | MetricInputTypeMetricAttributeKeyStringAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyOverriddenIntAttr (line 89) | MetricInputTypeMetricAttributeKeyOverriddenIntAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyEnumAttr (line 90) | MetricInputTypeMetricAttributeKeyEnumAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeySliceAttr (line 91) | MetricInputTypeMetricAttributeKeySliceAttr MetricInputTypeMetric...
constant MetricInputTypeMetricAttributeKeyMapAttr (line 92) | MetricInputTypeMetricAttributeKeyMapAttr MetricInputTypeMetric...
type MetricInputTypeMetricConfig (line 96) | type MetricInputTypeMetricConfig struct
method Unmarshal (line 104) | func (ms *MetricInputTypeMetricConfig) Unmarshal(parser *confmap.Conf)...
method Validate (line 118) | func (ms *MetricInputTypeMetricConfig) Validate() error {
type OptionalMetricMetricAttributeKey (line 137) | type OptionalMetricMetricAttributeKey
constant OptionalMetricMetricAttributeKeyStringAttr (line 140) | OptionalMetricMetricAttributeKeyStringAttr OptionalMetricMetricAttribu...
constant OptionalMetricMetricAttributeKeyBooleanAttr (line 141) | OptionalMetricMetricAttributeKeyBooleanAttr OptionalMetricMetricAttribu...
constant OptionalMetricMetricAttributeKeyBooleanAttr2 (line 142) | OptionalMetricMetricAttributeKeyBooleanAttr2 OptionalMetricMetricAttribu...
type OptionalMetricMetricConfig (line 146) | type OptionalMetricMetricConfig struct
method Unmarshal (line 154) | func (ms *OptionalMetricMetricConfig) Unmarshal(parser *confmap.Conf) ...
method Validate (line 168) | func (ms *OptionalMetricMetricConfig) Validate() error {
type OptionalMetricEmptyUnitMetricAttributeKey (line 187) | type OptionalMetricEmptyUnitMetricAttributeKey
constant OptionalMetricEmptyUnitMetricAttributeKeyStringAttr (line 190) | OptionalMetricEmptyUnitMetricAttributeKeyStringAttr OptionalMetricEmpty...
constant OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr (line 191) | OptionalMetricEmptyUnitMetricAttributeKeyBooleanAttr OptionalMetricEmpty...
type OptionalMetricEmptyUnitMetricConfig (line 195) | type OptionalMetricEmptyUnitMetricConfig struct
method Unmarshal (line 203) | func (ms *OptionalMetricEmptyUnitMetricConfig) Unmarshal(parser *confm...
method Validate (line 217) | func (ms *OptionalMetricEmptyUnitMetricConfig) Validate() error {
type ReaggregateMetricMetricAttributeKey (line 236) | type ReaggregateMetricMetricAttributeKey
constant ReaggregateMetricMetricAttributeKeyStringAttr (line 239) | ReaggregateMetricMetricAttributeKeyStringAttr ReaggregateMetricMetricAt...
constant ReaggregateMetricMetricAttributeKeyBooleanAttr (line 240) | ReaggregateMetricMetricAttributeKeyBooleanAttr ReaggregateMetricMetricAt...
type ReaggregateMetricMetricConfig (line 244) | type ReaggregateMetricMetricConfig struct
method Unmarshal (line 252) | func (ms *ReaggregateMetricMetricConfig) Unmarshal(parser *confmap.Con...
method Validate (line 266) | func (ms *ReaggregateMetricMetricConfig) Validate() error {
type SystemCPUTimeMetricConfig (line 285) | type SystemCPUTimeMetricConfig struct
method Unmarshal (line 290) | func (ms *SystemCPUTimeMetricConfig) Unmarshal(parser *confmap.Conf) e...
type MetricsConfig (line 305) | type MetricsConfig struct
function DefaultMetricsConfig (line 315) | func DefaultMetricsConfig() MetricsConfig {
type ResourceAttributeConfig (line 352) | type ResourceAttributeConfig struct
method Unmarshal (line 365) | func (rac *ResourceAttributeConfig) Unmarshal(parser *confmap.Conf) er...
type ResourceAttributesConfig (line 378) | type ResourceAttributesConfig struct
function DefaultResourceAttributesConfig (line 389) | func DefaultResourceAttributesConfig() ResourceAttributesConfig {
type MetricsBuilderConfig (line 419) | type MetricsBuilderConfig struct
function DefaultMetricsBuilderConfig (line 424) | func DefaultMetricsBuilderConfig() MetricsBuilderConfig {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_config_test.go
function TestMetricsBuilderConfig (line 17) | func TestMetricsBuilderConfig(t *testing.T) {
function loadMetricsBuilderConfig (line 132) | func loadMetricsBuilderConfig(t *testing.T, name string) MetricsBuilderC...
function TestResourceAttributesConfig (line 142) | func TestResourceAttributesConfig(t *testing.T) {
function loadResourceAttributesConfig (line 187) | func loadResourceAttributesConfig(t *testing.T, name string) ResourceAtt...
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_logs.go
type LogsBuilder (line 16) | type LogsBuilder struct
method NewResourceBuilder (line 38) | func (lb *LogsBuilder) NewResourceBuilder() *ResourceBuilder {
method AppendLogRecord (line 62) | func (lb *LogsBuilder) AppendLogRecord(lr plog.LogRecord) {
method EmitForResource (line 71) | func (lb *LogsBuilder) EmitForResource(options ...ResourceLogsOption) {
method Emit (line 95) | func (lb *LogsBuilder) Emit(options ...ResourceLogsOption) plog.Logs {
type LogBuilderOption (line 23) | type LogBuilderOption interface
function NewLogsBuilder (line 27) | func NewLogsBuilder(settings scraper.Settings) *LogsBuilder {
type ResourceLogsOption (line 43) | type ResourceLogsOption interface
type resourceLogsOptionFunc (line 47) | type resourceLogsOptionFunc
method apply (line 49) | func (rlof resourceLogsOptionFunc) apply(rl plog.ResourceLogs) {
function WithLogsResource (line 55) | func WithLogsResource(res pcommon.Resource) ResourceLogsOption {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_logs_test.go
function TestLogsBuilderAppendLogRecord (line 18) | func TestLogsBuilderAppendLogRecord(t *testing.T) {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_metrics.go
constant AggregationStrategySum (line 21) | AggregationStrategySum = "sum"
constant AggregationStrategyAvg (line 22) | AggregationStrategyAvg = "avg"
constant AggregationStrategyMin (line 23) | AggregationStrategyMin = "min"
constant AggregationStrategyMax (line 24) | AggregationStrategyMax = "max"
type AttributeEnumAttr (line 28) | type AttributeEnumAttr
method String (line 38) | func (av AttributeEnumAttr) String() string {
constant _ (line 31) | _ AttributeEnumAttr = iota
constant AttributeEnumAttrRed (line 32) | AttributeEnumAttrRed
constant AttributeEnumAttrGreen (line 33) | AttributeEnumAttrGreen
constant AttributeEnumAttrBlue (line 34) | AttributeEnumAttrBlue
type metricsInfo (line 81) | type metricsInfo struct
type metricInfo (line 91) | type metricInfo struct
type metricDefaultMetric (line 95) | type metricDefaultMetric struct
method init (line 103) | func (m *metricDefaultMetric) init() {
method recordDataPoint (line 114) | func (m *metricDefaultMetric) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 168) | func (m *metricDefaultMetric) updateCapacity() {
method emit (line 175) | func (m *metricDefaultMetric) emit(metrics pmetric.MetricSlice) {
function newMetricDefaultMetric (line 188) | func newMetricDefaultMetric(cfg DefaultMetricMetricConfig) metricDefault...
type metricDefaultMetricToBeRemoved (line 198) | type metricDefaultMetricToBeRemoved struct
method init (line 205) | func (m *metricDefaultMetricToBeRemoved) init() {
method recordDataPoint (line 214) | func (m *metricDefaultMetricToBeRemoved) recordDataPoint(start pcommon...
method updateCapacity (line 225) | func (m *metricDefaultMetricToBeRemoved) updateCapacity() {
method emit (line 232) | func (m *metricDefaultMetricToBeRemoved) emit(metrics pmetric.MetricSl...
function newMetricDefaultMetricToBeRemoved (line 240) | func newMetricDefaultMetricToBeRemoved(cfg DefaultMetricToBeRemovedMetri...
type metricMetricInputType (line 250) | type metricMetricInputType struct
method init (line 258) | func (m *metricMetricInputType) init() {
method recordDataPoint (line 269) | func (m *metricMetricInputType) recordDataPoint(start pcommon.Timestam...
method updateCapacity (line 323) | func (m *metricMetricInputType) updateCapacity() {
method emit (line 330) | func (m *metricMetricInputType) emit(metrics pmetric.MetricSlice) {
function newMetricMetricInputType (line 343) | func newMetricMetricInputType(cfg MetricInputTypeMetricConfig) metricMet...
type metricOptionalMetric (line 353) | type metricOptionalMetric struct
method init (line 361) | func (m *metricOptionalMetric) init() {
method recordDataPoint (line 370) | func (m *metricOptionalMetric) recordDataPoint(start pcommon.Timestamp...
method updateCapacity (line 418) | func (m *metricOptionalMetric) updateCapacity() {
method emit (line 425) | func (m *metricOptionalMetric) emit(metrics pmetric.MetricSlice) {
function newMetricOptionalMetric (line 438) | func newMetricOptionalMetric(cfg OptionalMetricMetricConfig) metricOptio...
type metricOptionalMetricEmptyUnit (line 448) | type metricOptionalMetricEmptyUnit struct
method init (line 456) | func (m *metricOptionalMetricEmptyUnit) init() {
method recordDataPoint (line 465) | func (m *metricOptionalMetricEmptyUnit) recordDataPoint(start pcommon....
method updateCapacity (line 510) | func (m *metricOptionalMetricEmptyUnit) updateCapacity() {
method emit (line 517) | func (m *metricOptionalMetricEmptyUnit) emit(metrics pmetric.MetricSli...
function newMetricOptionalMetricEmptyUnit (line 530) | func newMetricOptionalMetricEmptyUnit(cfg OptionalMetricEmptyUnitMetricC...
type metricReaggregateMetric (line 540) | type metricReaggregateMetric struct
method init (line 548) | func (m *metricReaggregateMetric) init() {
method recordDataPoint (line 557) | func (m *metricReaggregateMetric) recordDataPoint(start pcommon.Timest...
method updateCapacity (line 602) | func (m *metricReaggregateMetric) updateCapacity() {
method emit (line 609) | func (m *metricReaggregateMetric) emit(metrics pmetric.MetricSlice) {
function newMetricReaggregateMetric (line 622) | func newMetricReaggregateMetric(cfg ReaggregateMetricMetricConfig) metri...
type metricSystemCPUTime (line 632) | type metricSystemCPUTime struct
method init (line 639) | func (m *metricSystemCPUTime) init() {
method recordDataPoint (line 648) | func (m *metricSystemCPUTime) recordDataPoint(start pcommon.Timestamp,...
method updateCapacity (line 659) | func (m *metricSystemCPUTime) updateCapacity() {
method emit (line 666) | func (m *metricSystemCPUTime) emit(metrics pmetric.MetricSlice) {
function newMetricSystemCPUTime (line 674) | func newMetricSystemCPUTime(cfg SystemCPUTimeMetricConfig) metricSystemC...
type MetricsBuilder (line 686) | type MetricsBuilder struct
method NewResourceBuilder (line 813) | func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder {
method updateCapacity (line 818) | func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) {
method EmitForResource (line 868) | func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOp...
method Emit (line 906) | func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetr...
method RecordDefaultMetricDataPoint (line 914) | func (mb *MetricsBuilder) RecordDefaultMetricDataPoint(ts pcommon.Time...
method RecordDefaultMetricToBeRemovedDataPoint (line 919) | func (mb *MetricsBuilder) RecordDefaultMetricToBeRemovedDataPoint(ts p...
method RecordMetricInputTypeDataPoint (line 924) | func (mb *MetricsBuilder) RecordMetricInputTypeDataPoint(ts pcommon.Ti...
method RecordOptionalMetricDataPoint (line 934) | func (mb *MetricsBuilder) RecordOptionalMetricDataPoint(ts pcommon.Tim...
method RecordOptionalMetricEmptyUnitDataPoint (line 939) | func (mb *MetricsBuilder) RecordOptionalMetricEmptyUnitDataPoint(ts pc...
method RecordReaggregateMetricDataPoint (line 944) | func (mb *MetricsBuilder) RecordReaggregateMetricDataPoint(ts pcommon....
method RecordSystemCPUTimeDataPoint (line 949) | func (mb *MetricsBuilder) RecordSystemCPUTimeDataPoint(ts pcommon.Time...
method Reset (line 955) | func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) {
type MetricBuilderOption (line 704) | type MetricBuilderOption interface
type metricBuilderOptionFunc (line 708) | type metricBuilderOptionFunc
method apply (line 710) | func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) {
function WithStartTime (line 715) | func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption {
function NewMetricsBuilder (line 720) | func NewMetricsBuilder(mbc MetricsBuilderConfig, settings scraper.Settin...
type ResourceMetricsOption (line 825) | type ResourceMetricsOption interface
type resourceMetricsOptionFunc (line 829) | type resourceMetricsOptionFunc
method apply (line 831) | func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) {
function WithResource (line 837) | func WithResource(res pcommon.Resource) ResourceMetricsOption {
function WithStartTimeOverride (line 845) | func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_metrics_test.go
type testDataSet (line 17) | type testDataSet
constant testDataSetDefault (line 20) | testDataSetDefault testDataSet = iota
constant testDataSetAll (line 21) | testDataSetAll
constant testDataSetNone (line 22) | testDataSetNone
constant testDataSetReag (line 23) | testDataSetReag
function TestMetricsBuilder (line 26) | func TestMetricsBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_resource.go
type ResourceBuilder (line 11) | type ResourceBuilder struct
method SetMapResourceAttr (line 25) | func (rb *ResourceBuilder) SetMapResourceAttr(val map[string]any) {
method SetOptionalResourceAttr (line 32) | func (rb *ResourceBuilder) SetOptionalResourceAttr(val string) {
method SetSliceResourceAttr (line 39) | func (rb *ResourceBuilder) SetSliceResourceAttr(val []any) {
method SetStringEnumResourceAttrOne (line 46) | func (rb *ResourceBuilder) SetStringEnumResourceAttrOne() {
method SetStringEnumResourceAttrTwo (line 53) | func (rb *ResourceBuilder) SetStringEnumResourceAttrTwo() {
method SetStringResourceAttr (line 60) | func (rb *ResourceBuilder) SetStringResourceAttr(val string) {
method SetStringResourceAttrDisableWarning (line 67) | func (rb *ResourceBuilder) SetStringResourceAttrDisableWarning(val str...
method SetStringResourceAttrRemoveWarning (line 74) | func (rb *ResourceBuilder) SetStringResourceAttrRemoveWarning(val stri...
method SetStringResourceAttrToBeRemoved (line 81) | func (rb *ResourceBuilder) SetStringResourceAttrToBeRemoved(val string) {
method Emit (line 88) | func (rb *ResourceBuilder) Emit() pcommon.Resource {
function NewResourceBuilder (line 17) | func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_resource_test.go
function TestResourceBuilder (line 11) | func TestResourceBuilder(t *testing.T) {
FILE: cmd/mdatagen/internal/samplescraper/internal/metadata/generated_status.go
constant LogsStability (line 15) | LogsStability = component.StabilityLevelDevelopment
constant ProfilesStability (line 16) | ProfilesStability = component.StabilityLevelDevelopment
constant MetricsStability (line 17) | MetricsStability = component.StabilityLevelStable
FILE: cmd/mdatagen/internal/status.go
function distroURL (line 20) | func distroURL(name string) string {
type Codeowners (line 35) | type Codeowners struct
type Status (line 44) | type Status struct
method SortedDistributions (line 102) | func (s *Status) SortedDistributions() []string {
method Validate (line 122) | func (s *Status) Validate() error {
method validateClass (line 140) | func (s *Status) validateClass() error {
type DeprecationMap (line 56) | type DeprecationMap
method Validate (line 170) | func (dm DeprecationMap) Validate(ms StabilityMap) error {
type DeprecationInfo (line 58) | type DeprecationInfo struct
type StabilityMap (line 150) | type StabilityMap
method Validate (line 152) | func (ms StabilityMap) Validate() error {
FILE: cmd/mdatagen/internal/status_test.go
function TestDistroURL (line 12) | func TestDistroURL(t *testing.T) {
function TestSortedDistributions (line 45) | func TestSortedDistributions(t *testing.T) {
FILE: cmd/mdatagen/internal/telemetry.go
type Telemetry (line 6) | type Telemetry struct
FILE: cmd/mdatagen/internal/testdata/generated_component_test.go
function TestComponentFactoryType (line 21) | func TestComponentFactoryType(t *testing.T) {
function TestComponentConfigStruct (line 25) | func TestComponentConfigStruct(t *testing.T) {
function TestComponentLifecycle (line 29) | func TestComponentLifecycle(t *testing.T) {
type mdatagenNopHost (line 76) | type mdatagenNopHost struct
method GetExtensions (line 82) | func (mnh *mdatagenNopHost) GetExtensions() map[component.ID]component...
method GetFactory (line 86) | func (mnh *mdatagenNopHost) GetFactory(_ component.Kind, _ component.T...
function newMdatagenNopHost (line 78) | func newMdatagenNopHost() component.Host {
FILE: cmd/mdatagen/internal/testdata/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: cmd/mdatagen/internal/testdata/internal/metadata/generated_status.go
constant MetricsStability (line 15) | MetricsStability = component.StabilityLevelBeta
FILE: cmd/mdatagen/internal/tests.go
type Ignore (line 6) | type Ignore struct
type GoLeak (line 11) | type GoLeak struct
type Tests (line 18) | type Tests struct
FILE: cmd/mdatagen/main.go
function main (line 16) | func main() {
FILE: cmd/otelcorecol/components.go
type aliasProvider (line 27) | type aliasProvider interface
function makeModulesMap (line 29) | func makeModulesMap[T component.Factory](factories map[component.Type]T,...
function components (line 41) | func components() (otelcol.Factories, error) {
FILE: cmd/otelcorecol/main.go
function main (line 19) | func main() {
function runInteractive (line 57) | func runInteractive(params otelcol.CollectorSettings) error {
FILE: cmd/otelcorecol/main_others.go
function run (line 9) | func run(params otelcol.CollectorSettings) error {
FILE: cmd/otelcorecol/main_windows.go
function run (line 17) | func run(params otelcol.CollectorSettings) error {
FILE: component/build_info.go
type BuildInfo (line 8) | type BuildInfo struct
function NewDefaultBuildInfo (line 23) | func NewDefaultBuildInfo() BuildInfo {
FILE: component/component.go
type Component (line 25) | type Component interface
type StartFunc (line 65) | type StartFunc
method Start (line 68) | func (f StartFunc) Start(ctx context.Context, host Host) error {
type ShutdownFunc (line 76) | type ShutdownFunc
method Shutdown (line 79) | func (f ShutdownFunc) Shutdown(ctx context.Context) error {
type Kind (line 87) | type Kind struct
method String (line 99) | func (k Kind) String() string {
type StabilityLevel (line 107) | type StabilityLevel
method UnmarshalText (line 119) | func (sl *StabilityLevel) UnmarshalText(in []byte) error {
method String (line 142) | func (sl StabilityLevel) String() string {
method LogMessage (line 162) | func (sl StabilityLevel) LogMessage() string {
constant StabilityLevelUndefined (line 110) | StabilityLevelUndefined StabilityLevel = iota
constant StabilityLevelUnmaintained (line 111) | StabilityLevelUnmaintained
constant StabilityLevelDeprecated (line 112) | StabilityLevelDeprecated
constant StabilityLevelDevelopment (line 113) | StabilityLevelDevelopment
constant StabilityLevelAlpha (line 114) | StabilityLevelAlpha
constant StabilityLevelBeta (line 115) | StabilityLevelBeta
constant StabilityLevelStable (line 116) | StabilityLevelStable
type Factory (line 182) | type Factory interface
type CreateDefaultConfigFunc (line 197) | type CreateDefaultConfigFunc
method CreateDefaultConfig (line 200) | func (f CreateDefaultConfigFunc) CreateDefaultConfig() Config {
FILE: component/component_test.go
function TestKindString (line 12) | func TestKindString(t *testing.T) {
function TestStabilityLevelUnmarshal (line 21) | func TestStabilityLevelUnmarshal(t *testing.T) {
function TestStabilityLevelString (line 73) | func TestStabilityLevelString(t *testing.T) {
function TestStabilityLevelLogMessage (line 84) | func TestStabilityLevelLogMessage(t *testing.T) {
FILE: component/componentstatus/instance.go
constant pipelineDelim (line 17) | pipelineDelim = byte(0x20)
type InstanceID (line 23) | type InstanceID struct
method ComponentID (line 40) | func (id *InstanceID) ComponentID() component.ID {
method Kind (line 45) | func (id *InstanceID) Kind() component.Kind {
method AllPipelineIDs (line 51) | func (id *InstanceID) AllPipelineIDs(f func(pipeline.ID) bool) {
method WithPipelines (line 72) | func (id *InstanceID) WithPipelines(pipelineIDs ...pipeline.ID) *Insta...
method addPipelines (line 82) | func (id *InstanceID) addPipelines(pipelineIDs []pipeline.ID) {
function NewInstanceID (line 30) | func NewInstanceID(componentID component.ID, kind component.Kind, pipeli...
FILE: component/componentstatus/instance_test.go
function TestInstanceID (line 15) | func TestInstanceID(t *testing.T) {
function TestAllPipelineIDs (line 73) | func TestAllPipelineIDs(t *testing.T) {
FILE: component/componentstatus/status.go
type Reporter (line 21) | type Reporter interface
type Watcher (line 35) | type Watcher interface
type Status (line 43) | type Status
method String (line 66) | func (s Status) String() string {
constant StatusNone (line 48) | StatusNone Status = iota
constant StatusStarting (line 50) | StatusStarting
constant StatusOK (line 52) | StatusOK
constant StatusRecoverableError (line 54) | StatusRecoverableError
constant StatusPermanentError (line 56) | StatusPermanentError
constant StatusFatalError (line 58) | StatusFatalError
constant StatusStopping (line 60) | StatusStopping
constant StatusStopped (line 62) | StatusStopped
type Event (line 87) | type Event struct
method Status (line 99) | func (ev *Event) Status() Status {
method Err (line 104) | func (ev *Event) Err() error {
method Attributes (line 109) | func (ev *Event) Attributes() pcommon.Map {
method Timestamp (line 114) | func (ev *Event) Timestamp() time.Time {
type EventBuilderOption (line 119) | type EventBuilderOption interface
type eventOptionFunc (line 123) | type eventOptionFunc
method applyOption (line 125) | func (f eventOptionFunc) applyOption(event *Event) {
function NewEvent (line 132) | func NewEvent(st Status, opts ...EventBuilderOption) *Event {
function WithAttributes (line 147) | func WithAttributes(attributes pcommon.Map) EventBuilderOption {
function WithError (line 154) | func WithError(err error) EventBuilderOption {
function NewRecoverableErrorEvent (line 163) | func NewRecoverableErrorEvent(err error) *Event {
function NewPermanentErrorEvent (line 170) | func NewPermanentErrorEvent(err error) *Event {
function NewFatalErrorEvent (line 176) | func NewFatalErrorEvent(err error) *Event {
function StatusIsError (line 182) | func StatusIsError(status Status) bool {
function ReportStatus (line 190) | func ReportStatus(host component.Host, e *Event) {
FILE: component/componentstatus/status_test.go
function TestNewStatusEvent (line 16) | func TestNewStatusEvent(t *testing.T) {
function TestStatusEventsWithError (line 47) | func TestStatusEventsWithError(t *testing.T) {
function TestStatusIsError (line 64) | func TestStatusIsError(t *testing.T) {
function Test_ReportStatus (line 105) | func Test_ReportStatus(t *testing.T) {
type reporter (line 124) | type reporter struct
method GetExtensions (line 128) | func (r *reporter) GetExtensions() map[component.ID]component.Component {
method Report (line 132) | func (r *reporter) Report(_ *Event) {
type host (line 138) | type host struct
method GetExtensions (line 142) | func (h *host) GetExtensions() map[component.ID]component.Component {
FILE: component/componenttest/configtest.go
function CheckConfigStruct (line 23) | func CheckConfigStruct(config any) error {
function validateConfigDataType (line 39) | func validateConfigDataType(t reflect.Type) error {
function checkStructFieldTags (line 67) | func checkStructFieldTags(f reflect.StructField) error {
FILE: component/componenttest/configtest_test.go
function TestCheckConfigStructPointerAndValue (line 14) | func TestCheckConfigStructPointerAndValue(t *testing.T) {
function TestCheckConfigStruct (line 22) | func TestCheckConfigStruct(t *testing.T) {
FILE: component/componenttest/nop_host.go
type nopHost (line 13) | type nopHost struct
method GetExtensions (line 23) | func (nh *nopHost) GetExtensions() map[component.ID]component.Component {
function NewNopHost (line 18) | func NewNopHost() component.Host {
FILE: component/componenttest/nop_host_test.go
function TestNewNopHost (line 13) | func TestNewNopHost(t *testing.T) {
FILE: component/componenttest/nop_telemetry.go
function NewNopTelemetrySettings (line 16) | func NewNopTelemetrySettings() component.TelemetrySettings {
FILE: component/componenttest/nop_telemetry_test.go
function TestNewNopTelemetrySettings (line 12) | func TestNewNopTelemetrySettings(t *testing.T) {
FILE: component/componenttest/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: component/componenttest/telemetry.go
type TelemetryOption (line 19) | type TelemetryOption interface
type telemetryOption (line 23) | type telemetryOption struct
type telemetryOptionFunc (line 28) | type telemetryOptionFunc
method apply (line 30) | func (f telemetryOptionFunc) apply(o *telemetryOption) { f(o) }
function WithMetricOptions (line 32) | func WithMetricOptions(opts ...sdkmetric.Option) TelemetryOption {
function WithTraceOptions (line 38) | func WithTraceOptions(opts ...sdktrace.TracerProviderOption) TelemetryOp...
type Telemetry (line 44) | type Telemetry struct
method NewTelemetrySettings (line 69) | func (tt *Telemetry) NewTelemetrySettings() component.TelemetrySettings {
method GetMetric (line 76) | func (tt *Telemetry) GetMetric(name string) (metricdata.Metrics, error) {
method Shutdown (line 92) | func (tt *Telemetry) Shutdown(ctx context.Context) error {
function NewTelemetry (line 51) | func NewTelemetry(opts ...TelemetryOption) *Telemetry {
FILE: component/componenttest/telemetry_test.go
function TestNewTelemetry (line 16) | func TestNewTelemetry(t *testing.T) {
FILE: component/config.go
type Config (line 13) | type Config
FILE: component/host.go
type Host (line 12) | type Host interface
FILE: component/identifiable.go
constant typeAndNameSeparator (line 15) | typeAndNameSeparator = "/"
type Type (line 33) | type Type struct
method String (line 38) | func (t Type) String() string {
method MarshalText (line 43) | func (t Type) MarshalText() ([]byte, error) {
function NewType (line 52) | func NewType(ty string) (Type, error) {
function MustNewType (line 67) | func MustNewType(strType string) Type {
type ID (line 85) | type ID struct
method Type (line 115) | func (id ID) Type() Type {
method Name (line 120) | func (id ID) Name() string {
method MarshalText (line 126) | func (id ID) MarshalText() ([]byte, error) {
method UnmarshalText (line 131) | func (id *ID) UnmarshalText(text []byte) error {
method String (line 164) | func (id ID) String() string {
function NewID (line 91) | func NewID(typeVal Type) ID {
function MustNewID (line 98) | func MustNewID(typeVal string) ID {
function NewIDWithName (line 103) | func NewIDWithName(typeVal Type, nameVal string) ID {
function MustNewIDWithName (line 110) | func MustNewIDWithName(typeVal, nameVal string) ID {
function validateName (line 172) | func validateName(nameStr string) error {
FILE: component/identifiable_example_test.go
function ExampleNewType (line 12) | func ExampleNewType() {
function ExampleMustNewType (line 24) | func ExampleMustNewType() {
function ExampleNewID (line 32) | func ExampleNewID() {
function ExampleMustNewID (line 41) | func ExampleMustNewID() {
function ExampleNewIDWithName (line 49) | func ExampleNewIDWithName() {
function ExampleMustNewIDWithName (line 58) | func ExampleMustNewIDWithName() {
FILE: component/identifiable_test.go
function TestMarshalText (line 14) | func TestMarshalText(t *testing.T) {
function TestUnmarshalText (line 21) | func TestUnmarshalText(t *testing.T) {
function TestNewType (line 105) | func TestNewType(t *testing.T) {
FILE: component/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: component/telemetry.go
type TelemetrySettings (line 15) | type TelemetrySettings struct
FILE: config/configauth/configauth.go
type Config (line 26) | type Config struct
method GetServerAuthenticator (line 35) | func (a Config) GetServerAuthenticator(_ context.Context, extensions m...
method GetHTTPClientAuthenticator (line 49) | func (a Config) GetHTTPClientAuthenticator(_ context.Context, extensio...
method GetGRPCClientAuthenticator (line 62) | func (a Config) GetGRPCClientAuthenticator(_ context.Context, extensio...
FILE: config/configauth/configauth_test.go
function TestGetServer (line 20) | func TestGetServer(t *testing.T) {
function TestGetServerFails (line 61) | func TestGetServerFails(t *testing.T) {
function TestGetHTTPClient (line 71) | func TestGetHTTPClient(t *testing.T) {
function TestGetGRPCClientFails (line 112) | func TestGetGRPCClientFails(t *testing.T) {
FILE: config/configauth/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configcompression/compressiontype.go
type Type (line 12) | type Type
method IsCompressed (line 37) | func (ct *Type) IsCompressed() bool {
method UnmarshalText (line 41) | func (ct *Type) UnmarshalText(in []byte) error {
method ValidateParams (line 58) | func (ct *Type) ValidateParams(p CompressionParams) error {
type Level (line 14) | type Level
type CompressionParams (line 16) | type CompressionParams struct
constant TypeGzip (line 23) | TypeGzip Type = "gzip"
constant TypeZlib (line 24) | TypeZlib Type = "zlib"
constant TypeDeflate (line 25) | TypeDeflate Type = "deflate"
constant TypeSnappy (line 26) | TypeSnappy Type = "snappy"
constant TypeSnappyFramed (line 27) | TypeSnappyFramed Type = "x-snappy-framed"
constant TypeZstd (line 28) | TypeZstd Type = "zstd"
constant TypeLz4 (line 29) | TypeLz4 Type = "lz4"
constant typeNone (line 30) | typeNone Type = "none"
constant typeEmpty (line 31) | typeEmpty Type = ""
constant DefaultCompressionLevel (line 32) | DefaultCompressionLevel = zlib.DefaultCompression
FILE: config/configcompression/compressiontype_test.go
function TestUnmarshalText (line 14) | func TestUnmarshalText(t *testing.T) {
function TestValidateParams (line 95) | func TestValidateParams(t *testing.T) {
FILE: config/configcompression/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configgrpc/client_middleware_test.go
type testClientMiddleware (line 29) | type testClientMiddleware struct
function newTestMiddlewareConfig (line 34) | func newTestMiddlewareConfig(name string) configmiddleware.Config {
function newTestClientMiddleware (line 40) | func newTestClientMiddleware(name string) extension.Extension {
function TestClientMiddlewareOrdering (line 92) | func TestClientMiddlewareOrdering(t *testing.T) {
function TestClientMiddlewareToClientErrors (line 145) | func TestClientMiddlewareToClientErrors(t *testing.T) {
FILE: config/configgrpc/configgrpc.go
type KeepaliveClientConfig (line 50) | type KeepaliveClientConfig struct
function NewDefaultKeepaliveClientConfig (line 59) | func NewDefaultKeepaliveClientConfig() KeepaliveClientConfig {
function BalancerName (line 67) | func BalancerName() string {
type ClientConfig (line 72) | type ClientConfig struct
method Validate (line 229) | func (cc *ClientConfig) Validate() error {
method sanitizedEndpoint (line 258) | func (cc *ClientConfig) sanitizedEndpoint() string {
method isSchemeHTTP (line 272) | func (cc *ClientConfig) isSchemeHTTP() bool {
method isSchemeHTTPS (line 276) | func (cc *ClientConfig) isSchemeHTTPS() bool {
method ToClientConn (line 303) | func (cc *ClientConfig) ToClientConn(
method addHeadersIfAbsent (line 325) | func (cc *ClientConfig) addHeadersIfAbsent(ctx context.Context) contex...
method getGrpcDialOptions (line 336) | func (cc *ClientConfig) getGrpcDialOptions(
function NewDefaultClientConfig (line 119) | func NewDefaultClientConfig() ClientConfig {
type KeepaliveServerConfig (line 128) | type KeepaliveServerConfig struct
function NewDefaultKeepaliveServerConfig (line 136) | func NewDefaultKeepaliveServerConfig() KeepaliveServerConfig {
type KeepaliveServerParameters (line 146) | type KeepaliveServerParameters struct
function NewDefaultKeepaliveServerParameters (line 157) | func NewDefaultKeepaliveServerParameters() KeepaliveServerParameters {
type KeepaliveEnforcementPolicy (line 164) | type KeepaliveEnforcementPolicy struct
function NewDefaultKeepaliveEnforcementPolicy (line 172) | func NewDefaultKeepaliveEnforcementPolicy() KeepaliveEnforcementPolicy {
type ServerConfig (line 177) | type ServerConfig struct
method Validate (line 447) | func (sc *ServerConfig) Validate() error {
method ToServer (line 483) | func (sc *ServerConfig) ToServer(
method getGrpcServerOptions (line 496) | func (sc *ServerConfig) getGrpcServerOptions(
function NewDefaultServerConfig (line 217) | func NewDefaultServerConfig() ServerConfig {
type ToClientConnOption (line 281) | type ToClientConnOption interface
type grpcDialOptionWrapper (line 285) | type grpcDialOptionWrapper struct
method isToClientConnOption (line 293) | func (grpcDialOptionWrapper) isToClientConnOption() {}
function WithGrpcDialOption (line 290) | func WithGrpcDialOption(opt grpc.DialOption) ToClientConnOption {
type ToServerOption (line 464) | type ToServerOption interface
type grpcServerOptionWrapper (line 468) | type grpcServerOptionWrapper struct
method isToServerOption (line 476) | func (grpcServerOptionWrapper) isToServerOption() {}
function WithGrpcServerOption (line 473) | func WithGrpcServerOption(opt grpc.ServerOption) ToServerOption {
function getGRPCCompressionName (line 602) | func getGRPCCompressionName(compressionType configcompression.Type) (str...
function enhanceWithClientInformation (line 617) | func enhanceWithClientInformation(includeMetadata bool) grpc.UnaryServer...
function enhanceStreamWithClientInformation (line 623) | func enhanceStreamWithClientInformation(includeMetadata bool) grpc.Strea...
function contextWithClient (line 631) | func contextWithClient(ctx context.Context, includeMetadata bool) contex...
function authUnaryServerInterceptor (line 648) | func authUnaryServerInterceptor(server extensionauth.Server) grpc.UnaryS...
function authStreamServerInterceptor (line 668) | func authStreamServerInterceptor(server extensionauth.Server) grpc.Strea...
FILE: config/configgrpc/configgrpc_benchmark_test.go
function BenchmarkCompressors (line 26) | func BenchmarkCompressors(b *testing.B) {
function compress (line 58) | func compress(compressor encoding.Compressor, in []byte) ([]byte, error) {
type testPayload (line 79) | type testPayload struct
type marshaler (line 85) | type marshaler interface
type logMarshaler (line 89) | type logMarshaler struct
method marshal (line 93) | func (m *logMarshaler) marshal(e any) ([]byte, error) {
type traceMarshaler (line 97) | type traceMarshaler struct
method marshal (line 101) | func (m *traceMarshaler) marshal(e any) ([]byte, error) {
type metricsMarshaler (line 105) | type metricsMarshaler struct
method marshal (line 109) | func (m *metricsMarshaler) marshal(e any) ([]byte, error) {
function setupTestPayloads (line 113) | func setupTestPayloads() []testPayload {
FILE: config/configgrpc/configgrpc_test.go
type mockAuthServer (line 44) | type mockAuthServer struct
function newMockAuthServer (line 50) | func newMockAuthServer(auth func(ctx context.Context, sources map[string...
function TestNewDefaultKeepaliveClientConfig (line 54) | func TestNewDefaultKeepaliveClientConfig(t *testing.T) {
function TestNewDefaultClientConfig (line 63) | func TestNewDefaultClientConfig(t *testing.T) {
function TestNewDefaultKeepaliveServerParameters (line 76) | func TestNewDefaultKeepaliveServerParameters(t *testing.T) {
function TestNewDefaultKeepaliveEnforcementPolicy (line 83) | func TestNewDefaultKeepaliveEnforcementPolicy(t *testing.T) {
function TestNewDefaultKeepaliveServerConfig (line 91) | func TestNewDefaultKeepaliveServerConfig(t *testing.T) {
function TestNewDefaultServerConfig (line 100) | func TestNewDefaultServerConfig(t *testing.T) {
function TestDefaultGrpcClientSettings (line 119) | func TestDefaultGrpcClientSettings(t *testing.T) {
function TestGrpcClientExtraOption (line 134) | func TestGrpcClientExtraOption(t *testing.T) {
function TestAllGrpcClientSettings (line 157) | func TestAllGrpcClientSettings(t *testing.T) {
function TestSanitizeEndpoint (line 266) | func TestSanitizeEndpoint(t *testing.T) {
function TestValidateEndpoint (line 276) | func TestValidateEndpoint(t *testing.T) {
function TestHeaders (line 284) | func TestHeaders(t *testing.T) {
function TestDefaultGrpcServerSettings (line 313) | func TestDefaultGrpcServerSettings(t *testing.T) {
function TestGrpcServerExtraOption (line 324) | func TestGrpcServerExtraOption(t *testing.T) {
function TestGrpcServerValidate (line 342) | func TestGrpcServerValidate(t *testing.T) {
function TestAllGrpcServerSettingsExceptAuth (line 394) | func TestAllGrpcServerSettingsExceptAuth(t *testing.T) {
function TestGrpcServerAuthSettings (line 427) | func TestGrpcServerAuthSettings(t *testing.T) {
function TestGrpcClientConfigInvalidBalancer (line 445) | func TestGrpcClientConfigInvalidBalancer(t *testing.T) {
function TestGRPCClientSettingsError (line 468) | func TestGRPCClientSettingsError(t *testing.T) {
function TestUseSecure (line 560) | func TestUseSecure(t *testing.T) {
function TestGRPCServerSettingsError (line 572) | func TestGRPCServerSettingsError(t *testing.T) {
function TestGRPCServerSettings_ToListener_Error (line 626) | func TestGRPCServerSettings_ToListener_Error(t *testing.T) {
function TestHTTPReception (line 637) | func TestHTTPReception(t *testing.T) {
function TestReceiveOnUnixDomainSocket (line 767) | func TestReceiveOnUnixDomainSocket(t *testing.T) {
function TestContextWithClient (line 791) | func TestContextWithClient(t *testing.T) {
function TestStreamInterceptorEnhancesClient (line 895) | func TestStreamInterceptorEnhancesClient(t *testing.T) {
type mockedStream (line 921) | type mockedStream struct
method Context (line 926) | func (ms *mockedStream) Context() context.Context {
function TestClientInfoInterceptors (line 930) | func TestClientInfoInterceptors(t *testing.T) {
function TestClientInfoInterceptorBeforeAuth (line 984) | func TestClientInfoInterceptorBeforeAuth(t *testing.T) {
function TestDefaultUnaryInterceptorAuthSucceeded (line 1036) | func TestDefaultUnaryInterceptorAuthSucceeded(t *testing.T) {
function TestDefaultUnaryInterceptorAuthFailure (line 1067) | func TestDefaultUnaryInterceptorAuthFailure(t *testing.T) {
function TestDefaultUnaryInterceptorAuthFailureWithStatusErr (line 1092) | func TestDefaultUnaryInterceptorAuthFailureWithStatusErr(t *testing.T) {
function TestDefaultUnaryInterceptorMissingMetadata (line 1117) | func TestDefaultUnaryInterceptorMissingMetadata(t *testing.T) {
function TestDefaultStreamInterceptorAuthSucceeded (line 1137) | func TestDefaultStreamInterceptorAuthSucceeded(t *testing.T) {
function TestDefaultStreamInterceptorAuthFailureWithStatusErr (line 1170) | func TestDefaultStreamInterceptorAuthFailureWithStatusErr(t *testing.T) {
function TestDefaultStreamInterceptorAuthFailure (line 1196) | func TestDefaultStreamInterceptorAuthFailure(t *testing.T) {
function TestDefaultStreamInterceptorMissingMetadata (line 1222) | func TestDefaultStreamInterceptorMissingMetadata(t *testing.T) {
type mockServerStream (line 1244) | type mockServerStream struct
method Context (line 1249) | func (m *mockServerStream) Context() context.Context {
type grpcTraceServer (line 1253) | type grpcTraceServer struct
method Export (line 1258) | func (gts *grpcTraceServer) Export(ctx context.Context, _ ptraceotlp.E...
method startTestServer (line 1263) | func (gts *grpcTraceServer) startTestServer(t *testing.T, gss configop...
method startTestServerWithExtensions (line 1267) | func (gts *grpcTraceServer) startTestServerWithExtensions(t *testing.T...
method startTestServerWithExtensionsError (line 1279) | func (gts *grpcTraceServer) startTestServerWithExtensionsError(_ *test...
function sendTestRequest (line 1296) | func sendTestRequest(t *testing.T, cc ClientConfig) (ptraceotlp.ExportRe...
function sendTestRequestWithExtensions (line 1301) | func sendTestRequestWithExtensions(t *testing.T, cc ClientConfig, extens...
function tempSocketName (line 1313) | func tempSocketName(t *testing.T) string {
FILE: config/configgrpc/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configgrpc/server_middleware_test.go
type contextKey (line 26) | type contextKey
constant middlewareCallsKey (line 29) | middlewareCallsKey contextKey = 0
function getMiddlewareCalls (line 32) | func getMiddlewareCalls(ctx context.Context) []string {
type testServerMiddleware (line 41) | type testServerMiddleware struct
function newTestServerMiddleware (line 46) | func newTestServerMiddleware(name string) extension.Extension {
function TestGrpcServerUnaryInterceptor (line 63) | func TestGrpcServerUnaryInterceptor(t *testing.T) {
function TestServerMiddlewareToServerErrors (line 106) | func TestServerMiddlewareToServerErrors(t *testing.T) {
FILE: config/configgrpc/wrappedstream.go
type wrappedServerStream (line 16) | type wrappedServerStream struct
method Context (line 23) | func (w *wrappedServerStream) Context() context.Context {
function wrapServerStream (line 28) | func wrapServerStream(wrappedCtx context.Context, stream grpc.ServerStre...
FILE: config/configgrpc/wrappedstream_test.go
type ctxKey (line 15) | type ctxKey struct
function TestWrapServerStream (line 22) | func TestWrapServerStream(t *testing.T) {
function TestDoubleWrapping (line 31) | func TestDoubleWrapping(t *testing.T) {
type fakeServerStream (line 38) | type fakeServerStream struct
method Context (line 43) | func (f *fakeServerStream) Context() context.Context {
FILE: config/confighttp/client.go
constant headerContentEncoding (line 30) | headerContentEncoding = "Content-Encoding"
type ClientConfig (line 34) | type ClientConfig struct
method Validate (line 137) | func (cc *ClientConfig) Validate() error {
method ToClient (line 158) | func (cc *ClientConfig) ToClient(ctx context.Context, extensions map[c...
type CookiesConfig (line 118) | type CookiesConfig struct
function NewDefaultClientConfig (line 126) | func NewDefaultClientConfig() ClientConfig {
type ToClientOption (line 149) | type ToClientOption interface
type headerRoundTripper (line 286) | type headerRoundTripper struct
method RoundTrip (line 292) | func (interceptor *headerRoundTripper) RoundTrip(req *http.Request) (*...
FILE: config/confighttp/client_middleware_test.go
type testClientMiddleware (line 27) | type testClientMiddleware struct
function newTestClientMiddleware (line 32) | func newTestClientMiddleware(name string) component.Component {
function newTestClientConfig (line 65) | func newTestClientConfig(name string) configmiddleware.Config {
function TestClientMiddlewares (line 71) | func TestClientMiddlewares(t *testing.T) {
function TestClientMiddlewareErrors (line 142) | func TestClientMiddlewareErrors(t *testing.T) {
function TestGRPCClientMiddlewareErrors (line 199) | func TestGRPCClientMiddlewareErrors(t *testing.T) {
FILE: config/confighttp/client_test.go
function TestAllHTTPClientSettings (line 46) | func TestAllHTTPClientSettings(t *testing.T) {
function TestPartialHTTPClientSettings (line 192) | func TestPartialHTTPClientSettings(t *testing.T) {
function TestDefaultHTTPClientSettings (line 234) | func TestDefaultHTTPClientSettings(t *testing.T) {
function TestProxyURL (line 240) | func TestProxyURL(t *testing.T) {
function TestHTTPClientSettingsError (line 295) | func TestHTTPClientSettingsError(t *testing.T) {
type customRoundTripper (line 345) | type customRoundTripper struct
method RoundTrip (line 347) | func (c *customRoundTripper) RoundTrip(*http.Request) (*http.Response,...
type mockClient (line 356) | type mockClient struct
method RoundTripper (line 362) | func (m *mockClient) RoundTripper(http.RoundTripper) (http.RoundTrippe...
function TestHTTPClientSettingWithAuthConfig (line 366) | func TestHTTPClientSettingWithAuthConfig(t *testing.T) {
function TestHTTPClientHeaders (line 488) | func TestHTTPClientHeaders(t *testing.T) {
function TestHTTPClientHostHeader (line 527) | func TestHTTPClientHostHeader(t *testing.T) {
function TestHTTPTransportOptions (line 562) | func TestHTTPTransportOptions(t *testing.T) {
function TestContextWithClient (line 597) | func TestContextWithClient(t *testing.T) {
function TestClientUnmarshalYAMLWithMiddlewares (line 660) | func TestClientUnmarshalYAMLWithMiddlewares(t *testing.T) {
function TestClientUnmarshalYAMLComprehensiveConfig (line 681) | func TestClientUnmarshalYAMLComprehensiveConfig(t *testing.T) {
function TestClientMiddlewaresFieldCompatibility (line 724) | func TestClientMiddlewaresFieldCompatibility(t *testing.T) {
FILE: config/confighttp/clientinfohandler.go
type clientInfoHandler (line 15) | type clientInfoHandler struct
method ServeHTTP (line 24) | func (h *clientInfoHandler) ServeHTTP(w http.ResponseWriter, req *http...
function contextWithClient (line 31) | func contextWithClient(req *http.Request, includeMetadata bool) context....
function parseIP (line 54) | func parseIP(source string) *net.IPAddr {
FILE: config/confighttp/clientinfohandler_test.go
function TestParseIP (line 16) | func TestParseIP(t *testing.T) {
FILE: config/confighttp/compress_readcloser.go
type compressReadCloser (line 11) | type compressReadCloser struct
method Close (line 21) | func (crc *compressReadCloser) Close() error {
FILE: config/confighttp/compress_readcloser_test.go
type errorReadCloser (line 16) | type errorReadCloser struct
method Close (line 21) | func (erc errorReadCloser) Close() error {
function TestCompressReadCloser (line 25) | func TestCompressReadCloser(t *testing.T) {
FILE: config/confighttp/compression.go
function defaultCompressionAlgorithms (line 28) | func defaultCompressionAlgorithms() []string {
type compressRoundTripper (line 35) | type compressRoundTripper struct
method RoundTrip (line 184) | func (r *compressRoundTripper) RoundTrip(req *http.Request) (*http.Res...
type pooledZstdReadCloser (line 44) | type pooledZstdReadCloser struct
method Read (line 48) | func (pzrc *pooledZstdReadCloser) Read(dst []byte) (int, error) {
method Close (line 55) | func (pzrc *pooledZstdReadCloser) Close() error {
function snappyHandler (line 138) | func snappyHandler(body io.ReadCloser) (io.ReadCloser, error) {
function newCompressionParams (line 165) | func newCompressionParams(level configcompression.Level) configcompressi...
function newCompressRoundTripper (line 171) | func newCompressRoundTripper(rt http.RoundTripper, compressionType confi...
type decompressor (line 213) | type decompressor struct
method ServeHTTP (line 253) | func (d *decompressor) ServeHTTP(w http.ResponseWriter, r *http.Reques...
method newBodyReader (line 272) | func (d *decompressor) newBodyReader(r *http.Request) (io.ReadCloser, ...
function httpContentDecompressor (line 223) | func httpContentDecompressor(h http.Handler, maxRequestBodySize int64, e...
function defaultErrorHandler (line 286) | func defaultErrorHandler(w http.ResponseWriter, _ *http.Request, errMsg ...
FILE: config/confighttp/compression_test.go
function TestHTTPClientCompression (line 33) | func TestHTTPClientCompression(t *testing.T) {
function TestHTTPCustomDecompression (line 200) | func TestHTTPCustomDecompression(t *testing.T) {
function TestHTTPContentDecompressionHandler (line 235) | func TestHTTPContentDecompressionHandler(t *testing.T) {
function TestEmptyCompressionAlgorithmsAllowsUncompressed (line 393) | func TestEmptyCompressionAlgorithmsAllowsUncompressed(t *testing.T) {
function TestHTTPContentCompressionRequestWithNilBody (line 539) | func TestHTTPContentCompressionRequestWithNilBody(t *testing.T) {
function TestHTTPContentCompressionCopyError (line 564) | func TestHTTPContentCompressionCopyError(t *testing.T) {
type closeFailBody (line 581) | type closeFailBody struct
method Close (line 585) | func (*closeFailBody) Close() error {
function TestHTTPContentCompressionRequestBodyCloseError (line 589) | func TestHTTPContentCompressionRequestBodyCloseError(t *testing.T) {
function TestOverrideCompressionList (line 606) | func TestOverrideCompressionList(t *testing.T) {
function TestDecompressorAvoidDecompressionBomb (line 631) | func TestDecompressorAvoidDecompressionBomb(t *testing.T) {
function TestPooledZstdReadCloserReadAfterClose (line 712) | func TestPooledZstdReadCloserReadAfterClose(t *testing.T) {
function compressGzip (line 744) | func compressGzip(tb testing.TB, body []byte) *bytes.Buffer {
function compressZlib (line 753) | func compressZlib(tb testing.TB, body []byte) *bytes.Buffer {
function compressSnappyFramed (line 762) | func compressSnappyFramed(tb testing.TB, body []byte) *bytes.Buffer {
function compressSnappy (line 771) | func compressSnappy(tb testing.TB, body []byte) *bytes.Buffer {
function compressZstd (line 779) | func compressZstd(tb testing.TB, body []byte) *bytes.Buffer {
function compressLz4 (line 790) | func compressLz4(tb testing.TB, body []byte) *bytes.Buffer {
FILE: config/confighttp/compressor.go
type writeCloserReset (line 22) | type writeCloserReset interface
type compressor (line 27) | type compressor struct
method compress (line 111) | func (p *compressor) compress(buf *bytes.Buffer, body io.ReadCloser) e...
type compressorMap (line 31) | type compressorMap
type compressionMapKey (line 33) | type compressionMapKey struct
function newCompressor (line 45) | func newCompressor(compressionType configcompression.Type, compressionPa...
function newWriteCloserResetFunc (line 63) | func newWriteCloserResetFunc(compressionType configcompression.Type, com...
type rawSnappyWriter (line 135) | type rawSnappyWriter struct
method Write (line 142) | func (w *rawSnappyWriter) Write(p []byte) (int, error) {
method Close (line 148) | func (w *rawSnappyWriter) Close() error {
method Reset (line 160) | func (w *rawSnappyWriter) Reset(newWriter io.Writer) {
FILE: config/confighttp/compressor_test.go
function BenchmarkCompression (line 22) | func BenchmarkCompression(b *testing.B) {
function benchmarkCompression (line 58) | func benchmarkCompression(b *testing.B, _ configcompression.Type, buf *b...
function benchmarkCompressionNoConcurrency (line 74) | func benchmarkCompressionNoConcurrency(b *testing.B, _ configcompression...
FILE: config/confighttp/confighttp_example_test.go
function ExampleServerConfig (line 13) | func ExampleServerConfig() {
FILE: config/confighttp/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: config/confighttp/internal/options.go
type ToServerOptions (line 15) | type ToServerOptions struct
method Apply (line 21) | func (tso *ToServerOptions) Apply(opts ...ToServerOption) {
type ToServerOption (line 29) | type ToServerOption interface
type ToServerOptionFunc (line 34) | type ToServerOptionFunc
method apply (line 36) | func (of ToServerOptionFunc) apply(e *ToServerOptions) {
FILE: config/confighttp/server.go
constant defaultMaxRequestBodySize (line 34) | defaultMaxRequestBodySize = 20 * 1024 * 1024
type ServerConfig (line 37) | type ServerConfig struct
method ToListener (line 135) | func (sc *ServerConfig) ToListener(ctx context.Context) (net.Listener,...
method ToServer (line 186) | func (sc *ServerConfig) ToServer(ctx context.Context, extensions map[c...
function NewDefaultServerConfig (line 109) | func NewDefaultServerConfig() ServerConfig {
type AuthConfig (line 123) | type AuthConfig struct
function WithErrorHandler (line 164) | func WithErrorHandler(e func(w http.ResponseWriter, r *http.Request, err...
function WithDecoder (line 172) | func WithDecoder(key string, dec func(body io.ReadCloser) (io.ReadCloser...
function responseHeadersHandler (line 316) | func responseHeadersHandler(handler http.Handler, headers configopaque.M...
type CORSConfig (line 330) | type CORSConfig struct
function NewDefaultCORSConfig (line 353) | func NewDefaultCORSConfig() CORSConfig {
function authInterceptor (line 357) | func authInterceptor(next http.Handler, server extensionauth.Server, req...
function maxRequestBodySizeInterceptor (line 381) | func maxRequestBodySizeInterceptor(next http.Handler, maxRecvSize int64)...
function standardizeHTTPMethod (line 390) | func standardizeHTTPMethod(method, unknown string) string {
FILE: config/confighttp/server_middleware_test.go
type testServerMiddleware (line 27) | type testServerMiddleware struct
function newTestServerMiddleware (line 32) | func newTestServerMiddleware(name string) component.Component {
function newTestServerConfig (line 52) | func newTestServerConfig(name string) configmiddleware.Config {
function TestServerMiddleware (line 58) | func TestServerMiddleware(t *testing.T) {
function TestServerMiddlewareErrors (line 140) | func TestServerMiddlewareErrors(t *testing.T) {
FILE: config/confighttp/server_test.go
type mockAuthServer (line 43) | type mockAuthServer struct
function newMockAuthServer (line 49) | func newMockAuthServer(auth func(ctx context.Context, sources map[string...
function TestHTTPServerSettingsError (line 53) | func TestHTTPServerSettingsError(t *testing.T) {
function TestHTTPServerTLS (line 107) | func TestHTTPServerTLS(t *testing.T) {
function TestHTTPServerTransport (line 282) | func TestHTTPServerTransport(t *testing.T) {
function TestHTTPCors (line 312) | func TestHTTPCors(t *testing.T) {
function TestHTTPCorsInvalidSettings (line 402) | func TestHTTPCorsInvalidSettings(t *testing.T) {
function TestHTTPCorsWithSettings (line 422) | func TestHTTPCorsWithSettings(t *testing.T) {
function TestHTTPServerHeaders (line 458) | func TestHTTPServerHeaders(t *testing.T) {
function verifyCorsResp (line 501) | func verifyCorsResp(t *testing.T, url, origin string, set configoptional...
function verifyHeadersResp (line 536) | func verifyHeadersResp(t *testing.T, url string, expected configopaque.M...
function TestServerAuth (line 552) | func TestServerAuth(t *testing.T) {
function TestInvalidServerAuth (line 590) | func TestInvalidServerAuth(t *testing.T) {
function TestFailedServerAuth (line 604) | func TestFailedServerAuth(t *testing.T) {
function TestFailedServerAuthWithErrorHandler (line 635) | func TestFailedServerAuthWithErrorHandler(t *testing.T) {
function TestServerWithErrorHandler (line 674) | func TestServerWithErrorHandler(t *testing.T) {
function TestServerWithDecoder (line 708) | func TestServerWithDecoder(t *testing.T) {
function TestServerWithDecompression (line 736) | func TestServerWithDecompression(t *testing.T) {
function TestDefaultMaxRequestBodySize (line 782) | func TestDefaultMaxRequestBodySize(t *testing.T) {
function TestAuthWithQueryParams (line 823) | func TestAuthWithQueryParams(t *testing.T) {
function BenchmarkHTTPRequest (line 864) | func BenchmarkHTTPRequest(b *testing.B) {
function TestDefaultHTTPServerSettings (line 959) | func TestDefaultHTTPServerSettings(t *testing.T) {
function TestHTTPServerKeepAlives (line 970) | func TestHTTPServerKeepAlives(t *testing.T) {
function TestHTTPServerTelemetry_Tracing (line 1020) | func TestHTTPServerTelemetry_Tracing(t *testing.T) {
function TestServerUnmarshalYAMLWithMiddlewares (line 1094) | func TestServerUnmarshalYAMLWithMiddlewares(t *testing.T) {
function TestServerUnmarshalYAMLComprehensiveConfig (line 1115) | func TestServerUnmarshalYAMLComprehensiveConfig(t *testing.T) {
function startServer (line 1169) | func startServer(tb testing.TB, sc *ServerConfig, ln net.Listener, h htt...
FILE: config/confighttp/xconfighttp/options.go
function WithOtelHTTPOptions (line 20) | func WithOtelHTTPOptions(httpopts ...otelhttp.Option) confighttp.ToServe...
FILE: config/confighttp/xconfighttp/options_test.go
function TestServerWithOtelHTTPOptions (line 24) | func TestServerWithOtelHTTPOptions(t *testing.T) {
function tracerProvider (line 66) | func tracerProvider(t *testing.T) (trace.TracerProvider, *tracetest.InMe...
FILE: config/configmiddleware/configmiddleware.go
type Config (line 28) | type Config struct
method GetHTTPClientRoundTripper (line 40) | func (m Config) GetHTTPClientRoundTripper(ctx context.Context, extensi...
method GetHTTPServerHandler (line 55) | func (m Config) GetHTTPServerHandler(ctx context.Context, extensions m...
method GetGRPCClientOptions (line 70) | func (m Config) GetGRPCClientOptions(ctx context.Context, extensions m...
method GetGRPCServerOptions (line 84) | func (m Config) GetGRPCServerOptions(ctx context.Context, extensions m...
FILE: config/configmiddleware/configmiddleware_test.go
type mockWrongType (line 21) | type mockWrongType struct
function TestConfig_GetHTTPServerHandler (line 26) | func TestConfig_GetHTTPServerHandler(t *testing.T) {
function TestConfig_GetHTTPClientRoundTripper (line 79) | func TestConfig_GetHTTPClientRoundTripper(t *testing.T) {
function TestConfig_GetGRPCServerOptions (line 132) | func TestConfig_GetGRPCServerOptions(t *testing.T) {
function TestConfig_GetGRPCClientOptions (line 195) | func TestConfig_GetGRPCClientOptions(t *testing.T) {
FILE: config/confignet/confignet.go
type TransportType (line 14) | type TransportType
method UnmarshalText (line 35) | func (tt *TransportType) UnmarshalText(in []byte) error {
constant TransportTypeTCP (line 17) | TransportTypeTCP TransportType = "tcp"
constant TransportTypeTCP4 (line 18) | TransportTypeTCP4 TransportType = "tcp4"
constant TransportTypeTCP6 (line 19) | TransportTypeTCP6 TransportType = "tcp6"
constant TransportTypeUDP (line 20) | TransportTypeUDP TransportType = "udp"
constant TransportTypeUDP4 (line 21) | TransportTypeUDP4 TransportType = "udp4"
constant TransportTypeUDP6 (line 22) | TransportTypeUDP6 TransportType = "udp6"
constant TransportTypeIP (line 23) | TransportTypeIP TransportType = "ip"
constant TransportTypeIP4 (line 24) | TransportTypeIP4 TransportType = "ip4"
constant TransportTypeIP6 (line 25) | TransportTypeIP6 TransportType = "ip6"
constant TransportTypeUnix (line 26) | TransportTypeUnix TransportType = "unix"
constant TransportTypeUnixgram (line 27) | TransportTypeUnixgram TransportType = "unixgram"
constant TransportTypeUnixPacket (line 28) | TransportTypeUnixPacket TransportType = "unixpacket"
constant transportTypeEmpty (line 29) | transportTypeEmpty TransportType = ""
type DialerConfig (line 59) | type DialerConfig struct
function NewDefaultDialerConfig (line 68) | func NewDefaultDialerConfig() DialerConfig {
type AddrConfig (line 73) | type AddrConfig struct
method Dial (line 99) | func (na *AddrConfig) Dial(ctx context.Context) (net.Conn, error) {
method Listen (line 105) | func (na *AddrConfig) Listen(ctx context.Context) (net.Listener, error) {
method Validate (line 110) | func (na *AddrConfig) Validate() error {
function NewDefaultAddrConfig (line 92) | func NewDefaultAddrConfig() AddrConfig {
type TCPAddrConfig (line 131) | type TCPAddrConfig struct
method Dial (line 153) | func (na *TCPAddrConfig) Dial(ctx context.Context) (net.Conn, error) {
method Listen (line 159) | func (na *TCPAddrConfig) Listen(ctx context.Context) (net.Listener, er...
function NewDefaultTCPAddrConfig (line 146) | func NewDefaultTCPAddrConfig() TCPAddrConfig {
FILE: config/confignet/confignet_test.go
function TestNewDefaultDialerConfig (line 17) | func TestNewDefaultDialerConfig(t *testing.T) {
function TestNewDefaultAddrConfig (line 23) | func TestNewDefaultAddrConfig(t *testing.T) {
function TestNewDefaultTCPAddrConfig (line 29) | func TestNewDefaultTCPAddrConfig(t *testing.T) {
function TestAddrConfigTimeout (line 35) | func TestAddrConfigTimeout(t *testing.T) {
function TestTCPAddrConfigTimeout (line 53) | func TestTCPAddrConfigTimeout(t *testing.T) {
function TestAddrConfig (line 70) | func TestAddrConfig(t *testing.T) {
function Test_NetAddr_Validate (line 105) | func Test_NetAddr_Validate(t *testing.T) {
function TestTCPAddrConfig (line 122) | func TestTCPAddrConfig(t *testing.T) {
function Test_TransportType_UnmarshalText (line 155) | func Test_TransportType_UnmarshalText(t *testing.T) {
FILE: config/confignet/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configopaque/doc_test.go
function Example_opaqueString (line 15) | func Example_opaqueString() {
type ExampleConfigString (line 39) | type ExampleConfigString struct
function Example_opaqueSlice (line 44) | func Example_opaqueSlice() {
type ExampleConfigSlice (line 72) | type ExampleConfigSlice struct
function Example_opaqueMap (line 77) | func Example_opaqueMap() {
type ExampleConfigMap (line 102) | type ExampleConfigMap struct
FILE: config/configopaque/maplist.go
type Pair (line 17) | type Pair struct
type MapList (line 29) | type MapList
method Unmarshal (line 36) | func (ml *MapList) Unmarshal(conf *confmap.Conf) error {
method Validate (line 56) | func (ml MapList) Validate() error {
method Iter (line 79) | func (ml MapList) Iter(yield func(name string, value String) bool) {
method Get (line 90) | func (ml MapList) Get(name string) (val String, ok bool) {
method Set (line 103) | func (ml *MapList) Set(name string, val String) {
FILE: config/configopaque/maplist_test.go
constant headersList (line 17) | headersList = `
constant headersMap (line 25) | headersMap = `
constant headersBad1 (line 31) | headersBad1 = `
constant headersBad2 (line 36) | headersBad2 = `
constant headersDupe (line 40) | headersDupe = `
type testConfig (line 48) | type testConfig struct
function TestMapListDuality (line 52) | func TestMapListDuality(t *testing.T) {
function TestMapListUnmarshalError (line 72) | func TestMapListUnmarshalError(t *testing.T) {
function TestMapListValidate (line 94) | func TestMapListValidate(t *testing.T) {
function TestMapListMethods (line 104) | func TestMapListMethods(t *testing.T) {
function TestMapListNil (line 156) | func TestMapListNil(t *testing.T) {
FILE: config/configopaque/opaque.go
type String (line 12) | type String
method MarshalText (line 17) | func (s String) MarshalText() ([]byte, error) {
method String (line 23) | func (s String) String() string {
method GoString (line 29) | func (s String) GoString() string {
method MarshalBinary (line 34) | func (s String) MarshalBinary() (text []byte, err error) {
constant maskedString (line 14) | maskedString = "[REDACTED]"
FILE: config/configopaque/opaque_test.go
function TestStringMarshalText (line 25) | func TestStringMarshalText(t *testing.T) {
type TestStruct (line 34) | type TestStruct struct
function TestStringJSON (line 44) | func TestStringJSON(t *testing.T) {
function TestStringFmt (line 50) | func TestStringFmt(t *testing.T) {
function TestStringMarshalBinary (line 87) | func TestStringMarshalBinary(t *testing.T) {
FILE: config/configopaque/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configoptional/generated_package_test.go
function TestMain (line 11) | func TestMain(m *testing.M) {
FILE: config/configoptional/optional.go
type flavor (line 19) | type flavor
constant noneFlavor (line 22) | noneFlavor flavor = 0
constant defaultFlavor (line 23) | defaultFlavor flavor = 1
constant someFlavor (line 24) | someFlavor flavor = 2
type Optional (line 34) | type Optional struct
function deref (line 44) | func deref(t reflect.Type) reflect.Type {
function assertStructKind (line 55) | func assertStructKind[T any]() error {
function assertNoEnabledField (line 73) | func assertNoEnabledField[T any]() error {
function Some (line 95) | func Some[T any](value T) Optional[T] {
function Default (line 107) | func Default[T any](value T) Optional[T] {
function None (line 121) | func None[T any]() Optional[T] {
method HasValue (line 129) | func (o Optional[T]) HasValue() bool {
method Get (line 135) | func (o *Optional[T]) Get() *T {
method GetOrInsertDefault (line 151) | func (o *Optional[T]) GetOrInsertDefault() *T {
method Unmarshal (line 187) | func (o *Optional[T]) Unmarshal(conf *confmap.Conf) error {
method Marshal (line 232) | func (o Optional[T]) Marshal(conf *confmap.Conf) error {
method Validate (line 256) | func (o *Optional[T]) Validate() error {
FILE: config/configoptional/optional_test.go
type Config (line 21) | type Config struct
type Sub (line 25) | type Sub struct
type WithEnabled (line 29) | type WithEnabled struct
type WithEnabledOmitEmpty (line 33) | type WithEnabledOmitEmpty struct
type OmitEmpty (line 37) | type OmitEmpty struct
type NoMapstructure (line 41) | type NoMapstructure struct
function ptr (line 49) | func ptr[T any](v T) *T {
function TestDefaultPanics (line 53) | func TestDefaultPanics(t *testing.T) {
function TestEqualityDefault (line 105) | func TestEqualityDefault(t *testing.T) {
function TestNoneZeroVal (line 111) | func TestNoneZeroVal(t *testing.T) {
function TestNone (line 122) | func TestNone(t *testing.T) {
function ExampleNone (line 133) | func ExampleNone() {
function TestSome (line 158) | func TestSome(t *testing.T) {
function ExampleSome (line 171) | func ExampleSome() {
function TestDefault (line 199) | func TestDefault(t *testing.T) {
function ExampleDefault (line 209) | func ExampleDefault() {
function TestUnmarshalOptional (line 237) | func TestUnmarshalOptional(t *testing.T) {
function TestAddFieldEnabledFeatureGate (line 382) | func TestAddFieldEnabledFeatureGate(t *testing.T) {
function TestEnabledFalseResetsValue (line 534) | func TestEnabledFalseResetsValue(t *testing.T) {
function TestUnmarshalErrorEnabledInvalidType (line 551) | func TestUnmarshalErrorEnabledInvalidType(t *testing.T) {
function TestUnmarshalErrorEnabledField (line 571) | func TestUnmarshalErrorEnabledField(t *testing.T) {
function TestUnmarshalConfigPointer (line 580) | func TestUnmarshalConfigPointer(t *testing.T) {
function TestUnmarshalErr (line 594) | func TestUnmarshalErr(t *testing.T) {
type MyIntConfig (line 611) | type MyIntConfig struct
type MyConfig (line 614) | type MyConfig struct
function TestSquashedOptional (line 622) | func TestSquashedOptional(t *testing.T) {
function confFromYAML (line 638) | func confFromYAML(t *testing.T, yaml string) *confmap.Conf {
function TestComparePointerUnmarshal (line 647) | func TestComparePointerUnmarshal(t *testing.T) {
function TestOptionalMarshal (line 675) | func TestOptionalMarshal(t *testing.T) {
function TestComparePointerMarshal (line 718) | func TestComparePointerMarshal(t *testing.T) {
type invalid (line 768) | type invalid struct
method Validate (line 770) | func (invalid) Validate() error {
type hasNested (line 776) | type hasNested struct
function TestOptionalValidate (line 780) | func TestOptionalValidate(t *testing.T) {
type validatedConfig (line 792) | type validatedConfig struct
type optionalConfig (line 799) | type optionalConfig struct
method Validate (line 803) | func (n optionalConfig) Validate() error {
type someConfig (line 811) | type someConfig struct
function newDefaultValidatedConfig (line 815) | func newDefaultValidatedConfig() validatedConfig {
function newInvalidDefaultConfig (line 821) | func newInvalidDefaultConfig() validatedConfig {
function TestOptionalFileValidate (line 827) | func TestOptionalFileValidate(t *testing.T) {
FILE: config/configretry/backoff.go
function NewDefaultBackOffConfig (line 14) | func NewDefaultBackOffConfig() BackOffConfig {
type BackOffConfig (line 27) | type BackOffConfig struct
method Validate (line 47) | func (bs *BackOffConfig) Validate() error {
FILE: config/configretry/backoff_test.go
function TestNewDefaultBackOffSettings (line 14) | func TestNewDefaultBackOffSettings(t *testing.T) {
function TestInvalidInitialInterval (line 28) | func TestInvalidInitialInterval(t *testing.T) {
function TestInvalidRandomizationFactor (line 35) | func TestInvalidRandomizationFactor(t *testing.T) {
function TestInvalidMultiplier (line 44) | func TestInvalidMultiplier(t *testing.T) {
function TestZeroMultiplierIsValid (line 51) | func TestZeroMultiplierIsValid(t *testing.T) {
function TestInvalidMaxInterval (line 58) | func TestInvalidMaxInterval(t *testing.T) {
function TestInvalidMaxElapsedTime (line 65) | func TestInvalidMaxElapsedTime(t *testing.T) {
function TestDisabledWithInvalidValues (line 84) | func TestDisabledWithInvalidValues(t *testing.T) {
FILE: config/configretry/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configtelemetry/configtelemetry.go
constant LevelNone (line 14) | LevelNone Level = iota - 1
constant LevelBasic (line 16) | LevelBasic
constant LevelNormal (line 18) | LevelNormal
constant LevelDetailed (line 20) | LevelDetailed
constant levelNoneStr (line 22) | levelNoneStr = "None"
constant levelBasicStr (line 23) | levelBasicStr = "Basic"
constant levelNormalStr (line 24) | levelNormalStr = "Normal"
constant levelDetailedStr (line 25) | levelDetailedStr = "Detailed"
type Level (line 30) | type Level
method String (line 32) | func (l Level) String() string {
method MarshalText (line 47) | func (l Level) MarshalText() (text []byte, err error) {
method UnmarshalText (line 52) | func (l *Level) UnmarshalText(text []byte) error {
FILE: config/configtelemetry/configtelemetry_test.go
function TestUnmarshalText (line 19) | func TestUnmarshalText(t *testing.T) {
function TestUnmarshalTextNilLevel (line 64) | func TestUnmarshalTextNilLevel(t *testing.T) {
function TestLevelStringMarshal (line 69) | func TestLevelStringMarshal(t *testing.T) {
FILE: config/configtelemetry/package_test.go
function TestMain (line 12) | func TestMain(m *testing.M) {
FILE: config/configtls/clientcasfilereloader.go
type clientCAsFileReloader (line 16) | type clientCAsFileReloader struct
method getClientConfig (line 47) | func (r *clientCAsFileReloader) getClientConfig(original *tls.Config) ...
method reload (line 62) | func (r *clientCAsFileReloader) reload() {
method getLastError (line 74) | func (r *clientCAsFileReloader) getLastError() error {
method startWatching (line 80) | func (r *clientCAsFileReloader) startWatching() error {
method handleWatcherEvents (line 102) | func (r *clientCAsFileReload
Copy disabled (too large)
Download .json
Condensed preview — 2607 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (10,838K chars).
[
{
"path": ".checkapi.yaml",
"chars": 147,
"preview": "ignored_paths:\n - confmap/doc_test.go\nexcluded_files:\n - example_*.go\n - \"*_test.go\"\nunkeyed_literal_initialization:\n"
},
{
"path": ".chloggen/README.md",
"chars": 1452,
"preview": "### Changelog folder\n\nThis repo uses `chloggen` to manage its changelog files. You can find the source code for the tool"
},
{
"path": ".chloggen/TEMPLATE.yaml",
"chars": 960,
"preview": "# Use this changelog template to create an entry for release notes.\n\n# One of 'breaking', 'deprecation', 'new_component'"
},
{
"path": ".chloggen/aix_tier3.yaml",
"chars": 1014,
"preview": "# Use this changelog template to create an entry for release notes.\n\n# One of 'breaking', 'deprecation', 'new_component'"
},
{
"path": ".chloggen/alpha-profiles.yaml",
"chars": 1261,
"preview": "# Use this changelog template to create an entry for release notes.\n\n# One of 'breaking', 'deprecation', 'new_component'"
},
{
"path": ".chloggen/config.yaml",
"chars": 2564,
"preview": "change_logs:\n api: CHANGELOG-API.md\n user: CHANGELOG.md\ndefault_change_logs:\n - user\nentries_dir: .chloggen\ntem"
},
{
"path": ".chloggen/fix-mdatagen-entity-builder.yaml",
"chars": 193,
"preview": "change_type: bug_fix\ncomponent: cmd/mdatagen\nnote: Fix entity code generation so `extra_attributes` are emitted as resou"
},
{
"path": ".chloggen/mdatagen_fix_reporoot.yaml",
"chars": 1153,
"preview": "# Use this changelog template to create an entry for release notes.\n\n# One of 'breaking', 'deprecation', 'new_component'"
},
{
"path": ".chloggen/remove-resource-constant-labels.yaml",
"chars": 845,
"preview": "change_type: breaking\n\ncomponent: pkg/service\n\nnote: Remove `service_name`, `service_instance_id`, and `service_version`"
},
{
"path": ".chloggen/summary.tmpl",
"chars": 1103,
"preview": "{{- define \"entry\" -}}\n- `{{ .Component }}`: {{ .Note }} (\n{{- range $i, $issue := .Issues }}\n{{- if $i }}, {{ end -}}\n#"
},
{
"path": ".codecov.yml",
"chars": 403,
"preview": "codecov:\n branch: main\n # only use the latest copy on main branch\n strict_yaml_branch: main\n\ncoverage:\n precision: 2"
},
{
"path": ".gitattributes",
"chars": 375,
"preview": "# This file is documented at https://git-scm.com/docs/gitattributes.\n# Linguist-specific attributes are documented at\n# "
},
{
"path": ".github/ALLOWLIST",
"chars": 693,
"preview": "# Code generated by githubgen. DO NOT EDIT.\n#####################################################\n#\n# List of components"
},
{
"path": ".github/CODEOWNERS",
"chars": 6700,
"preview": "# Code generated by githubgen. DO NOT EDIT.\n#####################################################\n#\n# List of codeowners"
},
{
"path": ".github/ISSUE_TEMPLATE/bug_report.yaml",
"chars": 5393,
"preview": "name: Bug report\ndescription: Create a report to help us improve\nlabels: [\"bug\"]\nbody:\n - type: markdown\n attributes"
},
{
"path": ".github/ISSUE_TEMPLATE/component-graduation.md",
"chars": 3682,
"preview": "---\nname: Component Graduation\nabout: Graduate a component from beta to stable\ntitle: 'Graduate component X to stable'\nl"
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.yaml",
"chars": 3823,
"preview": "name: Feature request\ndescription: Suggest an idea for this project\nlabels: [\"feature request\"]\nbody:\n - type: dropdown"
},
{
"path": ".github/ISSUE_TEMPLATE/other.yaml",
"chars": 2995,
"preview": "name: Other issue\ndescription: Create a new issue to help us improve the collector\nbody:\n - type: dropdown\n id: comp"
},
{
"path": ".github/ISSUE_TEMPLATE/stabilization.md",
"chars": 1589,
"preview": "---\nname: Module stabilization\nabout: Stabilize a module before a 1.0 release\ntitle: 'Stabilize module X'\nlabels: 'stabi"
},
{
"path": ".github/ISSUE_TEMPLATE/vote.md",
"chars": 2775,
"preview": "---\nname: Vote\nabout: Vote to make a decision related to an RFC \ntitle: '[Vote] RFC #XXXX:'\nlabels: \"rfc:vote-needed\"\nas"
},
{
"path": ".github/actionlint.yaml",
"chars": 2482,
"preview": "self-hosted-runner:\n labels: []\n\nconfig-variables: null\n\npaths:\n .github/workflows/**/*.{yml,yaml}:\n ignore:\n "
},
{
"path": ".github/lychee.toml",
"chars": 131,
"preview": "include_fragments = true\n\naccept = [\"200..=299\", \"429\"]\n\nexclude = [\n \"^http(s)?://localhost\",\n \"^http(s)?://exam"
},
{
"path": ".github/pull_request_template.md",
"chars": 433,
"preview": "<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.\nEx. Adding a feature - Explain what this achieves."
},
{
"path": ".github/workflows/add-labels-and-owners.yml",
"chars": 787,
"preview": "name: 'Add labels and code owners to PR'\non:\n pull_request_target:\n types:\n - opened\n - synchronize\n "
},
{
"path": ".github/workflows/add-labels-command.yml",
"chars": 737,
"preview": "name: 'Add Labels'\non:\n issue_comment:\n types: [created]\n\npermissions: read-all\n\njobs:\n add-labels-command:\n if:"
},
{
"path": ".github/workflows/api-compatibility.yml",
"chars": 1980,
"preview": "# This GitHub action is used to compare API state snapshots of Main\n# to Head of the PR in order to validate releases ar"
},
{
"path": ".github/workflows/build-and-test-arm.yml",
"chars": 2310,
"preview": "name: build-and-test-arm\non:\n push:\n branches: [main]\n tags:\n - \"v[0-9]+.[0-9]+.[0-9]+*\"\n merge_group:\n "
},
{
"path": ".github/workflows/build-and-test-windows.yaml",
"chars": 3055,
"preview": "name: build-and-test-windows\non:\n push:\n branches: [main]\n tags:\n - \"v[0-9]+.[0-9]+.[0-9]+*\"\n merge_group:\n"
},
{
"path": ".github/workflows/build-and-test.yml",
"chars": 10302,
"preview": "name: build-and-test\non:\n push:\n branches: [main]\n tags:\n - \"v[0-9]+.[0-9]+.[0-9]+*\"\n merge_group:\n type"
},
{
"path": ".github/workflows/builder-integration-test.yaml",
"chars": 1197,
"preview": "name: Builder - Integration tests\n\non:\n # on changes to the main branch touching the builder\n push:\n branches: [mai"
},
{
"path": ".github/workflows/builder-snapshot.yaml",
"chars": 3411,
"preview": "name: Builder - Snapshot build\non:\n push:\n branches: [main]\n\n # on PRs touching the builder\n pull_request:\n bra"
},
{
"path": ".github/workflows/changelog.yml",
"chars": 3561,
"preview": "# This action requires that any PR targeting the main branch should touch at\n# least one CHANGELOG file. If a CHANGELOG "
},
{
"path": ".github/workflows/check-codeowners.yaml",
"chars": 2273,
"preview": "name: codeowners\non:\n push:\n branches: [main]\n paths:\n - \".github/CODEOWNERS\"\n - \"**/metadata.yaml\"\n "
},
{
"path": ".github/workflows/check-links.yaml",
"chars": 1572,
"preview": "name: check-links\non:\n push:\n branches: [main]\n pull_request:\n merge_group:\n types: [checks_requested]\n\nconcurr"
},
{
"path": ".github/workflows/check-merge-freeze.yml",
"chars": 1051,
"preview": "name: Merge freeze\n\non:\n pull_request:\n types:\n [\n opened,\n ready_for_review,\n synchronize"
},
{
"path": ".github/workflows/codeql-analysis.yml",
"chars": 1542,
"preview": "name: \"CodeQL Analysis\"\non:\n push:\n branches: [main]\n pull_request:\n\nconcurrency:\n group: ${{ github.workflow }}-$"
},
{
"path": ".github/workflows/contrib-tests.yml",
"chars": 3117,
"preview": "name: contrib-tests\non:\n push:\n branches: [main]\n tags:\n - v[0-9]+.[0-9]+.[0-9]+.*\n pull_request:\n types"
},
{
"path": ".github/workflows/fossa.yml",
"chars": 402,
"preview": "name: FOSSA scanning\n\non:\n push:\n branches:\n - main\n\npermissions:\n contents: read\n\njobs:\n fossa:\n runs-on:"
},
{
"path": ".github/workflows/go-benchmarks.yml",
"chars": 1609,
"preview": "name: CodSpeed Benchmarks\n\non:\n push:\n branches:\n - \"main\"\n pull_request:\n workflow_dispatch:\n\njobs:\n benchm"
},
{
"path": ".github/workflows/lint-workflow-files.yml",
"chars": 1207,
"preview": "name: Lint GitHub Workflow YAML Files\n\non:\n push:\n branches:\n - main\n pull_request:\n paths:\n - '.githu"
},
{
"path": ".github/workflows/milestone-add-to-pr.yml",
"chars": 1080,
"preview": "# This action adds the \"next release\" milestone to a pull request\n# when it is merged\n\nname: \"Project: Add PR to Milesto"
},
{
"path": ".github/workflows/perf.yml",
"chars": 1188,
"preview": "name: Automation - Performance\n\non:\n push:\n branches: [main]\n\npermissions: read-all\n\njobs:\n runperf:\n runs-on: u"
},
{
"path": ".github/workflows/ping-codeowners-issues.yml",
"chars": 608,
"preview": "name: 'Ping code owners on issues'\non:\n issues:\n types: [labeled]\n\npermissions: read-all\n\njobs:\n ping-owners:\n p"
},
{
"path": ".github/workflows/ping-codeowners-on-new-issue.yml",
"chars": 736,
"preview": "name: 'Ping code owners on a new issue'\non:\n issues:\n types: [opened]\n\npermissions: read-all\n\njobs:\n ping-owners-on"
},
{
"path": ".github/workflows/ping-codeowners-prs.yml",
"chars": 860,
"preview": "name: 'Ping code owners on PRs'\non:\n pull_request_target:\n types:\n - labeled\n - ready_for_review\n\npermissi"
},
{
"path": ".github/workflows/prepare-release.yml",
"chars": 6634,
"preview": "name: Automation - Prepare Release\n\non:\n workflow_dispatch:\n # Determine the version number that will be assigned to"
},
{
"path": ".github/workflows/release-branch.yml",
"chars": 1492,
"preview": "name: Automation - Release Branch\n\non:\n push:\n tags:\n # Trigger on beta version tags (0.x.x series) to create r"
},
{
"path": ".github/workflows/rerun-workflows.yml",
"chars": 780,
"preview": "name: \"Rerun Failed Workflows\"\non:\n issue_comment:\n types:\n - created\n\npermissions: read-all\n\njobs:\n rerun-fai"
},
{
"path": ".github/workflows/scorecard.yml",
"chars": 2786,
"preview": "name: Scorecard supply-chain security\n\non:\n # For Branch-Protection check. Only the default branch is supported. See\n "
},
{
"path": ".github/workflows/scripts/add-labels-and-owners.sh",
"chars": 6388,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n# Adds code owners w"
},
{
"path": ".github/workflows/scripts/add-labels-command.sh",
"chars": 2528,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n#\n\nset -euo pipefail"
},
{
"path": ".github/workflows/scripts/check-merge-freeze.sh",
"chars": 840,
"preview": "#!/bin/bash -e\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\n# Check for [chore] Prepar"
},
{
"path": ".github/workflows/scripts/free-disk-space.sh",
"chars": 582,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\necho \"Available disk "
},
{
"path": ".github/workflows/scripts/get-codeowners.sh",
"chars": 1070,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n# This script checks"
},
{
"path": ".github/workflows/scripts/get-components.sh",
"chars": 301,
"preview": "#!/usr/bin/env sh\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n# Get a list of compon"
},
{
"path": ".github/workflows/scripts/ping-codeowners-issues.sh",
"chars": 825,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n#\n\nset -euo pipefail"
},
{
"path": ".github/workflows/scripts/ping-codeowners-on-new-issue.sh",
"chars": 3641,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n#\n\nset -euo pipefail"
},
{
"path": ".github/workflows/scripts/ping-codeowners-prs.sh",
"chars": 1751,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n\nset -euo pipefail\n\n"
},
{
"path": ".github/workflows/scripts/release-branch.sh",
"chars": 4133,
"preview": "#!/bin/bash -ex\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\n# --- Configuration ---\nU"
},
{
"path": ".github/workflows/scripts/release-check-blockers.sh",
"chars": 303,
"preview": "#!/bin/bash -ex\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\nBLOCKERS=$( gh issue list"
},
{
"path": ".github/workflows/scripts/release-check-build-status.sh",
"chars": 607,
"preview": "#!/bin/bash -ex\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\nBRANCH=main\nWORKFLOW=buil"
},
{
"path": ".github/workflows/scripts/release-create-tracking-issue.sh",
"chars": 1418,
"preview": "#!/bin/bash -ex\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\nRELEASE_VERSION=v${CANDID"
},
{
"path": ".github/workflows/scripts/release-prepare-release.sh",
"chars": 1937,
"preview": "#!/bin/bash -ex\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\nif [ \"${CANDIDATE_STABLE}"
},
{
"path": ".github/workflows/scripts/rerun-failed-workflows.sh",
"chars": 1037,
"preview": "#!/usr/bin/env bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n#\n\nset -euo pipefail\n\n"
},
{
"path": ".github/workflows/scripts/win-required-ports.ps1",
"chars": 663,
"preview": "<#\n.SYNOPSIS\n This script ensures that the ports required by the default configuration of the collector are available"
},
{
"path": ".github/workflows/shellcheck.yml",
"chars": 439,
"preview": "name: Shellcheck lint\non:\n push:\n branches: [main]\n pull_request:\n branches: [main]\n merge_group:\n types: [c"
},
{
"path": ".github/workflows/sourcecode-release.yaml",
"chars": 2805,
"preview": "name: Source Code - Release\n\non:\n push:\n tags:\n - \"v*\"\n\npermissions:\n contents: read\n\njobs:\n goreleaser:\n "
},
{
"path": ".github/workflows/spell-check.yaml",
"chars": 507,
"preview": "name: Spell Check\n\non:\n push:\n branches: [main]\n pull_request:\n\npermissions:\n contents: read\n\njobs:\n spell-check:"
},
{
"path": ".github/workflows/stale-pr.yaml",
"chars": 840,
"preview": "name: \"Close stale pull requests\"\non:\n schedule:\n - cron: \"12 3 * * *\" # arbitrary time not to DDOS GitHub\n\npermissi"
},
{
"path": ".github/workflows/survey-on-merged-pr.yml",
"chars": 1888,
"preview": "name: Survey on Merged PR by Non-Member\n\non:\n pull_request_target:\n types: [closed]\n\npermissions:\n contents: read\n\n"
},
{
"path": ".github/workflows/tidy-dependencies.yml",
"chars": 1792,
"preview": "name: \"Project: Tidy\"\non:\n pull_request_target:\n types: [opened, ready_for_review, synchronize, reopened, labeled, u"
},
{
"path": ".github/workflows/utils/cspell.json",
"chars": 11290,
"preview": "{\n \"version\": \"0.2\",\n \"language\": \"en\",\n \"words\": [\n \"aggregatable\",\n \"Alolita\",\n \"Andrzej\",\n "
},
{
"path": ".gitignore",
"chars": 367,
"preview": "bin/\ndist/\n/local\n.schemas\n\n# GoLand IDEA\n/.idea/\n*.iml\n\n# VS Code\n.vscode/\n.devcontainer/\n\n# Cursor\n.cursor\n\n# Emacs\n*~"
},
{
"path": ".golangci.yml",
"chars": 9499,
"preview": "formatters:\n enable:\n - gofumpt\n - goimports\n\n settings:\n gofmt:\n # simplify code: gofmt with `-s` optio"
},
{
"path": ".markdownlint.yaml",
"chars": 1457,
"preview": "# markdownlint configuration for OpenTelemetry Collector\n# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rule"
},
{
"path": ".markdownlintignore",
"chars": 145,
"preview": "# Changelogs (autogenerated, chloggen manages structure)\nCHANGELOG.md\nCHANGELOG-API.md\n\n# GitHub templates (intentional "
},
{
"path": "AGENTS.md",
"chars": 1614,
"preview": "# AGENTS.md\n\nThis file is here to steer AI assisted PRs towards being high quality and valuable contributions\nthat do no"
},
{
"path": "CHANGELOG-API.md",
"chars": 86609,
"preview": "<!-- This file is autogenerated. See CONTRIBUTING.md for instructions to add an entry. -->\n\n# Go API Changelog\n\nThis cha"
},
{
"path": "CHANGELOG.md",
"chars": 265546,
"preview": "<!-- This file is autogenerated. See CONTRIBUTING.md for instructions to add an entry. -->\n\n# Changelog\n\nStarting with v"
},
{
"path": "CLAUDE.md",
"chars": 11,
"preview": "@AGENTS.md\n"
},
{
"path": "CONTRIBUTING.md",
"chars": 22651,
"preview": "# Contributing Guide\n\nWe'd love your help! Please join our weekly [SIG\nmeeting](https://github.com/open-telemetry/commun"
},
{
"path": "LICENSE",
"chars": 11358,
"preview": "\n Apache License\n Version 2.0, January 2004\n "
},
{
"path": "Makefile",
"chars": 13257,
"preview": "include ./Makefile.Common\n\n# This is the code that we want to run lint, etc.\nALL_SRC := $(shell find . -name '*.go' \\\n\t\t"
},
{
"path": "Makefile.Common",
"chars": 3021,
"preview": "SHELL = /bin/bash\n# ALL_PKGS is the list of all packages where ALL_SRC files reside.\nALL_PKGS := $(sort $(shell go list "
},
{
"path": "README.md",
"chars": 24539,
"preview": "---\n\n<p align=\"center\">\n <strong>\n <a href=\"https://opentelemetry.io/docs/collector/getting-started/\">Getting Starte"
},
{
"path": "VERSIONING.md",
"chars": 14164,
"preview": "# Versioning and stability\n\nThe OpenTelemetry Collector SIG produces several artifacts for [a variety of audiences](CONT"
},
{
"path": "client/Makefile",
"chars": 27,
"preview": "include ../Makefile.Common\n"
},
{
"path": "client/client.go",
"chars": 5916,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\n// Package client contains generic repres"
},
{
"path": "client/client_test.go",
"chars": 2337,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\n// Package client contains generic repres"
},
{
"path": "client/doc_test.go",
"chars": 2197,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage client_test\n\nimport (\n\t\"context\"\n"
},
{
"path": "client/go.mod",
"chars": 1008,
"preview": "module go.opentelemetry.io/collector/client\n\ngo 1.25.0\n\nrequire (\n\tgithub.com/stretchr/testify v1.11.1\n\tgo.opentelemetry"
},
{
"path": "client/go.sum",
"chars": 4057,
"preview": "github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/davecgh/go-spew v1.1"
},
{
"path": "client/metadata.yaml",
"chars": 120,
"preview": "type: client\ngithub_project: open-telemetry/opentelemetry-collector\n\nstatus:\n disable_codecov_badge: true\n class: pkg\n"
},
{
"path": "client/package_test.go",
"chars": 199,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage client\n\nimport (\n\t\"testing\"\n\n\t\"go"
},
{
"path": "cmd/builder/Makefile",
"chars": 543,
"preview": "include ../../Makefile.Common\n\n.PHONY: ocb\nocb:\n\tCGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/ocb_$(GOOS)_$(GOARC"
},
{
"path": "cmd/builder/README.md",
"chars": 11359,
"preview": "# OpenTelemetry Collector Builder (ocb)\n\nThis program generates a custom OpenTelemetry Collector binary based on a given"
},
{
"path": "cmd/builder/RELEASE.md",
"chars": 535,
"preview": "# Releasing the OpenTelemetry Collector Builder\n\nThis project uses [`goreleaser`](https://github.com/goreleaser/goreleas"
},
{
"path": "cmd/builder/go.mod",
"chars": 1483,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\nmodule go.opentelemetry.io/collector/cmd/"
},
{
"path": "cmd/builder/go.sum",
"chars": 5590,
"preview": "github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=\ngithub.com/creack/pty v1."
},
{
"path": "cmd/builder/header.txt",
"chars": 560,
"preview": "Copyright The OpenTelemetry Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use thi"
},
{
"path": "cmd/builder/internal/.gitignore",
"chars": 32,
"preview": "# tmp folder used by tests\ntmp/\n"
},
{
"path": "cmd/builder/internal/builder/config.go",
"chars": 9247,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder // import \"go.opentelemet"
},
{
"path": "cmd/builder/internal/builder/config_test.go",
"chars": 9993,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder\n\nimport (\n\t\"os\"\n\t\"strings"
},
{
"path": "cmd/builder/internal/builder/main.go",
"chars": 8273,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder // import \"go.opentelemet"
},
{
"path": "cmd/builder/internal/builder/main_test.go",
"chars": 14435,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\""
},
{
"path": "cmd/builder/internal/builder/package_test.go",
"chars": 200,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder\n\nimport (\n\t\"testing\"\n\n\t\"g"
},
{
"path": "cmd/builder/internal/builder/templates/components.go.tmpl",
"chars": 3223,
"preview": "// Code generated by \"go.opentelemetry.io/collector/cmd/builder\". DO NOT EDIT.\n\npackage main\n\nimport (\n\t\"go.opentelemetr"
},
{
"path": "cmd/builder/internal/builder/templates/go.mod.tmpl",
"chars": 1682,
"preview": "// Code generated by \"go.opentelemetry.io/collector/cmd/builder\". DO NOT EDIT.\n\nmodule {{.Distribution.Module}}\n\ngo 1.25"
},
{
"path": "cmd/builder/internal/builder/templates/main.go.tmpl",
"chars": 1893,
"preview": "// Code generated by \"go.opentelemetry.io/collector/cmd/builder\". DO NOT EDIT.\n\n// Program {{ .Distribution.Name }} is a"
},
{
"path": "cmd/builder/internal/builder/templates/main_others.go.tmpl",
"chars": 247,
"preview": "// Code generated by \"go.opentelemetry.io/collector/cmd/builder\". DO NOT EDIT.\n\n//go:build !windows\n\npackage main\n\nimpor"
},
{
"path": "cmd/builder/internal/builder/templates/main_windows.go.tmpl",
"chars": 869,
"preview": "// Code generated by \"go.opentelemetry.io/collector/cmd/builder\". DO NOT EDIT.\n\n//go:build windows\n\npackage main\n\nimport"
},
{
"path": "cmd/builder/internal/builder/templates.go",
"chars": 992,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage builder // import \"go.opentelemet"
},
{
"path": "cmd/builder/internal/command.go",
"chars": 5515,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/builder/internal/command_init.go",
"chars": 3562,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/builder/internal/command_init_test.go",
"chars": 2288,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/builder/internal/command_test.go",
"chars": 3706,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"bytes\"\n\t\"str"
},
{
"path": "cmd/builder/internal/config/default.go",
"chars": 547,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage config // import \"go.opentelemetr"
},
{
"path": "cmd/builder/internal/config/default.yaml",
"chars": 2005,
"preview": "# NOTE:\n# This builder configuration is NOT used to build any official binary.\n# To see the builder manifests used for o"
},
{
"path": "cmd/builder/internal/init/templates/.gitignore.tmpl",
"chars": 7,
"preview": "build/\n"
},
{
"path": "cmd/builder/internal/init/templates/Makefile.tmpl",
"chars": 405,
"preview": "GOMODULES := $(shell find . -mindepth 2 \\\n\t\t\t\t\t\t\t -type f \\\n\t\t\t\t\t\t\t -name \"go.mod\" \\\n\t\t\t\t\t\t\t -not -path \"./internal/tool"
},
{
"path": "cmd/builder/internal/init/templates/README.md.tmpl",
"chars": 1895,
"preview": "# {{.Name}} Collector\n\nWelcome to your new custom OpenTelemetry Collector!\nThis Collector allows you to configure the co"
},
{
"path": "cmd/builder/internal/init/templates/config.yaml.tmpl",
"chars": 383,
"preview": "receivers:\n otlp:\n protocols:\n grpc:\n endpoint: 0.0.0.0:4317\n http:\n endpoint: 0.0.0.0:4318\n"
},
{
"path": "cmd/builder/internal/init/templates/go.mod.tmpl",
"chars": 74,
"preview": "module {{.Name}}\n\ngo 1.25\n\ntool go.opentelemetry.io/collector/cmd/builder\n"
},
{
"path": "cmd/builder/internal/init/templates/manifest.yaml.tmpl",
"chars": 273,
"preview": "dist:\n name: {{.Name}}\n description: {{.Description}}\n output_path: ./build/collector\n\nexporters:\n - gomod: go.opent"
},
{
"path": "cmd/builder/internal/package_test.go",
"chars": 201,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"testing\"\n\n\t\""
},
{
"path": "cmd/builder/internal/version.go",
"chars": 783,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/builder/main.go",
"chars": 318,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.co"
},
{
"path": "cmd/builder/metadata.yaml",
"chars": 204,
"preview": "type: builder\ngithub_project: open-telemetry/opentelemetry-collector\n\nstatus:\n disable_codecov_badge: true\n class: cmd"
},
{
"path": "cmd/builder/test/README.md",
"chars": 389,
"preview": "# Testing for the OpenTelemetry Collector Builder\n\nThis is a set of end-to-end tests for the builder. As such, it includ"
},
{
"path": "cmd/builder/test/core.builder.yaml",
"chars": 350,
"preview": "dist:\n name: core\n module: go.opentelemetry.io/collector/builder/test/core\n go: ${GOBIN}\n\nextensions:\n - gomod: go.o"
},
{
"path": "cmd/builder/test/core.otel.yaml",
"chars": 247,
"preview": "extensions:\n zpages:\n\nreceivers:\n otlp:\n protocols:\n grpc:\n\nprocessors:\n\nexporters:\n debug:\n\nservice:\n exten"
},
{
"path": "cmd/builder/test/test.sh",
"chars": 5950,
"preview": "#!/bin/bash\n#\n# Copyright The OpenTelemetry Authors\n# SPDX-License-Identifier: Apache-2.0\n\nSCRIPT_DIR=$( cd -- \"$( dirna"
},
{
"path": "cmd/githubgen/allowlist.txt",
"chars": 0,
"preview": ""
},
{
"path": "cmd/mdatagen/Makefile",
"chars": 30,
"preview": "include ../../Makefile.Common\n"
},
{
"path": "cmd/mdatagen/README.md",
"chars": 10735,
"preview": "# Metadata Generator\n\n<!-- status autogenerated section -->\n| Status | |\n| ------------- |-----------|\n"
},
{
"path": "cmd/mdatagen/generated_package_test.go",
"chars": 163,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage main\n\nimport (\n\t\"testing\"\n\n\t\"go.uber.org/goleak\"\n)\n\nfunc TestMain(m"
},
{
"path": "cmd/mdatagen/go.mod",
"chars": 11088,
"preview": "module go.opentelemetry.io/collector/cmd/mdatagen\n\ngo 1.25.0\n\nrequire (\n\tgithub.com/google/go-cmp v0.7.0\n\tgithub.com/spf"
},
{
"path": "cmd/mdatagen/go.sum",
"chars": 12415,
"preview": "github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=\ngithub.com/cespare/xxhash/v2 v2.3.0/"
},
{
"path": "cmd/mdatagen/internal/cfggen/generation.go",
"chars": 7776,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/generation_test.go",
"chars": 22806,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"testing\"\n\n\t\"gi"
},
{
"path": "cmd/mdatagen/internal/cfggen/loader.go",
"chars": 6080,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/loader_test.go",
"chars": 19167,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"net/http\"\n\t\"ne"
},
{
"path": "cmd/mdatagen/internal/cfggen/model.go",
"chars": 5945,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/model_test.go",
"chars": 7066,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"testing\"\n\n\t\"gi"
},
{
"path": "cmd/mdatagen/internal/cfggen/namespace.go",
"chars": 4182,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/namespace_test.go",
"chars": 10050,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"testing\"\n\n\t\"gi"
},
{
"path": "cmd/mdatagen/internal/cfggen/resolver.go",
"chars": 6782,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/resolver_test.go",
"chars": 31247,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"fmt\"\n\t\"testing"
},
{
"path": "cmd/mdatagen/internal/cfggen/type_ref.go",
"chars": 4026,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/type_ref_test.go",
"chars": 6577,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"testing\"\n\n\t\"gi"
},
{
"path": "cmd/mdatagen/internal/cfggen/writer.go",
"chars": 580,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen // import \"go.opentelemetr"
},
{
"path": "cmd/mdatagen/internal/cfggen/writer_test.go",
"chars": 844,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage cfggen\n\nimport (\n\t\"os\"\n\t\"path/fil"
},
{
"path": "cmd/mdatagen/internal/command.go",
"chars": 20205,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/command_test.go",
"chars": 32019,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"bytes\"\n\t\"fmt"
},
{
"path": "cmd/mdatagen/internal/embedded_templates.go",
"chars": 416,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/embedded_templates_test.go",
"chars": 2158,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"io/fs\"\n\t\"pat"
},
{
"path": "cmd/mdatagen/internal/event.go",
"chars": 926,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/event_test.go",
"chars": 871,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"testing\"\n\n\t\""
},
{
"path": "cmd/mdatagen/internal/helpers/lint.go",
"chars": 1601,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage helpers // import \"go.opentelemet"
},
{
"path": "cmd/mdatagen/internal/helpers/lint_test.go",
"chars": 1249,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage helpers\n\nimport (\n\t\"testing\"\n\n\t\"g"
},
{
"path": "cmd/mdatagen/internal/helpers/packages.go",
"chars": 1390,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage helpers // import \"go.opentelemet"
},
{
"path": "cmd/mdatagen/internal/helpers/packages_test.go",
"chars": 3475,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage helpers\n\nimport (\n\t\"os\"\n\t\"path/fi"
},
{
"path": "cmd/mdatagen/internal/loader.go",
"chars": 2644,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/loader_test.go",
"chars": 28843,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"os\"\n\t\"path/f"
},
{
"path": "cmd/mdatagen/internal/metadata.go",
"chars": 28009,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/metadata_test.go",
"chars": 14503,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"testing\"\n\n\t\""
},
{
"path": "cmd/mdatagen/internal/metric.go",
"chars": 11524,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal // import \"go.openteleme"
},
{
"path": "cmd/mdatagen/internal/metric_test.go",
"chars": 1769,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage internal\n\nimport (\n\t\"testing\"\n\n\t\""
},
{
"path": "cmd/mdatagen/internal/sampleconnector/doc.go",
"chars": 318,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\n// Generate a test metrics builder from a"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/documentation.md",
"chars": 5306,
"preview": "[comment]: <> (Code generated by mdatagen. DO NOT EDIT.)\n\n# sample\n\n## Default Metrics\n\nThe following metrics are emitte"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/factory.go",
"chars": 1800,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage sampleconnector // import \"go.ope"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/generated_component_test.go",
"chars": 3496,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n//go:build !freebsd && !illumos\n\npackage sampleconnector\n\nimport (\n\t\"context"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/generated_package_test.go",
"chars": 174,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage sampleconnector\n\nimport (\n\t\"testing\"\n\n\t\"go.uber.org/goleak\"\n)\n\nfunc"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/config.schema.yaml",
"chars": 12144,
"preview": "# Code generated by mdatagen. DO NOT EDIT.\n$defs:\n metrics_config:\n description: MetricsConfig provides config for s"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config.go",
"chars": 16088,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"fmt\"\n\n\t\"go.opentelemetry.io/collector/confmap\""
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config_test.go",
"chars": 9089,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"path/filepath\"\n\t\"testing\"\n\n\t\"github.com/google"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_entity_metrics.go",
"chars": 5416,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"fmt\"\n\t\"strconv\"\n\n\t\"go.opentelemetry.io/collect"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_entity_metrics_test.go",
"chars": 5936,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_metrics.go",
"chars": 37907,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"fmt\"\n\t\"slices\"\n\t\"strconv\"\n\t\"time\"\n\n\tconvention"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_metrics_test.go",
"chars": 22495,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_resource.go",
"chars": 3350,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"go.opentelemetry.io/collector/pdata/pcommon\"\n)"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_resource_test.go",
"chars": 3271,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_status.go",
"chars": 399,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"go.opentelemetry.io/collector/component\"\n)\n\nva"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/internal/metadata/testdata/config.yaml",
"chars": 4786,
"preview": "default:\nall_set:\n metrics:\n default.metric:\n enabled: true\n attributes: [\"string_attr\",\"state\",\"enum_attr"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/metadata.yaml",
"chars": 5524,
"preview": "# Sample metadata file with all available configurations for a connector.\n\ntype: sample\ndisplay_name: Sample Connector\nd"
},
{
"path": "cmd/mdatagen/internal/sampleconnector/metrics_test.go",
"chars": 1125,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage sampleconnector\n\nimport (\n\t\"conte"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/doc.go",
"chars": 281,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\n// Generate a sample entity-based metrics"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/documentation.md",
"chars": 2076,
"preview": "[comment]: <> (Code generated by mdatagen. DO NOT EDIT.)\n\n# sampleentity\n\n## Default Metrics\n\nThe following metrics are "
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/factory.go",
"chars": 1066,
"preview": "// Copyright The OpenTelemetry Authors\n// SPDX-License-Identifier: Apache-2.0\n\npackage sampleentityreceiver // import \"g"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/generated_component_test.go",
"chars": 2655,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage sampleentityreceiver\n\nimport (\n\t\"context\"\n\t\"testing\"\n\n\t\"github.com/"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/generated_package_test.go",
"chars": 179,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage sampleentityreceiver\n\nimport (\n\t\"testing\"\n\n\t\"go.uber.org/goleak\"\n)\n"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/config.schema.yaml",
"chars": 5864,
"preview": "# Code generated by mdatagen. DO NOT EDIT.\n$defs:\n metrics_config:\n description: MetricsConfig provides config for s"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_config.go",
"chars": 3471,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"go.opentelemetry.io/collector/confmap\"\n\t\"go.op"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_config_test.go",
"chars": 4174,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"path/filepath\"\n\t\"testing\"\n\n\t\"github.com/google"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_entity_metrics.go",
"chars": 6466,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"go.opentelemetry.io/collector/pdata/pcommon\"\n\t"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_entity_metrics_test.go",
"chars": 7661,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_metrics.go",
"chars": 17000,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"time\"\n\n\tconventions \"go.opentelemetry.io/otel/"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_metrics_test.go",
"chars": 5579,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_resource.go",
"chars": 1991,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"go.opentelemetry.io/collector/pdata/pcommon\"\n)"
},
{
"path": "cmd/mdatagen/internal/sampleentityreceiver/internal/metadata/generated_resource_test.go",
"chars": 1913,
"preview": "// Code generated by mdatagen. DO NOT EDIT.\n\npackage metadata\n\nimport (\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert"
}
]
// ... and 2407 more files (download for full content)
About this extraction
This page contains the full source code of the open-telemetry/opentelemetry-collector GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 2607 files (9.5 MB), approximately 2.6M tokens, and a symbol index with 12415 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.