Skip to content

docs: easy-to-read examples - #2125

Merged
jpnurmi merged 2 commits into
masterfrom
jpnurmi/docs/examples
Oct 6, 2026
Merged

jpnurmi merged 2 commits into
masterfrom
jpnurmi/docs/examples

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Add small, targeted, easy-to-read examples that demonstrate the most common SDK operations.

- [`crash.c`](crash.c): Captures a crash event.
- [`enrich.c`](enrich.c): Enriches an event with data such as a user, tags, and contexts.
- [`feedback.c`](feedback.c): Captures an event and sends feedback for it.
- [`logs.c`](logs.c): Sends structured logs with attributes.
- [`message.c`](message.c): Captures a message event.
- [`metrics.c`](metrics.c): Records counter, gauge, and distribution metrics.
- [`scope.c`](scope.c): Captures an event with local scope data.
- [`tracing.c`](tracing.c): Traces an operation with child spans.

P.S. I would also demote the existing example.c as an integration test fixture, but it gets pretty noisy and is better left as a separate step.

Close: #2117

Add small, targeted, easy-to-read examples that demonstrate the most
common SDK operations.

Close: #2117
@linear-code

linear-code Bot commented Sep 23, 2026

Copy link
Copy Markdown

NATIVE-233

@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.45%. Comparing base (0e86bb9) to head (15d91b0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2125      +/-   ##
==========================================
- Coverage   75.49%   75.45%   -0.05%     
==========================================
  Files         103      103              
  Lines       28079    28079              
  Branches     5147     5147              
==========================================
- Hits        21198    21186      -12     
- Misses       5540     5552      +12     
  Partials     1341     1341              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi requested a review from JoshuaMoelans October 6, 2026 07:57

@JoshuaMoelans JoshuaMoelans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice, thanks for adding these!

@jpnurmi
jpnurmi merged commit 29242a7 into master Oct 6, 2026
67 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/docs/examples branch October 6, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Easy-to-read examples

3 participants