Skip to content

Conversation

@martincostello
Copy link
Member

See #3079 (comment).

Changes

Make TFM-specific public API baselines not use the specific TFM version.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Make TFM-specific public API baselines not use the specific TFM version.

See open-telemetry#3079 (comment).
Copilot AI review requested due to automatic review settings September 8, 2025 13:49
@martincostello martincostello requested a review from a team as a code owner September 8, 2025 13:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the public API baseline configuration to use target framework identifiers instead of specific target framework monikers (TFMs). This allows for more flexible TFM-specific public API baselines that don't tie to specific framework versions.

  • Adds MSBuild function call to extract framework identifier from target framework
  • Enables framework-specific API baselines without version-specific constraints

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added infra Infra work - CI/CD, code coverage, linters comp:extensions.aws Things related to OpenTelemetry.Extensions.AWS comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient comp:instrumentation.wcf Things related to OpenTelemetry.Instrumentation.Wcf comp:resources.aws Things related to OpenTelemetry.Resources.AWS labels Sep 8, 2025
@codecov
Copy link

codecov bot commented Sep 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.61%. Comparing base (3f072fa) to head (b508e2a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3083      +/-   ##
==========================================
- Coverage   69.81%   69.61%   -0.20%     
==========================================
  Files         410      420      +10     
  Lines       16266    16315      +49     
==========================================
+ Hits        11356    11358       +2     
- Misses       4910     4957      +47     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 83.73% <ø> (ø)
unittests-Exporter.Geneva 53.33% <ø> (-0.14%) ⬇️
unittests-Exporter.InfluxDB 95.14% <ø> (ø)
unittests-Exporter.Instana 74.86% <ø> (ø)
unittests-Exporter.OneCollector 94.61% <ø> (ø)
unittests-Extensions 90.65% <ø> (-0.47%) ⬇️
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 94.11% <ø> (ø)
unittests-Instrumentation.AWS 83.80% <ø> (ø)
unittests-Instrumentation.AspNet 75.18% <ø> (+0.24%) ⬆️
unittests-Instrumentation.AspNetCore 70.76% <ø> (ø)
unittests-Instrumentation.Cassandra 23.52% <ø> (?)
unittests-Instrumentation.ConfluentKafka 14.10% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.12% <ø> (ø)
unittests-Instrumentation.EntityFrameworkCore 80.56% <ø> (ø)
unittests-Instrumentation.EventCounters 76.36% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.42% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 79.61% <ø> (ø)
unittests-Instrumentation.Hangfire 84.61% <ø> (ø)
unittests-Instrumentation.Http 74.18% <ø> (ø)
unittests-Instrumentation.Owin 88.62% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.76% <ø> (ø)
unittests-Instrumentation.Runtime 100.00% <ø> (ø)
unittests-Instrumentation.ServiceFabricRemoting 34.54% <ø> (ø)
unittests-Instrumentation.SqlClient 86.68% <ø> (ø)
unittests-Instrumentation.StackExchangeRedis 70.31% <ø> (ø)
unittests-Instrumentation.Wcf 78.95% <ø> (ø)
unittests-OpAmp.Client 61.08% <ø> (ø)
unittests-PersistentStorage 65.88% <ø> (ø)
unittests-Resources.AWS 74.42% <ø> (ø)
unittests-Resources.Azure 85.31% <ø> (ø)
unittests-Resources.Container 67.34% <ø> (ø)
unittests-Resources.Gcp 71.42% <ø> (ø)
unittests-Resources.Host 72.56% <ø> (-1.35%) ⬇️
unittests-Resources.OperatingSystem 76.98% <ø> (ø)
unittests-Resources.Process 100.00% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 88.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 16 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Kielek Kielek merged commit dc6cf9e into open-telemetry:main Sep 9, 2025
233 of 234 checks passed
@martincostello martincostello deleted the simplify-publicapi-baselines branch September 9, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:extensions.aws Things related to OpenTelemetry.Extensions.AWS comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient comp:instrumentation.wcf Things related to OpenTelemetry.Instrumentation.Wcf comp:resources.aws Things related to OpenTelemetry.Resources.AWS infra Infra work - CI/CD, code coverage, linters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants