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

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