Skip to content

Allow changing SENTRY_SDK_NAME at runtime #821

@marandaneto

Description

@marandaneto

The build pipeline already considers the SENTRY_SDK_NAME config at compile time.
Ideally, the SDK is able to change its name at runtime.

#ifndef SENTRY_SDK_NAME
# ifdef __ANDROID__
# define SENTRY_SDK_NAME "sentry.native.android"
# else
# define SENTRY_SDK_NAME "sentry.native"
# endif
#endif

For example:
sentry_set_sdk_name(...) or sentry_options_set_sdk_name(...), some SDKs have it under the options while this attribute is internal/private but allow Hybrid SDKs to do it anyway.
Context getsentry/sentry-dart#1333

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions