@@ -116,11 +116,6 @@ export interface OpenFunction {
116
116
// @public
117
117
export const openfunction: (functionName : string , handler : OpenFunction ) => void ;
118
118
119
- // @public
120
- export interface OpenFunctionBinding {
121
- [key : string ]: OpenFunctionComponent ;
122
- }
123
-
124
119
// @public
125
120
export interface OpenFunctionComponent {
126
121
componentName: string ;
@@ -132,21 +127,22 @@ export interface OpenFunctionComponent {
132
127
133
128
// @public
134
129
export interface OpenFunctionContext {
135
- inputs? : OpenFunctionBinding ;
130
+ inputs? : Record < string , OpenFunctionComponent > ;
136
131
name: string ;
137
- outputs? : OpenFunctionBinding ;
132
+ outputs? : Record <string , OpenFunctionComponent >;
133
+ pluginsTracing? : TraceConfig ;
138
134
port? : string ;
139
135
postPlugins? : string [];
140
136
prePlugins? : string [];
141
137
runtime: ` ${RuntimeType } ` | ` ${Capitalize <RuntimeType >} ` | ` ${Uppercase <RuntimeType >} ` ;
142
- tracing? : TraceConfig ;
143
138
version: string ;
144
139
}
145
140
146
141
// @public
147
142
export abstract class OpenFunctionRuntime {
148
143
constructor (context : OpenFunctionContext );
149
144
protected readonly context: OpenFunctionContext ;
145
+ error? : Error ;
150
146
getPlugin(name : string ): Plugin_2 ;
151
147
readonly locals: Record <string , any >;
152
148
static Parse(context : OpenFunctionContext ): OpenFunctionRuntime ;
@@ -193,16 +189,24 @@ export enum RuntimeType {
193
189
export interface TraceConfig {
194
190
baggage? : Record <string , string >;
195
191
enabled: boolean ;
196
- provider? : TraceProvider ;
197
- tags? : Record <string , string >;
192
+ provider: TraceProvider ;
193
+ tags? : Record <string , string > & {
194
+ func? : string ;
195
+ };
198
196
}
199
197
200
198
// @public
201
199
export interface TraceProvider {
202
- name: string ;
200
+ name: ` ${ TraceProviderType } ` | ` ${ Capitalize < TraceProviderType >} ` | ` ${ Uppercase < TraceProviderType >} ` ;
203
201
oapServer: string ;
204
202
}
205
203
204
+ // @public
205
+ export enum TraceProviderType {
206
+ OpenTelemetry = " opentelemetry" ,
207
+ SkyWalking = " skywalking"
208
+ }
209
+
206
210
// (No @packageDocumentation comment for this package)
207
211
208
212
```
0 commit comments