Skip to content

Conversation

@martincostello
Copy link
Member

@martincostello martincostello commented Feb 5, 2026

Changes

Add an example for an ASP.NET Core application using F#.

This was inspired by a conversation @alanwest and myself had at OTel Unplugged with an end-user who wondered why there wasn't an F# SDK for OpenTelemetry.

The example here is based on the AspNetCore example, and then converted with the help of GitHub Copilot. I'm no F# developer, so it might not be as idiomatic as it could be.

While working on this I found some issues with the Docker Compose setup copied from the ASP.NET Core example so I'm going to park this for now while I fix that #6877.

Feedback welcome.

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)

@github-actions github-actions bot added infra Infra work - CI/CD, code coverage, linters dependencies Pull requests that update a dependency file documentation Documentation related labels Feb 5, 2026
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.19%. Comparing base (3f3db37) to head (f2e58ca).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6875      +/-   ##
==========================================
- Coverage   87.21%   87.19%   -0.03%     
==========================================
  Files         263      263              
  Lines       12385    12385              
==========================================
- Hits        10802    10799       -3     
- Misses       1583     1586       +3     
Flag Coverage Δ
unittests-Project-Experimental 87.06% <ø> (-0.05%) ⬇️
unittests-Project-Stable 87.01% <ø> (ø)
unittests-Solution 87.16% <ø> (-0.02%) ⬇️
unittests-UnstableCoreLibraries-Experimental 89.42% <ø> (ø)

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

Add an example for an ASP.NET Core application using F#.
Fix Docker Compose configuration for OTLP.
Fix too-long line.
@martincostello
Copy link
Member Author

Paging some F# fans I know in case they have any opinions 😃

/cc @slang25 @MrBliz @baronfel

Copy link

@baronfel baronfel left a comment

Choose a reason for hiding this comment

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

Looks mostly good, but I have a couple tiny notes to clean it up a bit.

- Use `task` instead of `async`.
- Remove `Literal` attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Documentation related infra Infra work - CI/CD, code coverage, linters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants