WithAppName
Gets a new context with AppName set.
def WithAppName(
ctx: context.Context,
appName: string
) - > context.Context
Gets a new context with AppName set. This function is used to associate a specific application name with a context, allowing for context-aware operations or logging.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The parent context to which the application name will be added. |
| appName | string | The name of the application to associate with the context. |
Returns
| Type | Description |
|---|---|
context.Context | A new context derived from the input context, with the application name set. |