Skip to content

Default serve() to platform-ready configuration #2267

@tomkis

Description

@tomkis

Is your feature request related to a problem? Please describe.
The Server.serve() method defaults to a minimal configuration (configure_telemetry=False, context_store=NoneInMemoryContextStore, auth_backend=None), requiring developers to explicitly pass platform components every time. This makes the "happy path" unnecessarily verbose.

Describe the solution you'd like
Change defaults in Server.serve():

  • configure_telemetryTrue
  • context_storePlatformContextStore()
  • auth_backendPlatformAuthBackend()

Developers should only need to pass these parameters when overriding with custom implementations. Documentation and examples should be updated to reflect the new defaults.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Dev backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions