Skip to content

Easy-to-read examples #2117

Description

@jpnurmi

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

Ideas:

  • crash.c: captures a crash
  • enrich.c: enriches an event with a user, tags, contexts etc.
  • feedback.c: captures feedback for an event
  • logs.c: sends structured logs with attributes
  • message.c: captures a message event
  • metrics.c: records counters, gauges, and distribution metrics
  • scope.c: captures an event with local scope data
  • tracing.c: traces an operation with child spans

With these in place, the existing convoluted example.c could be demoted as a test fixture.

Activity

  1. added a parent issue on Sep 21, 2026
  2. linear-code commented on Sep 21, 2026

    @linear-code
  3. added a commit that references this issue on Sep 23, 2026
    e1b994e
  4. self-assigned this
    on Sep 23, 2026
  5. added a commit that references this issue on Oct 9, 2026
    29242a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DocsdocumentationNativeplatform label

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions