Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Migrate the "generate" make target to mdatagen from core repo #31609

Merged
merged 1 commit into from Mar 6, 2024

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Mar 5, 2024

This change migrates generate make target from using the deprecated cmd/mdatagen in this repository to mdategen defined in core repository.

To avoid breaking changes for the end users, we keep the scope names used in this repo as before. This required defining them explicitly in metadata.yaml files. We can update them after open-telemetry/opentelemetry-collector#9494 and #21469 are resolved.

Taking the opportunity that the scope names can be explicitly defined, this PR also updates missing scope names for extensions with inconsistent package names e.g.: awsproxy and jaegerremotesampling. It's not a breaking change because the generated meter and tracer are not being used yet.

This change unblocks #30495

@dmitryax
Copy link
Member Author

dmitryax commented Mar 5, 2024

failing tests should be fixed in #31610

internal/tools/go.mod Outdated Show resolved Hide resolved
@dmitryax dmitryax force-pushed the migrate-mdatagen branch 3 times, most recently from 51c398b to 4abe78d Compare March 6, 2024 00:35
This change migrates `generate` make target from using deprecated cmd/mdatagen defined in this repo to mdategen defined in core repository.

In order to avoid breaking changes for end users, we keep the scope names used in this repo the same as before. This required defining them explicitly in metadata.yaml files. We can update them after open-telemetry/opentelemetry-collector#9494 and open-telemetry#21469 are resolver.

Taking the opportunity that that the scope names can be explicitly defined, this PR also updates missing scope names for extensions with inconsistent package names e.g.: awsproxy and jaegerremotesampling. It's not a breaking change because the generated meter and tracer are not being used yet.
@dmitryax dmitryax merged commit be04db1 into open-telemetry:main Mar 6, 2024
142 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 6, 2024
@dmitryax dmitryax deleted the migrate-mdatagen branch March 6, 2024 01:17
DougManton pushed a commit to DougManton/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…open-telemetry#31609)

This change migrates `generate` make target from using the deprecated
`cmd/mdatagen` in this repository to mdategen defined in core
repository.

To avoid breaking changes for the end users, we keep the scope names
used in this repo as before. This required defining them explicitly in
metadata.yaml files. We can update them after
open-telemetry/opentelemetry-collector#9494
and
open-telemetry#21469
are resolved.

Taking the opportunity that the scope names can be explicitly defined,
this PR also updates missing scope names for extensions with
inconsistent package names e.g.: `awsproxy` and `jaegerremotesampling`.
It's not a breaking change because the generated meter and tracer are
not being used yet.

This change unblocks
open-telemetry#30495
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…open-telemetry#31609)

This change migrates `generate` make target from using the deprecated
`cmd/mdatagen` in this repository to mdategen defined in core
repository.

To avoid breaking changes for the end users, we keep the scope names
used in this repo as before. This required defining them explicitly in
metadata.yaml files. We can update them after
open-telemetry/opentelemetry-collector#9494
and
open-telemetry#21469
are resolved.

Taking the opportunity that the scope names can be explicitly defined,
this PR also updates missing scope names for extensions with
inconsistent package names e.g.: `awsproxy` and `jaegerremotesampling`.
It's not a breaking change because the generated meter and tracer are
not being used yet.

This change unblocks
open-telemetry#30495
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/mdatagen mdatagen command connector/count connector/datadog connector/exceptions connector/failover connector/routing connector/servicegraph connector/spanmetrics exporter/alertmanager exporter/alibabacloudlogservice Alibaba components exporter/awscloudwatchlogs awscloudwatchlogs exporter exporter/awsemf awsemf exporter exporter/awskinesis exporter/awss3 exporter/awsxray exporter/azuredataexplorer exporter/azuremonitor exporter/carbon exporter/cassandra exporter/clickhouse exporter/coralogix exporter/datadog Datadog components exporter/dataset exporter/dynatrace exporter/elasticsearch exporter/file exporter/googlecloud exporter/googlecloudpubsub exporter/googlemanagedprometheus Google Managed Prometheus exporter exporter/honeycombmarker exporter/influxdb exporter/instana exporter/kafka exporter/kinetica exporter/loadbalancing exporter/logicmonitor exporter/logzio exporter/loki Loki Exporter exporter/mezmo exporter/opencensus exporter/opensearch exporter/otelarrow exporter/prometheus exporter/prometheusremotewrite exporter/pulsar exporter/sapm exporter/sentry exporter/signalfx exporter/skywalking exporter/splunkhec exporter/sumologic exporter/syslog exporter/tencentcloudlogservice exporter/zipkin extension/ack extension/asapauth extension/awsproxy extension/basicauth extension/bearertokenauth extension/encoding extension/headerssetter extension/healthcheck Health Check Extension extension/httpforwarder extension/jaegerremotesampling extension/oauth2clientauth extension/observer extension/oidcauth extension/opamp extension/pprof extension/remotetap extension/sigv4auth extension/solarwindsapmsettings extension/storage extension/sumologic internal/tools processor/attributes Attributes processor processor/cumulativetodelta Cumulative To Delta processor processor/deltatocumulative processor/deltatorate Delta To Rate processor processor/filter Filter processor processor/groupbyattrs Group By Attributes processor processor/groupbytrace Group By Trace processor processor/interval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants