Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

48 rader
1.9 KiB

  1. // Copyright 2017, OpenCensus Authors
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // Package view contains support for collecting and exposing aggregates over stats.
  16. //
  17. // In order to collect measurements, views need to be defined and registered.
  18. // A view allows recorded measurements to be filtered and aggregated.
  19. //
  20. // All recorded measurements can be grouped by a list of tags.
  21. //
  22. // OpenCensus provides several aggregation methods: Count, Distribution and Sum.
  23. //
  24. // Count only counts the number of measurement points recorded.
  25. // Distribution provides statistical summary of the aggregated data by counting
  26. // how many recorded measurements fall into each bucket.
  27. // Sum adds up the measurement values.
  28. // LastValue just keeps track of the most recently recorded measurement value.
  29. // All aggregations are cumulative.
  30. //
  31. // Views can be registerd and unregistered at any time during program execution.
  32. //
  33. // Libraries can define views but it is recommended that in most cases registering
  34. // views be left up to applications.
  35. //
  36. // Exporting
  37. //
  38. // Collected and aggregated data can be exported to a metric collection
  39. // backend by registering its exporter.
  40. //
  41. // Multiple exporters can be registered to upload the data to various
  42. // different back ends.
  43. package view // import "go.opencensus.io/stats/view"
  44. // TODO(acetechnologist): Add a link to the language independent OpenCensus
  45. // spec when it is available.