2456868764 opened a new issue, #2642:
URL: https://github.com/apache/dubbo-go/issues/2642
### Environment
<!--
- Server: Dubbo-go, master
- Client: Dubbo-go, master
- Protocol: Triple
- Registry: N/A
-->
- Server:
- Client:
- Protocol:
- Registry:
### Issue description
there is dubbo filter demo code which just output attachments :
````
func (f *mtlsFilter) Invoke(ctx context.Context, invoker protocol.Invoker,
invocation protocol.Invocation) protocol.Result {
// get request schema
attachments :=
ctx.Value(constant.AttachmentKey).(map[string]interface{})
for key, attachment := range attachments {
logger.Infof("get triple attachment key %s = %s", key,
attachment.([]string)[0])
}
}
```
and output as follow:
```
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [retries ] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [user-agent grpc-go-triple/0.1.0 (go1.21.6)] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [te trailers] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [content-type application/grpc+proto] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [interface greet.GreetService] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [grpc-accept-encoding gzip] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [timeout ] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [grpc-timeout 2999023u] = %!s(MISSING)
2024-03-22 02:15:34 INFO logger/logging.go:42 get triple
attachment key [accept-encoding identity] = %!s(MISSING)
```
and miss some common http header like scheme ,host etc.
<!-- Here is a brief description about the issue. -->
### Logs
<details><summary>Click me to check logs</summary>
```
Copy logs to here.
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]