Pebl Release 0.0.5

Pebl Release 0.0.5

·

1 min read

Quick Summary

Release 0.0.5 has support for streaming production logs using the CLI and updates to the Go package.

Longform

pebl CLI

Previously the only way to look at logs from the cloud runtime was to go to our console. The latest pebl CLI now supports the command pebl logs, which will stream those logs so that you can see them on your terminal.

$ ./pebl logs
[06/01 12:43:49] foo
[06/01 12:44:34] bar
[06/01 12:44:35] hello, world!

To upgrade you can follow the setup steps.

Go SDK

Previously our Go package was structured such that the pebl bindings were under the sdk package, meaning that you had to import the package using github.com/peblcloud/go/sdk.

Based on user feedback we have decided to move all the bindings to the root level, and to change the package name to pebl. In short you can now do this:

package main

import (
    "net/http"
    "github.com/peblcloud/go"
)

func main() {
    service := http.NewServeMux()

    service.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("hello, world!\n"))
    })

    pebl.Service(service, "svc.internal")
}

To upgrade you can run go get github.com/peblcloud/go@v0.0.5 in your Go projects.