Skip to content

[Proposal] Overriding/Setting the service name for a specific contribution #65

Closed

Description

Currently the default service name is supported by the tracer.
PR: #64

The user can set the default service:

  • Using the YAML file (default-service-name props)
  • Building a new instance of the DDTracer new DDTracer("service-name", ...)

Goal

We want to allow a third way for the user to change the service name at the contribution level. For instance rename mongoto my-app-mongoservice when using the mongo contrib provided.

Proposal

At the point, we have the notion of decorators. But this concept should rest private from the user perspective. So, we will a simple API to allow the user to rename an existing service name to another.

tracer.addRule(Rules.SERVICENAME, new MappingRule("mongo","my-app-mongo"))
rules:
  service-name:
    - mapping: ["mongo", "my-app-mongo"]
    - mapping: ["jdbc", "my-app-jdbc"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions