Skip to content

Use easycaching with elastic apm agent dotnet #461

@billhong-just

Description

@billhong-just
Contributor

Description

Hi, I want to use elastic/apm-agent-dotnet to trace the commands sent to Redis.
Here is a sample code from elastic official document:

// using Elastic.Apm.StackExchange.Redis;

var connection = await ConnectionMultiplexer.ConnectAsync("<redis connection>");
connection.UseElasticApm();

Do I have any chance to get the connection from easycaching or provide a delegate to easycaching?

References

Activity

catcherwong

catcherwong commented on Feb 26, 2023

@catcherwong
Member

@billhong-just Thanks for your interest in this project.

EasyCaching does not support this one now, I will take a look how to support more APM system.

self-assigned this
on Feb 26, 2023
billhong-just

billhong-just commented on Feb 27, 2023

@billhong-just
ContributorAuthor

@catcherwong Thanks for your quick answer.

Perhaps there could be an event called OnConnected,user can register this event, get the connection and something else when it is established then do what they want.

catcherwong

catcherwong commented on Mar 6, 2023

@catcherwong
Member

@billhong-just Could you submit a PR for your idea?

billhong-just

billhong-just commented on Mar 6, 2023

@billhong-just
ContributorAuthor

@catcherwong

Thanks, I will take a look how to make a PR for my idea.
Do you have any contributing guidelines or suggestions? 👋

linked a pull request that will close this issue on Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @catcherwong@billhong-just

    Issue actions

      Use easycaching with elastic apm agent dotnet · Issue #461 · dotnetcore/EasyCaching