New-DifyAppTraceConfig
Warning
This help was primarily created by a generative AI. It may contain partially inaccurate expressions.
SYNOPSIS
Create a new trace configuration for a specific Dify app and tracing provider.
SYNTAX
New-DifyAppTraceConfig [[-App] <PSObject>] [[-Provider] <String>] [[-Config] <Hashtable>] [-Enable]
[<CommonParameters>]
DESCRIPTION
The New-DifyAppTraceConfig
cmdlet creates a new trace configuration for a specified app and tracing provider in your Dify workspace. You can optionally enable tracing for the provider after creation. The app object can be provided directly or via a pipeline from Get-DifyApp
.
EXAMPLES
Example 1
Get-DifyApp -Name "MyApp" | New-DifyAppTraceConfig -Provider "phoenix" -Config @{
api_key = "phoenix-admin-secret-00000000000"
endpoint = "https://phoenix.example.com/"
project = "psdify"
}
Create a new trace configuration for the app using the "phoenix" provider.
Example 2
$App = Get-DifyApp -Name "MyApp"
New-DifyAppTraceConfig -App $App -Provider "phoenix" -Config@{
api_key = "phoenix-admin-secret-00000000000"
endpoint = "https://phoenix.example.com/"
project = "psdify"
} -Enable
Create and enable a new trace configuration for the app using the "phoenix" provider.
PARAMETERS
-App
Specifies the app object for which the trace configuration will be created. The app object can be passed directly or via a pipeline from Get-DifyApp
.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Config
Specifies the configuration settings for the tracing provider as a hashtable.
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Enable
If specified, enables tracing for the provider after creating the configuration.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Provider
Specifies the tracing provider name for which the configuration will be created.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.