Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4561

C++ API only lets you create TS_RECORDDATATYPE_INT metrics

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: CPP API
    • Labels:
      None

      Description

      In Stat::init, the metric type is hardcoded to TS_RECORDDATATYPE_INT, which is supposed to be an instantaneous integral type (ie. gauge). The most useful value would be counter, but really the caller should be able to specify the kind of Stat to create. String metrics are also very useful, though this doesn't appear to be supported by TSAPI.

        Attachments

          Activity

            People

            • Assignee:
              briang Brian Geffon
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: