Skip to content

Make SDK more typesafe #1502

@lforst

Description

@lforst

We are using an ungodly amount of any everywhere and this makes it either slightly dodgy to change things or requires extra verification.

Suggestion to improve things from the outside in:

  • Add vendored types for all of the libraries we wrap and immediately typecast the input inside the wrapper function body so we can pass around stuff in a type-safe way.
  • Find a way to properly to type our plugin system for auto-instrumentation so that we can assume we know what shapes we're getting when listening to channels.

Vendored types:

After that's done:

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions