knative-extensions / knative-extensions/kn-plugin-event

Show optional response event when sending an event

Open
#383 4 comments 0 reactions 0 assignees View on GitHub
kind/enhancement triage/accepted
Dominant language
Go
Stars
7
Forks
30
Avg merge
4h 26m
Merged PRs (30d)
12

Description

It would be great to show the HTTP response when a CE has been sent when testing microservices that consume and _produce_ Cloud Events as response.

Currently, the response is just ignored. The Golang CE SDK supports a more sophisticated way to send events that also allows the inspection of the response via https://github.com/cloudevents/sdk-go/blob/de2f28370b0d2a0f64f92c0c6139fa4b8a7c3851/v2/protocol/http/protocol.go#L178

Not sure how to get this from the in-cluster sender image to the CLI (except to log to stdout), but for the out-cluster sending from the CLI this should be not too difficult.

Contributor guide

Open the contributing guide

Research direction

Start with the CLI's out-cluster event-sending path and compare it with the CloudEvents Go SDK HTTP protocol implementation linked in the issue. Determine how an optional HTTP response event can be surfaced for CLI sends and how the in-cluster sender image could expose it, then verify that response events are visible without changing the existing send behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.