-
Notifications
You must be signed in to change notification settings - Fork 601
feat(go): Add cancelAction and early trace ID to headers in go reflection server #3885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: jh-telemetry
Are you sure you want to change the base?
Conversation
go/core/api/action.go
Outdated
| // RunJSONWithTelemetry runs the action with the given JSON input and streaming callback and returns the output as JSON along with telemetry info. | ||
| RunJSONWithTelemetry(ctx context.Context, input json.RawMessage, cb func(context.Context, json.RawMessage) error) (*ActionRunResult[json.RawMessage], error) | ||
| // The telemetryCb callback, if provided, is called as soon as the trace span is created with the trace ID and span ID. | ||
| RunJSONWithTelemetry(ctx context.Context, input json.RawMessage, cb func(context.Context, json.RawMessage) error, telemetryCb TelemetryCallback) (*ActionRunResult[json.RawMessage], error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this is only used for reflection API? Can we pull that from the context instead so that this isn't a breaking change?
| Properties map[string]*Schema `json:"properties,omitempty"` | ||
| AdditionalProperties *Schema `json:"additionalProperties,omitempty"` | ||
| Const bool `json:"const,omitempty"` | ||
| Const any `json:"const,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, what happened here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3801 updates genkit-schema.json
const now can take string values, rather than bool values
So we need to update jsonschema.go to be able to generate updated schemas
Co-authored-by: Alex Pascal <[email protected]>
Co-authored-by: Alex Pascal <[email protected]>
…into jh-go-reflection
Uh oh!
There was an error while loading. Please reload this page.