Skip to content

example/otel has compile error #2028

Closed
Closed
@hidu

Description

@hidu

Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.

Expected Behavior

Current Behavior

cd example/otel

go run main.go
# command-line-arguments
./main.go:27:14: cannot use redisotel.TracingHook{} (value of type redisotel.TracingHook) as type redis.Hook in argument to rdb.AddHook:
	redisotel.TracingHook does not implement redis.Hook (AfterProcess method has pointer receiver)

Possible Solution

rdb.AddHook(redisotel.TracingHook{})
-->
rdb.AddHook(redisotel.NewTracingHook())

Steps to Reproduce

Context (Environment)

Detailed Description

Possible Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions