{"id":19339725,"url":"https://github.com/rubenv/servertiming","last_synced_at":"2026-06-20T05:04:07.433Z","repository":{"id":57552518,"uuid":"145534187","full_name":"rubenv/servertiming","owner":"rubenv","description":"Go library for adding Server-Timing headers to your application.","archived":false,"fork":false,"pushed_at":"2018-09-11T08:16:24.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T08:27:00.332Z","etag":null,"topics":["devtools","go","golang","server-timing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-21T08:44:27.000Z","updated_at":"2018-09-11T08:16:25.000Z","dependencies_parsed_at":"2022-09-26T18:50:43.441Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/servertiming","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubenv/servertiming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fservertiming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fservertiming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fservertiming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fservertiming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/servertiming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fservertiming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","go","golang","server-timing"],"created_at":"2024-11-10T03:23:32.487Z","updated_at":"2026-06-20T05:04:07.408Z","avatar_url":"https://github.com/rubenv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servertiming\n\n\u003e Go library for adding [`Server-Timing` headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing) to your application.\n\n[![Build Status](https://travis-ci.org/rubenv/servertiming.svg?branch=master)](https://travis-ci.org/rubenv/servertiming) [![GoDoc](https://godoc.org/github.com/rubenv/servertiming?status.png)](https://godoc.org/github.com/rubenv/servertiming)\n\n![Timings in Chrome Dev Tools](devtools.png)\n\n## Usage\n\n```go\n// Create a new instance:\n\n    t := servertiming.New()\n\n// Optionally enable name prefixing to preserve the order of metrics (will adjust names though!)\n\n    t.EnablePrefix()\n\n// Add a few metrics, either by manually specifying the duration:\n\n    t.Add(\"cache\", \"Cache Read\", 23200*time.Microsecond)\n\n// Or by using the start-stop API:\n\n    ti.Start(\"db\", \"Database query\")\n    // query db\n    ti.Stop(\"db\")\n\n// Then send it with your response:\n\n    w.Header().Set(\"Server-Timing\", ti.String())\n```\n\nNote: timings can be sent as a trailer when using HTTP2, see the example in `net/http`: [Example (Trailers)](https://godoc.org/net/http#example-ResponseWriter--Trailers).\n\n## License\n\nThis library is distributed under the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fservertiming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fservertiming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fservertiming/lists"}